:root {
    --color-primary: #1a3c5e;
    --color-primary-light: #1e5a8a;
    --color-secondary: #0ea5b8;
    --color-accent: #f2723f;
    --color-accent-hover: #e05d2a;
    --color-gold: #e8a838;
    --color-bg-light: #f5f7fa;
    --color-bg-white: #ffffff;
    --color-text-dark: #1e293b;
    --color-text-medium: #475569;
    --color-text-light: #64748b;
    --color-border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.08);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--color-bg-white);
    color: var(--color-text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== PRELOADER ========== */
.preloader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader .loader-ring {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition-smooth);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    padding: 10px 0;
}

.navbar .nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.4rem;
    color: #ffffff;
    transition: color var(--transition-smooth);
    letter-spacing: -0.5px;
}

.navbar.scrolled .logo {
    color: var(--color-primary);
}

.navbar .logo i {
    font-size: 1.8rem;
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 18px;
    border-radius: 50px;
    transition: all var(--transition-fast);
    position: relative;
    letter-spacing: 0.2px;
}

.navbar.scrolled .nav-links a {
    color: var(--color-text-medium);
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
    background: var(--color-accent);
}

.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active {
    color: #ffffff;
    background: var(--color-accent);
}

.nav-links .btn-nav {
    background: var(--color-accent);
    color: #ffffff !important;
    padding: 10px 22px;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(242, 114, 63, 0.4);
}

.nav-links .btn-nav:hover {
    background: var(--color-accent-hover);
    box-shadow: 0 6px 20px rgba(242, 114, 63, 0.55);
    transform: translateY(-2px);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 8px;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: #ffffff;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.navbar.scrolled .hamburger span {
    background: var(--color-primary);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(160deg, #0f1d35 0%, #1a3c5e 30%, #1b4d6b 60%, #0d3144 100%);
    overflow: hidden;
    isolation: isolate;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: floatShape 12s ease-in-out infinite;
    opacity: 0.25;
}

.hero-shape:nth-child(1) {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #f2723f 0%, transparent 70%);
    top: -15%;
    right: -10%;
    animation-delay: 0s;
    animation-duration: 14s;
}

.hero-shape:nth-child(2) {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #0ea5b8 0%, transparent 70%);
    bottom: -10%;
    left: -8%;
    animation-delay: -4s;
    animation-duration: 16s;
}

.hero-shape:nth-child(3) {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #e8a838 0%, transparent 70%);
    top: 40%;
    left: 50%;
    animation-delay: -8s;
    animation-duration: 18s;
}

.hero-shape:nth-child(4) {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    bottom: 20%;
    right: 20%;
    animation-delay: -2s;
    animation-duration: 10s;
}

@keyframes floatShape {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(60px, -50px) scale(1.15);
    }

    50% {
        transform: translate(-30px, 40px) scale(0.9);
    }

    75% {
        transform: translate(-50px, -30px) scale(1.1);
    }
}

.hero .container {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content {
    color: #ffffff;
}

.hero-content .hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 22px;
    animation: fadeInUp 0.8s ease forwards;
    backdrop-filter: blur(8px);
}

.hero-content h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
    animation: fadeInUp 0.8s ease 0.15s forwards;
    opacity: 0;
}

.hero-content h1 .highlight {
    background: linear-gradient(135deg, #f2723f, #e8a838);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    max-width: 500px;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.45s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-smooth);
    letter-spacing: 0.3px;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 8px 30px rgba(242, 114, 63, 0.45);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(242, 114, 63, 0.55);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-3px);
}

/* ===== NUEVO SLIDER DE IMÁGENES EN EL HERO ===== */
.hero-image {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-slider {
    position: relative;
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    aspect-ratio: 1 / 1;
    background: #1e293b;
    margin: 0 auto;
}

.hero-slider .slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 0;
}

.hero-slider .slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Dots */
.slider-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    border: 2px solid transparent;
}

.slider-dots .dot.active {
    background: var(--color-accent);
    transform: scale(1.3);
    border-color: #fff;
}

.slider-dots .dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Stats & scroll (se mantienen igual) */
.hero-stats {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 3;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 18px 28px;
    border-radius: var(--radius-md);
    text-align: center;
    color: #fff;
    min-width: 120px;
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
    transition: all var(--transition-smooth);
}

.hero-stat-card:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.hero-stat-card .stat-number {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero-stat-card .stat-label {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-top: 2px;
}

.scroll-indicator {
    position: absolute;
    bottom: 130px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    letter-spacing: 1px;
    animation: bounceDown 2s ease-in-out infinite;
}

.scroll-indicator span {
    display: block;
    width: 28px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    position: relative;
}

.scroll-indicator span::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background: #fff;
    border-radius: 4px;
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {

    0%,
    100% {
        top: 8px;
        opacity: 1;
    }

    50% {
        top: 22px;
        opacity: 0.3;
    }
}

@keyframes bounceDown {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(12px);
    }
}

/* ========== SECTION STYLES (sin cambios mayores) ========== */
.section {
    padding: 100px 24px;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header .section-badge {
    display: inline-block;
    background: rgba(242, 114, 63, 0.1);
    color: var(--color-accent);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.section-header h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--color-text-dark);
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.section-header .divider {
    width: 60px;
    height: 4px;
    background: var(--color-accent);
    border-radius: 2px;
    margin: 0 auto 16px;
}

.section-header p {
    color: var(--color-text-medium);
    font-size: 1.05rem;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Visión & Misión, Educación, Contacto (exactamente igual al código anterior) */
#vision-mision {
    background: var(--color-bg-light);
    position: relative;
    overflow: hidden;
}

#vision-mision::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 165, 184, 0.06) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
    pointer-events: none;
}

.vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    position: relative;
    z-index: 2;
}

.vm-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 40px 34px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-smooth);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.vm-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(242, 114, 63, 0.2);
}

.vm-card .vm-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: #fff;
    transition: transform var(--transition-smooth);
}

.vm-card:hover .vm-icon {
    transform: scale(1.1) rotate(-5deg);
}

.vm-card.vision .vm-icon {
    background: linear-gradient(135deg, #0ea5b8, #0891b2);
}

.vm-card.mision .vm-icon {
    background: linear-gradient(135deg, #f2723f, #e05d2a);
}

.vm-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text-dark);
}

.vm-card p {
    color: var(--color-text-medium);
    font-size: 0.98rem;
}

.vm-card::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    opacity: 0.04;
    transition: all var(--transition-smooth);
}

.vm-card.vision::after {
    background: #0ea5b8;
}

.vm-card.mision::after {
    background: #f2723f;
}

.vm-card:hover::after {
    width: 200px;
    height: 200px;
    bottom: -60px;
    right: -60px;
    opacity: 0.08;
}

#educacion {
    background: #ffffff;
    position: relative;
}

.edu-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.edu-tab-btn {
    padding: 12px 28px;
    border-radius: 50px;
    border: 2px solid var(--color-border);
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    color: var(--color-text-medium);
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.2px;
}

.edu-tab-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.edu-tab-btn.active {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
    box-shadow: 0 6px 20px rgba(242, 114, 63, 0.35);
}

.edu-content {
    display: none;
    animation: fadeSlideIn 0.5s ease forwards;
}

.edu-content.active {
    display: block;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.edu-card {
    background: var(--color-bg-light);
    border-radius: var(--radius-lg);
    padding: 30px 24px;
    text-align: center;
    transition: all var(--transition-smooth);
    border: 1px solid transparent;
    position: relative;
}

.edu-card:hover {
    background: #fff;
    box-shadow: var(--shadow-lg);
    border-color: var(--color-border);
    transform: translateY(-6px);
}

.edu-card .edu-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a3c5e, #1e5a8a);
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    transition: all var(--transition-smooth);
}

.edu-card:hover .edu-card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(26, 60, 94, 0.4);
}

.edu-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.edu-card p {
    color: var(--color-text-medium);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.edu-card .edu-duration {
    display: inline-block;
    background: rgba(242, 114, 63, 0.1);
    color: var(--color-accent);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

#contacto {
    background: var(--color-bg-light);
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.contact-info-card {
    background: #fff;
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all var(--transition-smooth);
    border-left: 4px solid transparent;
}

.contact-info-card:hover {
    box-shadow: var(--shadow-lg);
    border-left-color: var(--color-accent);
    transform: translateX(4px);
}

.contact-info-card .contact-icon-circle {
    min-width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    flex-shrink: 0;
}

.contact-icon-phone {
    background: linear-gradient(135deg, #0ea5b8, #0891b2);
}

.contact-icon-location {
    background: linear-gradient(135deg, #f2723f, #e05d2a);
}

.contact-icon-email {
    background: linear-gradient(135deg, #e8a838, #d4952c);
}

.contact-info-card h4 {
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--color-text-dark);
}

.contact-info-card p,
.contact-info-card a {
    color: var(--color-text-medium);
    font-size: 0.9rem;
    text-decoration: none;
}

.contact-info-card a:hover {
    color: var(--color-accent);
}

.contact-map-wrapper {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 100%;
    min-height: 420px;
    border: 1px solid var(--color-border);
}

.contact-map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    min-height: 420px;
}

/* Footer, back to top (idénticos) */
.footer {
    background: #0f1d35;
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 24px 24px;
    text-align: center;
    font-size: 0.9rem;
}

.footer .footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.footer .footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.footer .footer-social a:hover {
    background: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(242, 114, 63, 0.4);
}

.footer p {
    margin: 0;
    opacity: 0.8;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 999;
    box-shadow: 0 6px 20px rgba(242, 114, 63, 0.4);
    transition: all var(--transition-smooth);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-accent-hover);
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(242, 114, 63, 0.55);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    li{
        line-height: 3;
    }
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    .hero-content{
        margin-top: 74px;
    }
    .hero-content p {
        margin: 0 auto 28px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-slider {
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-stats {
        position: static;
        transform: none;
        margin-top: 30px;
        justify-content: center;
    }

    .scroll-indicator {
        display: none;
    }

    .vm-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-map-wrapper {
        min-height: 300px;
    }

    .contact-map-wrapper iframe {
        min-height: 300px;
    }
}

/* ========== CORRECCIONES RESPONSIVE NAVBAR ========== */
/* Estas reglas reemplazan y corrigen las existentes en @media (max-width: 768px) */

@media (max-width: 768px) {
    li{
        line-height: 3;
    }
     .hero-content{
        margin-top: 74px;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -110%;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        background: #ffffff;
        padding: 90px 24px 30px;
        gap: 4px;
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-smooth);
        z-index: 999;
        border-radius: 0;
    }

    .nav-links.open {
        right: 0;
    }

    /* CORRECCIÓN: Color base de los enlaces en menú móvil */
    .nav-links a {
        color: var(--color-text-dark) !important;
        padding: 12px 16px;
        border-radius: 8px;
        font-size: 1rem;
        background: transparent !important;
        /* Aseguramos fondo transparente por defecto */
        transition: all var(--transition-fast);
    }

    /* CORRECCIÓN: Hover - fondo naranja claro + texto naranja */
    .nav-links a:hover {
        background: rgba(242, 114, 63, 0.1) !important;
        color: var(--color-accent) !important;
    }

    /* CORRECCIÓN: Estado activo - fondo naranja sólido + texto blanco */
    .nav-links a.active {
        background: var(--color-accent) !important;
        color: #ffffff !important;
    }

    /* CORRECCIÓN: Botón "Contáctanos" en móvil */
    .nav-links .btn-nav {
        color: #ffffff !important;
        text-align: center;
        margin-top: 8px;
        background: var(--color-accent) !important;
    }

    .nav-links .btn-nav:hover {
        background: var(--color-accent-hover) !important;
        color: #ffffff !important;
    }

    /* Si el botón está activo, aseguramos el blanco */
    .nav-links .btn-nav.active {
        background: var(--color-accent-hover) !important;
        color: #ffffff !important;
    }

    .hamburger {
        display: flex;
    }
}

@media (max-width: 480px) {
    li{
        line-height: 3;
    }
     .hero-content{
        margin-top: 74px;
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        gap: 10px;
    }

    .hero-stat-card {
        min-width: 70px;
        padding: 12px 14px;
    }

    .hero-stat-card .stat-number {
        font-size: 1.2rem;
    }

    .hero-stat-card .stat-label {
        font-size: 0.7rem;
    }

    .back-to-top {
        bottom: 20px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}