:root {
    --primary: #8B1D4B;
    /* UAOM Burgundy from logo */
    --primary-light: #B02B63;
    --primary-dark: #5A1231;
    --secondary: #0A0A0A;
    /* Deep Tech Black */
    --text: #1D1D1F;
    --text-muted: #86868B;
    --bg-light: #FFFFFF;
    --bg-alt: #F5F5F7;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-dark: rgba(139, 29, 75, 0.1);
    --header-height: 80px;
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    --shadow-premium: 0 20px 60px rgba(139, 29, 75, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text);
    background-color: var(--bg-light);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.no-scroll {
    overflow: hidden;
}

h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

section {
    padding: 120px 20px;
    max-width: 1300px;
    margin: 0 auto;
}

/* --- Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: transparent;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(139, 29, 75, 0.05);
    height: 70px;
}

.logo-container {
    height: 100px;
}

.logo-nav {
    height: 100%;
    opacity: 0;
    transform: translateY(15px);
    transition: var(--transition);
}

.header.scrolled .logo-nav {
    opacity: 1;
    transform: translateY(0);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    letter-spacing: 0.01em;
}

.header.scrolled .nav-links a {
    color: var(--text);
}

.nav-links a:hover {
    color: var(--primary);
}

/* --- Hamburger Menu --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 10px;
    transition: var(--transition);
}

.header.scrolled .menu-toggle span {
    background: var(--primary);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(25px);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-nav-overlay.active {
    right: 0;
}

.menu-close {
    position: absolute;
    top: 30px;
    left: 30px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.menu-close span {
    position: absolute;
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 10px;
}

.menu-close span:nth-child(1) {
    transform: rotate(45deg);
}

.menu-close span:nth-child(2) {
    transform: rotate(-45deg);
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
}

.mobile-nav-links li {
    margin: 30px 0;
}

.mobile-nav-links a {
    text-decoration: none;
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    transition: var(--transition);
}

.mobile-nav-links a:hover {
    color: var(--primary);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    padding: 0;
    max-width: none;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 0;
    opacity: 0.6;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 29, 75, 0.3), rgba(10, 10, 10, 0.8));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-logo-main {
    width: 280px;
    height: auto;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.hero-logo-main.hidden {
    opacity: 0;
    transform: scale(0.6) translateY(-150px);
    pointer-events: none;
}

/* --- Typo Styles & Titles --- */
.section-title {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 50px;
    text-align: center;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--primary);
    margin: 25px auto 0;
    border-radius: 2px;
}

.grid-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.card h3 {
    color: var(--primary);
    margin-bottom: 20px;
}

/* --- 3D Flip Cards --- */
.offerings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.flip-card {
    height: 400px;
    perspective: 2000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    cursor: pointer;
}

.flip-card:hover .flip-card-inner,
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border-radius: 32px;
    box-shadow: var(--shadow-premium);
    /* Enhanced shadow as requested */
}

.flip-card-front {
    background: var(--bg-light);
    border: 1px solid rgba(139, 29, 75, 0.05);
}

.flip-card-front h3 {
    font-size: 2rem;
    color: var(--primary);
    text-align: center;
}

.flip-card-back {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    transform: rotateY(180deg);
}

/* --- Modelo Educativo Redesign --- */
.feature-card {
    position: relative;
    height: 500px;
    border-radius: 40px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 50px;
    transition: var(--transition);
}

.feature-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.9), transparent);
    transition: var(--transition);
}

.feature-card:hover .feature-card-overlay {
    background: linear-gradient(to top, var(--primary-dark), rgba(139, 29, 75, 0.7));
}

.feature-card-content {
    position: relative;
    z-index: 2;
    color: white;
    width: 100%;
}

.feature-card h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    transform: translateY(40px);
    transition: var(--transition);
}

.feature-list {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: var(--transition);
    transform: translateY(20px);
}

.feature-card:hover h3 {
    transform: translateY(0);
}

.feature-card:hover .feature-list {
    max-height: 200px;
    opacity: 1;
    transform: translateY(0);
}

.feature-list li {
    margin-bottom: 12px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list li::before {
    content: '→';
    color: var(--primary-light);
    font-weight: 700;
}

.modelo-footer-text {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
    margin-top: 80px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.3;
}

/* --- Footer --- */
.main-footer {
    background: var(--primary);
    /* Gindo/Burgundy as requested */
    padding: 80px 20px;
    text-align: center;
    color: white;
    border-radius: 100px 100px 0 0;
    margin-top: 80px;
}

.footer-logo {
    margin-bottom: 40px;
}

.logo-white {
    width: 180px;
    filter: brightness(0) invert(1);
    /* Logo white */
}

.footer-content p {
    opacity: 0.8;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
}

/* --- WhatsApp Button --- */
.whatsapp-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 65px;
    height: 65px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: pulse-wa 2s infinite;
}

.whatsapp-btn svg {
    width: 32px;
    fill: white;
}

.whatsapp-btn:hover {
    transform: scale(1.1) rotate(10deg);
}

@keyframes pulse-wa {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 16px 40px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 100px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
}

/* Animation Reveal */
[data-animate] {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Infinite Logo Carousel --- */
.logo-carousel-container {
    overflow: hidden;
    padding: 40px 0;
    position: relative;
    background: white;
    margin: 40px 0;
}

.logo-carousel-container::before,
.logo-carousel-container::after {
    content: "";
    height: 100%;
    position: absolute;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.logo-carousel-container::before {
    left: 0;
    top: 0;
    background: linear-gradient(to right, white 0%, transparent 100%);
}

.logo-carousel-container::after {
    right: 0;
    top: 0;
    background: linear-gradient(to left, white 0%, transparent 100%);
}

.logo-track {
    display: flex;
    width: fit-content;
    animation: scroll-carousel 30s linear infinite;
}

.logo-item {
    flex: 0 0 300px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition);
    text-align: center;
}

.logo-item:hover {
    color: var(--primary);
    transform: scale(1.1);
}

@keyframes scroll-carousel {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .header {
        padding: 0 30px;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .offerings-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        height: 400px;
        padding: 30px;
    }

    .feature-card h3 {
        font-size: 2rem;
    }

    .modelo-footer-text {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0 20px;
    }

    .logo-container {
        height: 35px;
    }

    .whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
}