/* =================================
   GRANXAL - ESTILOS PRINCIPALES
   ================================= */

/* Variables CSS personalizadas */
:root {
    --primary-50: #f0f9ff;
    --primary-100: #e0f2fe;
    --primary-500: #0ea5e9;
    --primary-600: #0284c7;
    --primary-700: #0369a1;
    --primary-800: #075985;
    --primary-900: #0c4a6e;
    
    --green-50: #f0fdf4;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --green-700: #15803d;
    
    --trust-800: #27272a;
    --trust-900: #18181b;
    
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-large: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    --transition-base: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #374151;
    background-color: #ffffff;
}

/* Utility Classes */
.scroll-smooth {
    scroll-behavior: smooth;
}

/* Gradientes personalizados */
.gradient-bg {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.trust-gradient {
    background: linear-gradient(135deg, var(--trust-800) 0%, var(--trust-900) 100%);
}

.security-badge {
    background: linear-gradient(135deg, #065f46 0%, #047857 100%);
}

.compliance-badge {
    background: linear-gradient(135deg, #7c2d12 0%, #9a3412 100%);
}

/* Componentes de tarjetas */
.feature-card {
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-large);
}

/* Navegación */
nav {
    transition: var(--transition-base);
}

/* Botones personalizados */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition-base);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-800) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-600);
    border: 2px solid var(--primary-600);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition-base);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background: var(--primary-50);
    transform: translateY(-2px);
}

/* Formularios */
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: var(--transition-fast);
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-500);
    ring: 2px;
    ring-color: var(--primary-500);
    ring-opacity: 0.2;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Estados de carga */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-600);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Efectos de scroll */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .feature-card {
        margin-bottom: 24px;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    h1 {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
    }
    
    h2 {
        font-size: 2rem !important;
    }
    
    .text-xl {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .feature-card {
        padding: 24px 16px;
    }
    
    h1 {
        font-size: 2rem !important;
    }
    
    .btn-primary, .btn-secondary {
        padding: 14px 20px;
        font-size: 14px;
    }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-smooth {
        scroll-behavior: auto;
    }
}

/* Focus states para accesibilidad */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

/* Estados de error */
.error {
    border-color: #ef4444 !important;
    background-color: #fef2f2;
}

.error-message {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
}

/* Estados de éxito */
.success {
    border-color: var(--green-500) !important;
    background-color: var(--green-50);
}

.success-message {
    color: var(--green-700);
    font-size: 12px;
    margin-top: 4px;
}

/* Tooltips */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #374151;
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #374151 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Personalización de scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .feature-card {
        box-shadow: none !important;
        border: 1px solid #e5e7eb !important;
    }
}

/* Mockup Animations */
@keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-left {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes float-delay {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(180deg); }
}

.animate-fade-in { animation: fade-in 0.6s ease-out forwards; }
.animate-slide-up { animation: slide-up 0.8s ease-out forwards; opacity: 0; }
.animate-slide-left { animation: slide-left 0.8s ease-out forwards; opacity: 0; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-float-delay { animation: float-delay 4s ease-in-out infinite; }

.perspective-1000 { perspective: 1000px; }

/* Swiper Customization */
.mockup-swiper .swiper-pagination-bullet {
    background: #0ea5e9;
    opacity: 0.3;
}

.mockup-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.2);
}

.mockup-swiper .swiper-button-next,
.mockup-swiper .swiper-button-prev {
    color: #0ea5e9;
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Indicador de progreso para cada slide */
.mockup-swiper .swiper-pagination {
    position: relative;
    margin-top: 20px;
}

.mockup-swiper .swiper-pagination-bullet {
    position: relative;
    overflow: hidden;
}

.mockup-swiper .swiper-pagination-bullet::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: rgba(255, 255, 255, 0.8);
    transition: width 0.1s ease;
}

.mockup-swiper .swiper-pagination-bullet-active::after {
    animation: progress-bar var(--slide-duration, 4s) linear;
}

@keyframes progress-bar {
    from { width: 0%; }
    to { width: 100%; }
}

/* Responsive enhancements */
@media (max-width: 1024px) {
    .grid.grid-cols-1.lg\:grid-cols-5 {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    .mockup-container .bg-white {
        max-width: 100%;
        transform: rotate(0deg) !important;
    }
}

@media (min-width: 1280px) {
    .mockup-container .bg-white {
        max-width: 3xl;
        padding: 3rem;
    }
}

/* Layout de ancho completo */
.w-full-responsive {
    width: 100%;
    max-width: none;
}

/* Grid optimizado para pantallas grandes */
@media (min-width: 1280px) {
    .xl\:grid-cols-12 {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }
    
    .xl\:col-span-4 {
        grid-column: span 4 / span 4;
    }
    
    .xl\:col-span-8 {
        grid-column: span 8 / span 8;
    }
}

/* Contenedor principal sin max-width restrictivo */
.container-full {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container-full {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container-full {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 1280px) {
    .container-full {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

@media (min-width: 1536px) {
    .container-full {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-left {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.animate-fade-in {
    animation: fade-in 0.8s ease-out forwards;
}

.animate-slide-left {
    animation: slide-left 0.8s ease-out forwards;
    opacity: 0;
}

/* Efecto gradient en el texto */
.bg-clip-text {
    background-clip: text;
    -webkit-background-clip: text;
}

/* Mejorar hover en botones */
.group:hover .group-hover\:animate-bounce {
    animation: bounce 1s infinite;
}

.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Sombra suave para las tarjetas */
.shadow-soft {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .grid-cols-1.sm\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .flex-col.sm\:flex-row {
        flex-direction: column;
    }
}

/* Animaciones para testimonios */
.testimonial-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.2s; }
.testimonial-card:nth-child(3) { animation-delay: 0.3s; }
.testimonial-card:nth-child(4) { animation-delay: 0.4s; }
.testimonial-card:nth-child(5) { animation-delay: 0.5s; }
.testimonial-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efectos hover */
.testimonial-card:hover {
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 768px) {
    .testimonial-card {
        margin-bottom: 1rem;
    }
}

/* Counter animation */
.counter {
    animation: countUp 2s ease-out;
}

@keyframes countUp {
    from { opacity: 0; }
    to { opacity: 1; }
}

.testimonials-swiper .swiper-slide {
    height: auto;
    display: flex;
    align-items: stretch;
}

.testimonial-card {
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Navegación personalizada */
.testimonial-next, .testimonial-prev {
    color: #0ea5e9;
    background: rgba(255, 255, 255, 0.9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.testimonial-next:after, .testimonial-prev:after {
    font-size: 18px;
    font-weight: bold;
}

/* Paginación personalizada */
.testimonial-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #0ea5e9;
    opacity: 0.3;
    margin: 0 8px;
}

.testimonial-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.2);
}

/* Star rating interactivo */
.star-rating {
    display: flex;
    gap: 4px;
}

.star {
    font-size: 24px;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.2s;
}

.star:hover,
.star.active {
    color: #fbbf24;
}

/* Animaciones */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.new-testimonial {
    animation: slideInFromRight 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .testimonials-swiper {
        padding: 0 20px 50px 20px;
    }
    
    .testimonial-next, .testimonial-prev {
        display: none;
    }
}
/**
Nuevos Estilos para la parte de inicio, donde esta la foto
*/
/* Estilos específicos para la nueva hero section */
.hero-with-real-image {
    background: linear-gradient(135deg, rgba(0,0,0,0.3), rgba(0,0,0,0.1));
    position: relative;
}

.hero-with-real-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}

/* Animaciones para elementos flotantes */
@keyframes float-gentle {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

.dashboard-widget-floating {
    animation: float-gentle 6s ease-in-out infinite;
    transform-origin: center center;
}

/* Efectos de hover mejorados */
.dashboard-widget-floating:hover {
    transform: scale(1.02) translateY(-5px);
    transition: all 0.3s ease;
}

/* Mejoras de legibilidad */
.text-shadow-strong {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

/* Responsive adjustments */
@media (max-width: 1280px) {
    .dashboard-widget-floating {
        max-width: 100%;
        margin: 2rem auto 0;
    }
}

@media (max-width: 768px) {
    .hero-with-real-image .xl\:col-span-4 {
        order: 2;
    }
    
    .hero-with-real-image .xl\:col-span-8 {
        order: 1;
    }
    
    .dashboard-widget-floating {
        animation: none;
        padding: 1.5rem;
    }
}

/* Optimización de carga de imagen */
.hero-with-real-image img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Efectos adicionales de glassmorphism */
.backdrop-blur-xl {
    backdrop-filter: blur(20px) saturate(1.5);
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .dashboard-widget-floating {
        animation: none;
    }
    
    .animate-pulse, .animate-ping {
        animation: none;
    }
}

/*
#################################################################################################################
*/
.feature-card-with-bg {
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.feature-card-with-bg:hover {
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

/* Mejoras de legibilidad del texto */
.feature-card-with-bg h3,
.feature-card-with-bg p,
.feature-card-with-bg li {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* Efectos de animación mejorados */
.feature-card-with-bg .w-16 {
    transition: all 0.3s ease;
}

.feature-card-with-bg:hover .w-16 {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255,255,255,0.3);
}

/* Responsive design */
@media (max-width: 1280px) {
    .xl\:grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .lg\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .feature-card-with-bg {
        min-height: 400px;
    }
}

@media (max-width: 640px) {
    .feature-card-with-bg {
        min-height: 350px;
    }
    
    .feature-card-with-bg .p-8 {
        padding: 1.5rem;
    }
    
    .feature-card-with-bg h3 {
        font-size: 1.5rem;
    }
}

/* Optimización de imágenes */
.feature-card-with-bg img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Efectos de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .feature-card-with-bg,
    .feature-card-with-bg img,
    .feature-card-with-bg .w-16 {
        transition: none;
        animation: none;
    }
}
.solution-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Smooth scrolling para anclas */
html {
    scroll-behavior: smooth;
}


.carousel-slide {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.carousel-slide.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.dashboard-widget-floating:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.carousel-dot {
    transition: all 0.3s ease;
    cursor: pointer;
}

.carousel-dot:hover {
    transform: scale(1.2);
}

.tablet-container {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.tablet-device {
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border-radius: 20px;
    padding: 20px;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 3/4;
    box-shadow: 
        0 25px 60px rgba(0,0,0,0.4),
        0 10px 25px rgba(0,0,0,0.3),
        inset 0 2px 5px rgba(255,255,255,0.1);
    position: relative;
    transition: transform 0.3s ease;
}

.tablet-device::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: #333;
    border-radius: 3px;
}

.tablet-frame {
    width: 100%;
    height: calc(100% - 60px);
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.tablet-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.tablet-container:hover .tablet-device {
    transform: rotateY(5deg) rotateX(2deg) scale(1.02);
}

/* Swiper personalizado para la tablet */
.mockup-swiper-large {
    width: 100%;
    height: 100%;
}

.mockup-swiper-large .swiper-slide {
    display: flex;
    flex-direction: column;
    background: #f9fafb;
}

/* Paginación personalizada */
.swiper-pagination-large .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.5);
    opacity: 0.5;
    margin: 0 4px;
}

.swiper-pagination-large .swiper-pagination-bullet-active {
    background: #fff;
    opacity: 1;
    transform: scale(1.2);
}

/* Animaciones para contadores */
.counter {
    transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 1279px) {
    .tablet-device {
        max-width: 400px;
    }
}

@media (max-width: 767px) {
    .tablet-device {
        max-width: 300px;
    }
    
    .tablet-container:hover .tablet-device {
        transform: none; /* Desactivar hover en móvil */
    }
}

@media (max-width: 640px) {
    .tablet-device {
        max-width: 280px;
        padding: 15px;
    }
}
.modern-tablet-container {
    perspective: 1200px;
    transform-style: preserve-3d;
    padding: 1rem 2rem 3rem 2rem; /* top, right, bottom, left */
    margin-top: -6rem; /* SUBIR EL CONTAINER */
}

.modern-tablet {
    background: linear-gradient(145deg, #2c2c2e, #1c1c1e);
    border-radius: 24px;
    padding: 16px;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 3/4;
    box-shadow: 
        0 30px 80px rgba(0,0,0,0.4),
        0 15px 40px rgba(0,0,0,0.3),
        inset 0 2px 10px rgba(255,255,255,0.1);
    position: relative;
    transition: transform 0.4s ease;
    transform: rotateY(-8deg) rotateX(4deg);
}

.modern-tablet:hover {
    transform: rotateY(-5deg) rotateX(2deg) scale(1.02);
}

.tablet-display {
    width: 100%;
    height: calc(100% - 32px);
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.tablet-statusbar {
    background: rgba(0,0,0,0.9);
    height: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    color: white;
    font-size: 12px;
}

.camera-notch {
    width: 8px;
    height: 8px;
    background: #333;
    border-radius: 50%;
}

.status-indicators {
    display: flex;
    align-items: center;
    gap: 12px;
}

.signal-bars {
    display: flex;
    gap: 2px;
}

.signal-bars .bar {
    width: 3px;
    height: 8px;
    background: #00ff00;
    border-radius: 1px;
}

.app-content {
    height: calc(100% - 36px);
    background: #f9fafb;
    border-radius: 0 0 16px 16px;
    display: flex;
    flex-direction: column;
}

.app-header {
    background: white;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ef4444;
    font-size: 12px;
    font-weight: bold;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.add-btn {
    background: #3b82f6;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.app-body {
    flex: 1; /* AUTOAJUSTE */
    overflow-y: auto;
    padding: 24px;
    min-height: 0; /* IMPORTANTE PARA FLEXBOX */
}

.stat-card, .metric-card {
    background: white;
    padding: 18px;  /* ANTES: 20px */
    border-radius: 10px;  /* ANTES: 12px */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);  /* MÁS SOMBRA */
    text-align: center;
}

/* ICONOS MÁS GRANDES */
.stat-icon, .metric-icon {
    font-size: 24px;  /* ANTES: 24px */
    margin-bottom: 8px;  /* ANTES: 8px */
}

/* VALORES MÁS GRANDES */
.stat-value, .metric-value {
    font-size: 36px;  /* ANTES: 28px */
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 8px;  /* ANTES: 4px */
}

/* LABELS MÁS LEGIBLES */
.stat-label, .metric-label {
    font-size: 14px;  /* ANTES: 12px */
    color: #6b7280;
    font-weight: 500;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.activity-item, .animal-item, .vaccine-item {
    background: white;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.activity-content, .animal-info, .vaccine-info {
    flex: 1;
}

.activity-title, .animal-id, .vaccine-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.activity-desc, .animal-name, .vaccine-animals {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.activity-badge, .status-badge, .vaccine-date {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
}

.urgent {
    background: #fef3c7;
    color: #d97706;
}

.completed, .healthy {
    background: #d1fae5;
    color: #059669;
}

.review {
    background: #fef3c7;
    color: #d97706;
}

.animal-avatar {
    width: 36px;
    height: 36px;
    background: #3b82f6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.production {
    font-size: 10px;
    color: #6b7280;
    margin-top: 2px;
}

.list-footer {
    text-align: center;
    color: #6b7280;
    font-size: 12px;
    padding: 16px;
}

.video-slide {
    position: relative;
    background: #000;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-content {
    /* Cálculo para ajustar video 16:9 a container 4:3 */
    width: 133.33%; /* 16/9 ÷ 4/3 = 1.3333 */
    height: 100%;
    object-fit: cover;
    object-position: center center;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Si tus videos son 4:3 nativamente, usa esto: */
.video-content-native {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.home-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 134px;
    height: 5px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}

.tablet-pagination .swiper-pagination-bullet {
    background: rgba(255,255,255,0.5);
    width: 8px;
    height: 8px;
    margin: 0 4px;
}

.tablet-pagination .swiper-pagination-bullet-active {
    background: white;
    transform: scale(1.2);
}

@media (max-width: 1279px) {
    .modern-tablet {
        max-width: 500px;
        transform: rotateY(-5deg) rotateX(2deg);
    }
}

@media (max-width: 767px) {
    .modern-tablet {
        max-width: 350px;
        transform: none;
    }
    
    .modern-tablet:hover {
        transform: none;
    }
}

/* AÑADIR ESTOS NUEVOS BREAKPOINTS */
@media (max-width: 1279px) {
    .modern-tablet {
        max-width: 650px;  /* ANTES: 500px */
        transform: rotateY(-5deg) rotateX(2deg);
    }
}

@media (max-width: 1023px) {
    .modern-tablet {
        max-width: 550px;  /* NUEVO BREAKPOINT */
    }
}

@media (max-width: 767px) {
    .modern-tablet {
        max-width: 450px;  /* ANTES: 350px */
        transform: none;
    }
}

@media (max-width: 640px) {
    .modern-tablet {
        max-width: 380px;  /* NUEVO PARA MÓVILES */
    }
}

.app-header {
    background: white;
    padding: 20px 24px;  /* ANTES: 16px 20px */
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* TÍTULO MÁS GRANDE */
.app-header h1 {
    font-size: 24px;  /* AÑADIR ESTO */
}

/* BODY CON MÁS PADDING */
.app-body {
    height: calc(100% - 80px);  /* ANTES: 72px */
    overflow-y: auto;
    padding: 24px;  /* ASEGURAR PADDING CONSISTENTE */
}

/* ITEMS DE ACTIVIDAD MÁS GRANDES */
.activity-item, .animal-item, .vaccine-item {
    background: white;
    padding: 16px;  /* ANTES: 16px */
    border-radius: 12px;  /* ANTES: 12px */
    margin-bottom: 12px;  /* ANTES: 12px */
    display: flex;
    align-items: center;
    gap: 12px;  /* ANTES: 12px */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ICONOS DE ACTIVIDAD MÁS GRANDES */
.activity-icon {
    width: 40px;  /* ANTES: 40px */
    height: 40px;  /* ANTES: 40px */
    border-radius: 10px;  /* ANTES: 10px */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;  /* ANTES: 18px */
}

/* TEXTO MÁS LEGIBLE */
.activity-title, .animal-id, .vaccine-name {
    font-size: 16px;  /* ANTES: 14px */
    font-weight: 600;
    color: #1f2937;
}

.activity-desc, .animal-name, .vaccine-animals {
    font-size: 14px;  /* ANTES: 12px */
    color: #6b7280;
    margin-top: 4px;  /* ANTES: 2px */
}

/* AVATAR DE ANIMAL MÁS GRANDE */
.animal-avatar {
    width: 36px;  /* ANTES: 36px */
    height: 36px;  /* ANTES: 36px */
    background: #3b82f6;
    border-radius: 10px;  /* ANTES: 10px */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 12px;  /* ANTES: 12px */
}

/* BADGES MÁS GRANDES */
.activity-badge, .status-badge, .vaccine-date {
    padding: 4px 8px;  /* ANTES: 4px 8px */
    border-radius: 6px;  /* ANTES: 6px */
    font-size: 10px;  /* ANTES: 10px */
    font-weight: 600;
}

/* GRIDS CON MÁS ESPACIO */
.grid.grid-cols-2 {
    gap: 20px;  /* ASEGURAR ESPACIO ENTRE CARDS */
}

.grid.grid-cols-3 {
    gap: 16px;  /* ASEGURAR ESPACIO ENTRE METRICS */
}

/* SECTION TITLES MÁS GRANDES */
.section-title {
    font-size: 16px;  /* ANTES: 16px */
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;  /* ANTES: 16px */
}

/* STATUS BAR AJUSTADO */
.tablet-statusbar {
    background: rgba(0,0,0,0.9);
    height: 36px;  /* ANTES: 32px */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;  /* ANTES: 16px */
    color: white;
    font-size: 14px;  /* ANTES: 12px */
}

/* APP CONTENT AJUSTADO */
.app-content {
    height: calc(100% - 36px);  /* AJUSTAR A NUEVO STATUS BAR */
    background: #f9fafb;
    border-radius: 0 0 16px 16px;
}

/* AJUSTES RESPONSIVE MEJORADOS */
.modern-tablet-swiper {
    height: 100% !important;
    width: 100% !important;
}

.swiper-slide {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 100% !important;
}

/* ASEGURAR QUE LOS GRIDS SE AJUSTEN */
.grid {
    display: grid;
    width: 100%;
}

.grid.grid-cols-2 {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.grid.grid-cols-3 {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

/* AJUSTES PARA PANTALLAS PEQUEÑAS */
@media (max-width: 640px) {
    .modern-tablet-container {
        padding: 0.5rem 1rem 2rem 1rem;
        margin-top: -1rem;
    }
    
    .grid.grid-cols-3 {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .app-body {
        padding: 16px;
    }
    
    .stat-card, .metric-card {
        padding: 16px;
    }
}

/* AJUSTES PARA TABLETS PEQUEÑAS */
@media (max-width: 767px) and (min-width: 641px) {
    .grid.grid-cols-3 {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
}

/* Mejorar contraste en testimonios con fondo */
.testimonial-card {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Mejorar el panel de estadísticas */
.bg-gradient-to-r.from-primary-500.to-green-500 {
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Títulos más visibles */
.text-3xl.lg\\:text-4xl.font-bold.text-gray-900 {
    text-shadow: 0 2px 4px rgba(255,255,255,0.8);
}

.icon-container {
    position: relative;
    overflow: hidden;
}

.icon-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.icon-container:hover::before {
    opacity: 1;
}

/* Animación de pulso sutil */
@keyframes subtle-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.icon-container:hover {
    animation: subtle-pulse 2s infinite;
}

/* Mejora para imágenes ICO */
.icon-container img {
    transition: all 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.icon-container:hover img {
    transform: scale(1.1);
    filter: brightness(1.3) contrast(1.2) drop-shadow(0 0 8px rgba(255,255,255,0.3));
}

.testimonial-next,
.testimonial-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px !important;
    height: 44px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 50% !important;
    color: #374151 !important;
    font-size: 18px !important;
    font-weight: bold !important;
    z-index: 10 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.testimonial-next:hover,
.testimonial-prev:hover {
    background: #ffffff !important;
    border-color: #3b82f6 !important;
    color: #3b82f6 !important;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

/* Posicionamiento específico */
.testimonial-next {
    right: -22px !important;
}

.testimonial-prev {
    left: -22px !important;
}

/* Íconos personalizados para los botones */
.testimonial-next::after {
    content: '→' !important;
    font-size: 16px !important;
    font-weight: bold !important;
}

.testimonial-prev::after {
    content: '←' !important;
    font-size: 16px !important;
    font-weight: bold !important;
}

/* Ocultar en móviles para evitar que se superpongan */
@media (max-width: 768px) {
    .testimonial-next,
    .testimonial-prev {
        display: none !important;
    }
}

/* Mejorar la paginación también */
.testimonial-pagination {
    position: relative !important;
    bottom: auto !important;
    margin-top: 2rem !important;
}

.testimonial-pagination .swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    background: #d1d5db !important;
    opacity: 1 !important;
    transition: all 0.3s ease;
}

.testimonial-pagination .swiper-pagination-bullet-active {
    background: #3b82f6 !important;
    transform: scale(1.2);
}

/* Contenedor del carrusel */
.testimonials-swiper {
    padding: 0 70px !important;
    margin: 0 -70px !important;
    overflow: visible !important;
}

/* En tablets, reducir el padding */
@media (max-width: 1024px) {
    .testimonials-swiper {
        padding: 0 30px;
        margin: 0 -30px;
    }
    
    .testimonial-next {
        right: -15px !important;
    }
    
    .testimonial-prev {
        left: -15px !important;
    }
}

/* Asegurar que los testimonios no se superpongan con los botones */
.testimonial-card {
    margin: 0 10px;
}

/* Alternativa: botones más discretos y fuera del área de contenido */
.testimonials-section {
    position: relative;
}

.testimonials-section .testimonial-next,
.testimonials-section .testimonial-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    z-index: 15;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.testimonials-section .testimonial-next:hover,
.testimonials-section .testimonial-prev:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.6);
}

.testimonials-section .testimonial-next {
    right: -25px;
}

.testimonials-section .testimonial-prev {
    left: -25px;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}
@keyframes float-delayed {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(90deg); }
}
@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-delayed { animation: float-delayed 8s ease-in-out infinite 2s; }
.animate-float-slow { animation: float-slow 10s ease-in-out infinite 4s; }