:root{
/*COLORES*/
    --color-primary: #1428A0;
    --color-primary-light: #5A6AC9;
    --color-primary-dark: #0C1663;
    --color-secondary: #00C3FF; /* Samsung Cyan */
    --color-secondary-light: #66D9FF; /* Light Cyan */
    --color-secondary-dark: #0099CC;
    --color-neutral: #F5F5F5; /* Gris claro neutro para combinar con el azul base */
    --color-neutral-dark: #E0E0E0; /* Gris medio neutro */

/* Typography Scale */
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px */
    --font-size-lg: 1.125rem;   /* 18px */
    --font-size-xl: 1.25rem;    /* 20px */
    --font-size-2xl: 1.5rem;    /* 24px */
    --font-size-3xl: 1.875rem;  /* 30px */
    --font-size-4xl: 2.25rem;   /* 36px */
    --font-size-5xl: 3rem;      /* 48px */
    --font-size-6xl: 3.75rem;   /* 60px */
    
    /* Spacing Scale */
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */
    --space-20: 5rem;     /* 80px */
    --space-24: 6rem;     /* 96px */
    
    /* Border Radius */
    --radius-sm: 0.25rem;   /* 4px */
    --radius-md: 0.5rem;    /* 8px */
    --radius-lg: 0.75rem;   /* 12px */
    --radius-xl: 1rem;      /* 16px */
    --radius-2xl: 1.5rem;   /* 24px */
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;

}

/*HEADER*/
/* Estilos para el header */
header {
    background-color: #0f172a; /* Equivalente a bg-blue-950 */
    color: white; /* text-white */
    padding: 1rem; /* p-4 */
    display: flex;
    justify-content: flex-end; /* justify-end */
    align-items: center; /* items-center */
    box-shadow: 0 10px 15px -3px rgba(255, 255, 255, 0.301), 0 4px 6px -2px rgba(255, 255, 255, 0.301); /* shadow-lg */
}

/* Estilos para el botón */
header button {
    background-color: transparent; /* bg-transparent */
    border: 0; /* border-0 */
    border-radius: 50%; /* rounded-full */
    padding: 0.5rem; /* p-2 */
    transition: #f5f5f5 0.3s ease; /* transition-colors */
}

header button:hover {
    background-color: #f5f5f5;
    color: white; /* hover:bg-white/10 */
}

/* Estilos para el ícono (usando FontAwesome) */
header i.fa-user {
    font-size: 2rem; /* fa-2x hace el ícono 2 veces más grande */
    color: #f5f5f5;
}

header i.fa-user:hover{
    color: #0a1930;
}



/* Reset y Estilos Base */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            color: #333;
            background-color: #f8f9fa;
        }
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        h1, h2, h3 {
            color: #1e40af; /* Azul primario similar a diseños médicos */
        }
        .section {
            padding: 60px 0;
        }
        .hero {
            background: linear-gradient(to bottom, #eff6ff, #ffffff);
            border-bottom: 1px solid #e5e7eb;
            text-align: center;
        }
        .hero h1 {
            font-size: 3rem;
            font-weight: bold;
            margin-bottom: 1rem;
        }
        .hero p {
            font-size: 1.25rem;
            color: #6b7280;
            max-width: 800px;
            margin: 0 auto 2rem;
        }
        .btn {
            display: inline-block;
            padding: 12px 24px;
            border-radius: 6px;
            text-decoration: none;
            font-weight: 500;
            transition: background-color 0.3s;
            margin: 0 10px;
        }
        .btn-primary {
            background-color: #1e40af;
            color: white;
        }
        .btn-primary:hover {
            background-color: #1d4ed8;
        }
        .btn-outline {
            border: 2px solid #1e40af;
            color: #1e40af;
            background: transparent;
        }
        .btn-outline:hover {
            background-color: #1e40af;
            color: white;
        }
        .badge {
            display: inline-block;
            padding: 4px 12px;
            background-color: #f3f4f6;
            color: #6b7280;
            border-radius: 9999px;
            font-size: 0.875rem;
            margin-bottom: 1rem;
        }
        .card {
            background: white;
            border-radius: 8px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            padding: 1.5rem;
            margin-bottom: 2rem;
            border: 1px solid #e5e7eb;
        }
        .grid {
            display: grid;
            gap: 2rem;
        }
        .grid-cols-1 {
            grid-template-columns: 1fr;
        }
        .grid-cols-2 {
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        }
        .grid-cols-3 {
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        }
        .step-number {
            background-color: #eff6ff;
            color: #1e40af;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.25rem;
            font-weight: bold;
            margin: 0 auto 1rem;
        }
        .img-placeholder {
            width: 100%;
            height: 200px;
            object-fit: cover;
            border-radius: 6px;
            margin-top: 1rem;
        }
        .maintenance-step {
            background-color: #f9fafb;
            border-radius: 8px;
            padding: 1.5rem;
            margin-bottom: 2rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }
        @media (min-width: 768px) {
            .maintenance-step {
                flex-direction: row;
                text-align: left;
            }
            .maintenance-step img {
                width: 33%;
                margin-right: 1.5rem;
            }
            .maintenance-step .content {
                flex: 2;
            }
            .hero h1 {
                font-size: 4rem;
            }
        }
        .separator {
            height: 1px;
            background-color: #e5e7eb;
            margin: 3rem 0;
        }
        ul {
            list-style-type: none;
            padding-left: 0;
        }
        ul li {
            padding: 0.5rem 0;
            position: relative;
            padding-left: 1.5rem;
        }
        ul li:before {
            content: "•";
            color: #1e40af;
            font-weight: bold;
            position: absolute;
            left: 0;
        }
        .benefits-list li {
            display: flex;
            align-items: flex-start;
            margin-bottom: 1rem;
        }
        .benefits-list li:before {
            content: "✓";
            color: #10b981;
            font-weight: bold;
            margin-right: 0.5rem;
            position: static;
            margin-top: 0.25rem;
        }

.btn-hero-secondary {
    padding: 1rem 2rem;
    background: #0a1930;
    color: #f5f5f5;
    border: 2px solid #f5f5f5;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1.125rem;
    text-decoration: none;
    transition: all 300ms ease-in-out;
    
    /* Agrega esto para centrarlo */
    display: block; /* Lo convierte en block para que responda a márgenes auto */
    width: fit-content; /* O un ancho fijo como 200px, para que no se expanda */
    margin: 0 auto; /* Centra horizontalmente */
}
.btn-hero-secondary:hover {
    background:#FFFFFF;
    color: #1428A0;
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.bullet-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffffcc;
    backdrop-filter: blur(6px);
    border-bottom: 1px solid #e5e7eb;
}
.bullet-menu {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    list-style: none;
    margin: 0;
}
.bullet-menu li {
    display: inline-flex;
}
.bullet-menu li a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    text-decoration: none;
    color: #1e3a8a;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    transition: all 0.2s ease-in-out;
}
.bullet-menu li::before {
    content: none;
}
.bullet-menu li a::before {
    content: "•";
    font-weight: 700;
    color: #1428A0;
}
.bullet-menu li a:hover {
    background: #dbeafe;
    transform: translateY(-1px);
}
.bullet-menu li.active a {
    background: #1428A0;
    color: #fff;
    border-color: #0b185a;
}

/*MODAL2*/
/* MODAL */
.modal {
    display: flex; /* Cambiado para centrar verticalmente */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center; /* Centrar verticalmente */
    justify-content: center; /* Centrar horizontalmente */
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease;
}

.working-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: pulse 2s infinite; /* Animación de pulso para simular trabajo */
}

.working-icon {
    font-size: 3rem;
    color: #0a1930;
    margin-bottom: 20px;
}

.modal-content h2 {
    color: #0a1930;
    margin-bottom: 10px;
}

.modal-content p {
    color: #0b185a;
    font-size: 1.1rem;
}

/* Animación de fadeIn */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animación de pulso para el cuadro de mensaje */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsividad para teléfonos y tabletas */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: 350px;
        padding: 15px;
    }
    
    .working-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .modal-content h2 {
        font-size: 1.5rem;
    }
    
    .modal-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        max-width: 300px;
        padding: 10px;
    }
    
    .working-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .modal-content h2 {
        font-size: 1.3rem;
    }
    
    .modal-content p {
        font-size: 0.9rem;
    }
}
/* ========================================
   BACK TO HOME
   ======================================== */

.back-home {
    position: fixed;
    top: var(--space-6);
    left: var(--space-6);
    z-index: 100;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    color: var(--color-white);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: all var(--transition-normal);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-3px);
}

.sections {
    display: flex;
    flex-direction: row; /* Horizontal por defecto */
    justify-content: center; /* Centra las cartas horizontalmente */
    gap: 20px;
    width: 100%; /* Ahora abarca todo el ancho de la pantalla */
    padding: 20px;
    box-sizing: border-box;
}

.cards {
    width: 100%; /* Ocupa el ancho disponible en móviles */
    max-width: 200px; /* Ancho fijo para cada carta en pantallas más grandes (aumentado para mejor distribución en ancho completo) */
    height: 300px; /* Aumenté la altura para acomodar más texto */
    perspective: 1000px; /* Para el efecto 3D */
    cursor: pointer;
    margin-bottom: 20px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.cards:hover .card-inner {
    transform: rotateY(180deg);
}

.cards.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden; /* Evita desbordamiento */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-front {
    background-color: #fff;
}

.card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Evita desbordamiento de la imagen */
}

.card-back {
    background-color: #333;
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px; /* Más padding para texto */
    box-sizing: border-box;
}

.card-back h1 {
    font-size: 1.4em;
    margin: 0 0 15px 0;
    word-wrap: break-word; /* Evita desbordamiento de texto */
    overflow-wrap: break-word;
}

.card-back p {
    font-size: 1em;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
}

/* Responsive: En pantallas menores o iguales a 450px, las cartas se apilan verticalmente */
@media (max-width: 450px) {
    .sections {
        flex-direction: column;
        align-items: center;
    }
    .cards {
        max-width: 100%; /* Ocupa todo el ancho disponible */
        width: 100%;
    }
}
