* {
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent global horizontal scroll */
}

:root {
    --verde: #0f3d35;
    --dorado: #c2914f;
    --vino: #6b1d2c;
    --gris: #1e1e1e;
    --blanco: #ffffff;
    --texto-oscuro: #222;
    --texto-gris: #666;
}

/* ---------- HERO ---------- */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--verde) 0%, #0a2420 100%);
}

/* ---------- TOP BAR ---------- */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 4rem;
    background: rgba(15, 61, 53, 0.95); /* verde institucional solido */
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    position: relative;
    z-index: 1001; /* Cima total */
}
.top-bar-contact, .top-bar-social {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.top-bar a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.top-bar a:hover {
    color: var(--dorado);
}

/* ---------- NAVBAR ---------- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    background: rgba(255, 255, 255, 0.08); /* Base transparente con glassmorphism */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

/* Estado al hacer Scroll */
.navbar.scrolled {
    padding: 0.7rem 4rem;
    background: rgba(15, 61, 53, 0.98); /* Verde oscuro más sólido que la Top Bar */
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border-bottom: none;
}

/* Imagen del Logo */
.logo-img {
    height: 90px;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.2));
    transition: height 0.3s ease;
}

.navbar.scrolled .logo-img {
    height: 60px; /* Reducción elegante al bajar */
}

/* Enlaces del Menú */
.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-item {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.nav-item:hover {
    color: var(--dorado);
}

.btn-login-nav {
    background: var(--dorado);
    color: white;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(194, 145, 79, 0.4);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-login-nav:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(194, 145, 79, 0.6);
}

.logo-icon {
    font-size: 2.5rem;
    color: var(--dorado);
}

.logo-title {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Lora', serif;
}

.logo-subtitle {
    font-size: 0.95rem;
    opacity: 0.9;
}

.login-btn {
    color: var(--blanco);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--dorado);
    border-radius: 25px;
    transition: all 0.3s;
}

/* ---------- HERO CONTENT ---------- */

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;

    /* Gradiente base */
    background: linear-gradient(270deg,
            var(--verde),
            var(--gris),
            var(--verde));
    background-size: 300% 300%;

    /* Animaciones */
    animation: gradientFlow 12s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}


@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-3d-wrapper {
    perspective: 1500px;
    transform-style: preserve-3d;
    z-index: 10;
    position: relative;
    will-change: transform;
    transition: transform 0.15s ease-out;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hero-icon-circle {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;

    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);

    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);

    animation: floatCircle 6s ease-in-out infinite;
    position: relative;
}

@keyframes floatCircle {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0);
    }
}

.hero-logo {
    width: 250px;
    height: auto;

    animation: mascotBounce 4s ease-in-out infinite;
    transition: transform 0.4s ease;
}

@keyframes mascotBounce {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(2deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

.hero-icon-circle:hover .hero-logo {
    transform: scale(1.08) rotate(-3deg);
}

.hero-icon-circle::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(255, 255, 255, 0.25),
            transparent 70%);
    opacity: 0.6;
    animation: glowPulse 5s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.8;
    }
}

.hero-title {
    font-size: 4.5rem;
    color: var(--blanco);
    margin-bottom: 0.5rem; /* Reducido para acercar el subtítulo */
    line-height: 1.1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--dorado);
    font-weight: 600;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    opacity: 0.9;
    font-family: 'Montserrat', sans-serif;
}

.typewriter-caret {
    border-right: 4px solid var(--dorado);
    padding-right: 6px;
    animation: blinkCaret 0.8s step-end infinite;
}

@keyframes blinkCaret {
    from, to { border-color: transparent }
    50% { border-color: var(--dorado); }
}

.hero-descriptions-row {
    display: flex;
    gap: 2.5rem;
    max-width: 1100px;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.hero-descriptions-row .hero-description {
    flex: 1;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    margin-bottom: 0;
    text-align: justify;
}

.hero-descriptions-row .hero-description+.hero-description {
    border-left: 2px solid rgba(194, 145, 79, 0.45);
    padding-left: 2.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
    max-width: 600px;
    line-height: 30px;
}

/* Responsive: stack en pantallas pequeñas */
@media (max-width:768px) {
    .hero-descriptions-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-descriptions-row .hero-description+.hero-description {
        border-left: none;
        padding-left: 0;
        border-top: 2px solid rgba(194, 145, 79, 0.45);
        padding-top: 1.5rem;
    }
}

.cta-button {
    padding: 1.25rem 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--blanco);

    background: linear-gradient(135deg,
            var(--dorado),
            #b8843e,
            var(--dorado));
    background-size: 300% 300%;

    border: none;
    border-radius: 50px;
    cursor: pointer;

    box-shadow: 0 8px 20px rgba(194, 145, 79, 0.35);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;

    /* 🔥 Animación viva */
    animation: gradientPulse 6s ease-in-out infinite;

    position: relative;
    overflow: hidden;
}

@keyframes gradientPulse {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.cta-button:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 16px 35px rgba(194, 145, 79, 0.5);
}

.wave {
    background: var(--blanco);
    height: 80px;
    clip-path: ellipse(70% 100% at 50% 100%);
}

/* ---------- FEATURES ---------- */

.features {
    background: var(--blanco);
    padding: 5rem 4rem;
}

.features-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--texto-oscuro);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature {
    text-align: center;
}

.feature-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-circle i {
    font-size: 2rem;
    color: var(--blanco);
}

.dorado {
    background: linear-gradient(135deg, var(--dorado) 0%, #b8843e 100%);
}

.verde {
    background: linear-gradient(135deg, var(--verde) 0%, #0a2420 100%);
}

.feature h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--texto-oscuro);
}

.feature p {
    color: var(--texto-gris);
    line-height: 1.7;
}

/* ---------- CTA ---------- */

.cta-section {
    background: linear-gradient(135deg, var(--verde) 0%, #0a2420 100%);
    padding: 4rem 2rem;
    text-align: center;
}

.cta-section h2 {
    color: var(--blanco);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* ---------- FOOTER ---------- */

.footer {
    background: var(--gris);
    color: var(--blanco);
    padding: 2rem;
    text-align: center;
}

.footer-bar {
    margin-top: 1rem;
    height: 4px;
    background: linear-gradient(90deg, var(--vino) 0%, var(--dorado) 100%);
    max-width: 200px;
    margin: 1rem auto 0;
}



/* ---------- MODAL ---------- */
.modal {
    display: none;
    position: fixed;
    z-index: 9999; /* Asegurar que esté por encima de todo */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.modal-content {
    background: #ffffff;
    border-radius: 24px;
    width: 95%;
    max-width: 420px; /* Tamaño estándar para un login normal */
    margin: auto;
    padding: 2.5rem 2rem; 
    box-sizing: border-box;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden; 
}

/* Modal de selección de rol específico (proporcionado y elegante) */
#modalUserType .modal-content {
    max-width: 350px;
    padding: 2.5rem 2rem;
}

#modalUserType h2 {
    word-wrap: break-word;
    font-size: 1.3rem !important;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(20px) scale(0.98);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 28px;
    cursor: pointer;
    color: #555;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

.login-form input {
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.login-form label {
    font-weight: 600;
    margin-top: 0.5rem;
}

/* ===== OPCIONES DE USUARIO ===== */

.user-option {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 18px 20px;
    margin: 12px 0;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 14px;
    border: 2px solid #8b1e2d;
    background: #fff;
    cursor: pointer;
    transition: all .25s ease;
}

.user-option i {
    font-size: 1.6rem;
    color: #8b1e2d;
}

.user-option:hover {
    background: #8b1e2d;
    color: #fff;
    transform: translateY(-2px);
}

.user-option:hover i {
    color: #fff;
}

/* ===== LOGIN BOX ===== */
.login-box {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    background: #ffffff;
    border: none;
    border-top: 6px solid var(--verde);
    padding: 2.5rem 2rem;
}

.logo-box {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.login-logo {
    width: 100px;
    height: auto;
    filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.1));
}

.login-box h2 {
    color: var(--verde);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 5px;
}

#roleIndicator {
    font-size: 1rem;
    margin-bottom: 25px;
    color: var(--dorado);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* FORMULARIO */

#loginForm {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.input-container {
    position: relative;
    width: 100%;
}

.input-container i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--texto-gris);
    font-size: 1.1rem;
    transition: color 0.3s ease;
    z-index: 10;
}

#togglePassword {
    left: auto;
    right: 15px;
    cursor: pointer;
}

#togglePassword:hover {
    color: var(--dorado);
}

#loginForm input {
    width: 100%;
    padding: 14px 14px 14px 45px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background-color: #f8fafc;
    font-size: 1rem;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

#loginForm input:focus {
    outline: none;
    border-color: var(--dorado);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(194, 145, 79, 0.1);
}

#loginForm .input-container:focus-within i {
    color: var(--dorado);
}

/* BOTÓN LOGIN */

.login-box .login-btn {
    background: linear-gradient(135deg, var(--dorado) 0%, #b8843e 100%);
    border: none;
    padding: 15px;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(194, 145, 79, 0.3);
}

.login-box .login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(194, 145, 79, 0.4);
    background: linear-gradient(135deg, #b8843e 0%, var(--dorado) 100%);
}

.forgot {
    display: inline-block;
    margin-top: 18px;
    color: var(--texto-gris);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.forgot:hover {
    color: var(--verde);
    text-decoration: underline;
}

.login-box hr {
    margin: 25px 0 20px;
    border: 0;
    border-top: 1px solid #e2e8f0;
}

.register-btn {
    display: block;
    width: 100%;
    margin: 15px auto 0;
    padding: 14px;
    border-radius: 12px;
    border: 2px solid var(--verde);
    color: var(--verde);
    background: transparent;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.register-btn:hover {
    background: var(--verde);
    color: var(--blanco);
    box-shadow: 0 6px 15px rgba(10, 36, 32, 0.2);
}


/* ============================================================
   RESPONSIVE DESIGN - FULL OVERHAUL
   ============================================================ */

/* ---------- MOBILE MENU BUTTON ---------- */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1101;
    padding: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
}

.mobile-menu-btn .bar {
    width: 25px;
    height: 2.5px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger to X animation */
.mobile-menu-btn.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.mobile-menu-btn.active .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-btn.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Mobile nav overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1099;
    backdrop-filter: blur(3px);
}
.nav-overlay.active { display: block; }

/* ---------- TABLET (≤ 1100px) ---------- */
@media screen and (max-width: 1100px) {
    .top-bar { padding: 0.5rem 2rem; }
    .navbar { padding: 1rem 2rem; }
    .navbar.scrolled { padding: 0.7rem 2rem; }
    .features { padding: 4rem 2rem; }
    .features-grid { gap: 2rem; }
}

/* ---------- TABLET / MOBILE (≤ 992px) ---------- */
@media screen and (max-width: 992px) {
    .top-bar { display: none; }

    .navbar {
        padding: 0.9rem 1.5rem;
        position: sticky;
        top: 0;
    }
    .navbar.scrolled { padding: 0.7rem 1.5rem; }

    .logo-img { height: 60px; }
    .navbar.scrolled .logo-img { height: 45px; }

    .mobile-menu-btn { display: flex; }

    /* Slide-in drawer menu */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(80vw, 300px);
        height: 100vh;
        background: rgba(10, 42, 36, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 0;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 40px rgba(0,0,0,0.4);
        z-index: 1100;
        padding: 3rem 2rem;
        list-style: none;
        margin: 0;
    }
    .nav-links.active { right: 0; }

    .nav-links li { width: 100%; }

    .nav-item {
        display: block;
        font-size: 1.15rem;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        width: 100%;
    }

    .nav-item:last-child { border-bottom: none; }

    .btn-login-nav {
        margin-top: 1.5rem;
        justify-content: center;
        width: 100%;
    }

    /* Hero adjustments */
    .hero-title { font-size: 3rem; letter-spacing: -0.5px; }
    .hero-subtitle { font-size: 1.1rem; letter-spacing: 2px; }
    .hero-description { font-size: 0.95rem; padding: 0 0.5rem; }
    .hero-icon-circle { width: 180px; height: 180px; }
    .hero-logo { width: 200px; }

    /* Features 2-col */
    .features { padding: 3.5rem 2rem; }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .features-title { font-size: 2rem; }
}

/* ---------- MOBILE (≤ 768px) ---------- */
@media screen and (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1rem; letter-spacing: 1.5px; }

    .hero-content { padding: 2.5rem 1.2rem; }

    .hero-descriptions-row {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    .hero-descriptions-row .hero-description + .hero-description {
        border-left: none;
        padding-left: 0;
        border-top: 2px solid rgba(194, 145, 79, 0.4);
        padding-top: 1.5rem;
    }

    .cta-button {
        padding: 1rem 2.2rem;
        font-size: 1.05rem;
    }

    /* Features 1-col */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 480px;
        margin: 0 auto;
    }

    /* CTA section */
    .cta-section h2 { font-size: 1.9rem; }
    .cta-section p { font-size: 1rem; }

    /* Modal - centered and properly sized */
    .modal {
        padding: 0;
        align-items: center;
        justify-content: center;
    }
    .modal-content {
        width: 92% !important;
        max-width: 400px !important;
        margin: 0 auto;
        border-radius: 20px;
        padding: 2rem 1.5rem;
        max-height: 90vh;
        overflow-y: auto;
        animation: modalSlideIn 0.35s ease;
    }
    #modalUserType .modal-content {
        max-width: 340px !important;
    }
}

/* Móvil Pequeño (< 600px) */
@media screen and (max-width: 600px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-3d-wrapper {
        margin-bottom: 20px;
    }

    .hero-content {
        padding: 2rem 1rem;
    }

    /* Ajuste de botones en Hero si los hubiera */
    .hero-descriptions-row {
        text-align: center;
    }

    /* Modal Responsiveness (Centered on Mobile) */
    .modal {
        padding: 1rem; 
        align-items: center; 
        justify-content: center;
    }

    .modal-content {
        width: 95% !important; 
        max-width: 380px !important;
        margin: auto !important;
        border-radius: 20px;
        padding: 2rem 1.5rem;
        max-height: 90vh;
        height: auto;
        overflow-y: auto;
        box-shadow: 0 15px 35px rgba(0,0,0,0.2);
        animation: modalSlideIn 0.3s ease;
    }

    @keyframes modalSlideLeftCustom {
        from { transform: translateX(-30px); opacity: 0; }
        to { transform: translateX(0); opacity: 1; }
    }

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

    .login-box {
        padding: 1rem 0.5rem;
        border-top: 4px solid var(--verde);
    }

    .logo-box {
        margin-bottom: 15px;
    }

    .login-logo {
        width: 80px;
    }

    .user-option {
        padding: 14px 16px;
        font-size: 1rem;
        gap: 12px;
    }

    .user-option i {
        font-size: 1.3rem;
    }

    #roleIndicator {
        margin-bottom: 15px;
        font-size: 0.9rem;
    }

    #loginForm {
        gap: 12px;
    }

    #loginForm input {
        padding: 12px 12px 12px 40px;
    }

    .login-box h2 {
        font-size: 1.5rem;
    }

    .features {
        padding: 3rem 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .features-title {
        font-size: 2rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* ---------- SMALL MOBILE (≤ 480px) ---------- */
@media screen and (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 0.9rem; letter-spacing: 1px; }
    .hero-content { padding: 2rem 1rem; }

    .hero-icon-circle { width: 150px; height: 150px; }
    .hero-logo { width: 160px; }
    .hero-3d-wrapper { margin-bottom: 15px; }

    .cta-button { padding: 0.9rem 1.8rem; font-size: 0.95rem; }

    .features { padding: 2.5rem 1rem; }
    .features-title { font-size: 1.7rem; }

    .cta-section { padding: 3rem 1rem; }
    .cta-section h2 { font-size: 1.6rem; }

    .modal-content {
        width: 95% !important;
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }

    .login-box {
        padding: 1.2rem 0.8rem;
    }
    .login-box h2 { font-size: 1.4rem; }
    .login-logo { width: 75px; }

    .user-option {
        padding: 14px 16px;
        font-size: 1rem;
        gap: 12px;
    }
    .user-option i { font-size: 1.3rem; }

    #loginForm { gap: 12px; }
    #loginForm input { padding: 12px 12px 12px 38px; font-size: 0.95rem; }

    #roleIndicator { font-size: 0.85rem; margin-bottom: 15px; }
}

/* ---------- TOUCH DEVICES ---------- */
@media (hover: none) {
    .hero-3d-wrapper {
        transition: transform 0.3s ease; /* Transiciones más suaves en móvil */
    }
}