/* =========================================================================
   Reset & Variables
   ========================================================================= */
:root {
    /* Colors - natural leaf green */
    --color-primary: #2e7d32;
    /* UXCA Leaf Green */
    --color-primary-dark: #1b5e20;
    --color-primary-light: #4caf50;
    --color-secondary: #00509e;
    /* UXCA Blue */
    --color-dark: #53564e;
    /* UXCA Olive (Text) */
    --color-light: #f8f9fa;
    --color-white: #ffffff;
    --color-gray-100: #f1f5f9;
    --color-gray-200: #e2e8f0;
    --color-gray-600: #7b8073;
    --color-gray-800: #3a3c36;

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', 'Inter', system-ui, sans-serif;

    /* Spacing & Layout */
    --container-max: 1200px;
    --nav-height: 80px;

    /* Effects & Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-sans);
    color: var(--color-gray-800);
    line-height: 1.6;
    background-color: var(--color-light);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50%;
    height: 4px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.section-title.text-white {
    color: var(--color-white);
}

.section-title.text-white::after {
    background-color: var(--color-white);
}

.section-description {
    font-size: 1.125rem;
    color: var(--color-gray-600);
    max-width: 600px;
    margin-bottom: 3rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 9999px;
    /* Pill shape */
    cursor: pointer;
    border: none;
    transition: all var(--transition-normal);
    font-family: var(--font-sans);
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
}

.btn-secondary {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-gray-100);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-gray-600);
    color: var(--color-gray-800);
}

.btn-outline:hover {
    border-color: var(--color-dark);
    color: var(--color-dark);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* =========================================================================
   Header & Navigation
   ========================================================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: box-shadow var(--transition-normal), background var(--transition-normal);
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
    background: rgba(255, 255, 255, 0.98);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-dark);
    border-radius: 3px;
    transition: all var(--transition-normal);
}

.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-gray-800);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.btn-participa-nav {
    background-color: var(--color-primary);
    color: var(--color-white) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    transition: all var(--transition-normal);
}

.btn-participa-nav::after {
    display: none;
}

.btn-participa-nav:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* =========================================================================
   Hero Section
   ========================================================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: -2;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at center, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.7) 100%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.5) 100%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--color-white);
    max-width: 800px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    max-height: 320px;
    width: auto;
    max-width: 90%;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 1)) drop-shadow(0 0 15px rgba(255, 255, 255, 0.6)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.8));
    object-fit: contain;
    animation: fadeInUp 0.8s forwards, logoGlow 4s 2s ease-in-out infinite;
}

@keyframes logoGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 1)) drop-shadow(0 0 15px rgba(255, 255, 255, 0.6)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.8));
    }

    50% {
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 1)) drop-shadow(0 0 15px rgba(255, 255, 255, 0.6)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 35px rgba(76, 175, 80, 0.7));
    }
}

.hero-subtitle {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 300;
    margin-bottom: 2.5rem;
    color: var(--color-gray-200);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.02em;
}

/* =========================================================================
   Carousel Section
   ========================================================================= */
.carousel-section {
    padding: 6rem 0;
    background-color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    max-width: var(--container-max);
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 60vh;
    min-height: 400px;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 4rem 2rem 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--color-white);
    text-align: center;
}

.carousel-caption h3 {
    color: var(--color-white);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--color-dark);
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

.carousel-btn.prev {
    left: 1rem;
}

.carousel-btn.next {
    right: 1rem;
}

/* =========================================================================
   Participa Section
   ========================================================================= */
.participa {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.participa::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 60%;
    height: 200%;
    background: rgba(255, 255, 255, 0.05);
    transform: rotate(15deg);
    pointer-events: none;
}

.participa-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.participa-text {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.8;
}

.participa-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.participa-logo-badge {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff 0%, #eaeaea 50%, #d5d5d5 100%);
    padding: 30px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.8),
        inset 0 -4px 8px rgba(0, 0, 0, 0.15),
        0 0 0 4px rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

/* Reflejo superior de luz (estático) */
.participa-logo-badge::after {
    content: '';
    position: absolute;
    top: 5%;
    left: 15%;
    width: 70%;
    height: 40%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
}

/* Destello metálico que barre al hacer hover */
.participa-logo-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(105deg,
            transparent 20%,
            rgba(255, 255, 255, 0) 40%,
            rgba(255, 255, 255, 0.6) 50%,
            rgba(255, 255, 255, 0) 60%,
            transparent 80%);
    transform: skewX(-15deg);
    transition: left 0.8s ease;
    z-index: 3;
    pointer-events: none;
}

.participa-logo-badge:hover::before {
    left: 125%;
}

.participa-logo-badge:hover {
    transform: scale(1.08) rotate(-3deg);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.8),
        inset 0 -4px 8px rgba(0, 0, 0, 0.15),
        0 0 0 6px rgba(255, 255, 255, 0.35),
        0 0 30px rgba(76, 175, 80, 0.3);
    animation: badgeGlow 1.5s ease-in-out infinite;
}

.participa-logo-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.participa-logo-badge:hover img {
    transform: scale(1.05);
}

/* =========================================================================
   Footer
   ========================================================================= */
.footer {
    background-color: var(--color-dark);
    color: var(--color-gray-200);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 3rem;
}

.footer-logo-container {
    max-width: 300px;
}

.footer-logo {
    height: 120px;
    width: 120px;
    object-fit: contain;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.4),
        inset 0 -2px 6px rgba(0, 0, 0, 0.2),
        0 0 0 2px rgba(255, 255, 255, 0.1);
    background: linear-gradient(145deg, #ffffff 0%, #eaeaea 50%, #d5d5d5 100%);
    padding: 16px;
    margin-bottom: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

/* Destello metálico en footer */
.footer-logo::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(105deg,
            transparent 20%,
            rgba(255, 255, 255, 0) 40%,
            rgba(255, 255, 255, 0.5) 50%,
            rgba(255, 255, 255, 0) 60%,
            transparent 80%);
    transform: skewX(-15deg);
    transition: left 0.7s ease;
    z-index: 2;
    pointer-events: none;
}

.footer-logo:hover::after {
    left: 125%;
}

.footer-logo:hover {
    transform: scale(1.12) rotate(3deg);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.5),
        inset 0 -2px 6px rgba(0, 0, 0, 0.2),
        0 0 0 3px rgba(255, 255, 255, 0.2),
        0 0 20px rgba(76, 175, 80, 0.25);
    animation: badgeGlow 1.5s ease-in-out infinite;
}

.footer-motto {
    font-size: 1.125rem;
    font-weight: 300;
    opacity: 0.8;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    color: var(--color-white);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column a {
    opacity: 0.7;
}

.footer-column a:hover {
    opacity: 1;
    color: var(--color-primary);
}

.footer-bottom {
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.6;
}

/* =========================================================================
   Cookie Banner
   ========================================================================= */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    /* Hidden by default */
    left: 20px;
    right: 20px;
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 10000;
    transition: bottom var(--transition-slow);
    border: 1px solid var(--color-gray-200);
}

.cookie-banner.show {
    bottom: 20px;
}

.cookie-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.cookie-content p {
    font-size: 0.875rem;
    color: var(--color-gray-600);
}

.cookie-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

@media (min-width: 768px) {
    .cookie-banner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* =========================================================================
   Legal Pages
   ========================================================================= */
.legal-page {
    padding-top: calc(var(--nav-height) + 3rem);
}

.legal-container {
    max-width: 800px;
}

.legal-content {
    margin-top: 2rem;
}

.legal-content h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary-dark);
    border-bottom: 2px solid var(--color-gray-200);
    padding-bottom: 0.5rem;
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--color-gray-800);
}

.legal-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.legal-content a:hover {
    color: var(--color-primary-dark);
}

.legal-updated {
    font-style: italic;
    color: var(--color-gray-600);
    font-size: 0.95rem;
    margin-bottom: 2rem !important;
}

.legal-list {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.legal-list li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.legal-placeholder {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    color: #856404;
    border: 1px dashed #ffc107;
}

.legal-table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.legal-table th,
.legal-table td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-gray-200);
    text-align: left;
}

.legal-table th {
    background-color: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
}

.legal-table td code {
    background-color: var(--color-gray-100);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.legal-back {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-gray-200);
}

/* =========================================================================
   Email Confirmation Modal
   ========================================================================= */
.email-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20000;
    align-items: center;
    justify-content: center;
}

.email-modal.active {
    display: flex;
}

.email-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.email-modal-content {
    position: relative;
    background: var(--color-white);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 440px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.35s ease-out;
}

.email-modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.email-modal-content h3 {
    font-size: 1.5rem;
    color: var(--color-dark);
    margin-bottom: 0.75rem;
}

.email-modal-content p {
    font-size: 1rem;
    color: var(--color-gray-600);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.email-modal-address {
    font-weight: 700;
    color: var(--color-primary) !important;
    font-size: 1.1rem !important;
    margin-bottom: 1.5rem !important;
}

.email-modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.email-modal-buttons .btn {
    min-width: 120px;
}

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

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes badgeGlow {

    0%,
    100% {
        box-shadow:
            0 12px 40px rgba(0, 0, 0, 0.4),
            inset 0 2px 4px rgba(255, 255, 255, 0.8),
            inset 0 -4px 8px rgba(0, 0, 0, 0.15),
            0 0 0 6px rgba(255, 255, 255, 0.35),
            0 0 30px rgba(76, 175, 80, 0.3);
    }

    50% {
        box-shadow:
            0 12px 40px rgba(0, 0, 0, 0.4),
            inset 0 2px 4px rgba(255, 255, 255, 0.8),
            inset 0 -4px 8px rgba(0, 0, 0, 0.15),
            0 0 0 8px rgba(255, 255, 255, 0.5),
            0 0 50px rgba(76, 175, 80, 0.5);
    }
}

/* =========================================================================
   Animations
   ========================================================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.hero-logo.fade-in-up {
    animation: fadeInUp 0.8s forwards, logoGlow 4s 2s ease-in-out infinite;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

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

/* Base element animations via JS IntersectionObserver */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================================
   Media Queries
   ========================================================================= */
@media (max-width: 992px) {

    .participa-container,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .participa-image {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background-color: var(--color-white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 3rem;
        transform: translateX(100%);
        transition: transform var(--transition-normal);
        box-shadow: var(--shadow-md);
    }

    .nav.nav-open {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        gap: 2rem;
        width: 100%;
        text-align: center;
    }

    .nav-link {
        font-size: 1.25rem;
    }

    .menu-toggle.open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero-logo {
        max-height: 220px;
    }

    .section {
        padding: 4rem 0;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}