@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* =========================================================================
   VARIABLES & DESIGN SYSTEM (APPLE/GLASSMORPHISM STYLE)
   ========================================================================= */
:root {
    /* Colors - Strict Monochromatic / Minimalist */
    --white: #ffffff;
    --black: #000000;
    --oxford-gray: #1d1d1f; /* Apple's dark gray */
    --light-gray: #f5f5f7; /* Apple's background gray */
    --border-gray: rgba(0, 0, 0, 0.1);
    
    /* Accents - Only Grays as requested */
    --accent-gray: #86868b;
    --hover-gray: #1d1d1f;
    --whatsapp-green: #25D366;
    --whatsapp-hover: #128C7E;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-bg-dark: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-blur: blur(20px);
    
    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    
    /* Effects & Utils */
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* Smoother apple-like transition */
    --shadow-sm: 0 4px 20px rgba(0,0,0,0.03);
    --shadow-md: 0 10px 40px rgba(0,0,0,0.05);
    --shadow-lg: 0 25px 50px rgba(0,0,0,0.08);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.04);
}

/* =========================================================================
   RESET & BASE STYLES
   ========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--oxford-gray);
    background-color: var(--light-gray);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

ul {
    list-style: none;
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.text-center {
    text-align: center;
}

/* =========================================================================
   TYPOGRAPHY
   ========================================================================= */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--oxford-gray);
    letter-spacing: -0.04em;
}

.section-desc {
    font-size: 1.25rem;
    color: var(--accent-gray);
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.5;
}

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 980px; /* Apple pill shape */
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    letter-spacing: -0.01em;
}

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

.btn-primary:hover {
    background-color: var(--black);
    transform: translateY(-3px);
}

.btn-outline {
    background-color: transparent;
    color: var(--oxford-gray);
    border: 1px solid rgba(29, 29, 31, 0.2);
}
.btn-outline:hover {
    background-color: var(--oxford-gray);
    color: var(--white);
    border-color: var(--oxford-gray);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}


.btn-whatsapp-large, .btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: var(--white);
    font-size: 1.05rem;
    padding: 1.2rem 2.8rem;
    gap: 0.8rem;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-large:hover, .btn-whatsapp:hover {
    background-color: var(--whatsapp-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* =========================================================================
   HEADER & NAVBAR (GLASSMORPHISM)
   ========================================================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 180px;
    transition: var(--transition);
}

.header.scrolled .navbar {
    height: 120px;
}

.logo img {
    height: 150px;
    max-height: 150px; /* Adjust based on your logo aspect ratio */
    width: auto;
    object-fit: contain;
}

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

.nav-links a:not(.btn) {
    font-weight: 400;
    font-size: 0.9rem;
    position: relative;
    padding: 0.5rem 0;
    color: var(--oxford-gray);
    opacity: 0.8;
}

.nav-links a:not(.btn):hover {
    opacity: 1;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--oxford-gray);
}

/* =========================================================================
   HERO SECTION
   ========================================================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 220px;
    overflow: hidden;
    background-color: var(--white);
}

/* Abstract Background Shapes for Glassmorphism Context */
.hero::before, .hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.4;
}

.hero::before {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(226,226,226,0.6) 0%, rgba(245,245,247,0) 70%);
    top: -200px;
    right: -100px;
}

.hero::after {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(230,230,230,0.7) 0%, rgba(245,245,247,0) 70%);
    bottom: -100px;
    left: -200px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    text-align: center;
    animation: fadeUpScale 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.85rem;
    margin: 0 auto 2rem;
    color: var(--oxford-gray);
    width: fit-content;
    box-shadow: var(--shadow-glass);
}

.badge img {
    height: 35px;
    width: auto;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--oxford-gray);
    margin-bottom: 1.5rem;
    letter-spacing: -0.05em;
    line-height: 1.05;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent-gray);
    margin-bottom: 3rem;
    max-width: 700px;
    font-weight: 400;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
}

.hero-image-wrapper {
    margin-top: 4rem;
    position: relative;
    z-index: 2;
    perspective: 1000px;
    animation: fadeUpScale 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
}

.hero-image {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--glass-border);
    transform: rotateX(5deg);
    transition: var(--transition);
}

.hero-image:hover {
    transform: rotateX(0deg);
}

/* =========================================================================
   ABOUT / IMAGES GRID SECTION (Glassmorphism)
   ========================================================================= */
.about {
    padding: 8rem 0;
    background-color: var(--light-gray);
    position: relative;
}

.glass-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.75) 100%);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 40px;
    padding: 4rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03), inset 0 2px 0 rgba(255,255,255,0.8);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}
.glass-card:hover {
    box-shadow: 0 15px 50px rgba(0,0,0,0.05), inset 0 2px 0 rgba(255,255,255,1);
    transform: translateY(-5px);
}

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

.metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

.metric {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    border: 1px solid var(--white);
}

.metric-number {
    font-size: 3rem;
    color: var(--oxford-gray);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--accent-gray);
    font-weight: 500;
}

.about-images-collage {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.about-img-box {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
}

.about-img-box:nth-child(1) {
    grid-row: span 2;
}

.about-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.about-img-box:hover img {
    transform: scale(1.05);
}

/* =========================================================================
   PROGRAMS SECION (Apple Grid)
   ========================================================================= */
.programs {
    padding: 8rem 0;
    background-color: var(--white);
}

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

.program-card {
    background-color: var(--light-gray);
    border-radius: 40px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    min-height: 420px;
    border: 1px solid rgba(0,0,0,0.02);
}

.program-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-md);
    background-color: var(--white);
}

.program-content {
    position: relative;
    z-index: 2;
    flex-grow: 1;
}

.program-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--oxford-gray);
}

.program-desc {
    color: var(--accent-gray);
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.program-card img {
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 60%;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    opacity: 0.9;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.program-card:hover img {
    transform: scale(1.05) translate(-10px, -10px);
}

/* =========================================================================
   INTERNAL PAGES (CARRERAS)
   ========================================================================= */
.page-hero {
    min-height: 60vh;
    padding-top: 220px;
    display: flex;
    align-items: center;
    background-color: var(--light-gray);
    position: relative;
    overflow: hidden;
}

.page-hero-img {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    object-fit: cover;
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
}

.page-hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.page-hero-content .section-title {
    font-size: 4rem;
}

.content-section {
    padding: 6rem 0;
    background: var(--white);
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.course-details {
    background: var(--light-gray);
    padding: 3rem;
    border-radius: 30px;
    position: sticky;
    top: 100px;
}

.detail-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-gray);
}

.detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-label {
    font-size: 0.9rem;
    color: var(--accent-gray);
    margin-bottom: 0.3rem;
}

.detail-value {
    font-size: 1.2rem;
    color: var(--oxford-gray);
    font-weight: 500;
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
    background-color: var(--light-gray);
    color: var(--oxford-gray);
    padding: 6rem 0 2rem;
    border-top: 1px solid var(--border-gray);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4rem;
    margin-bottom: 4rem;
    border-bottom: 1px solid var(--border-gray);
    padding-bottom: 4rem;
}

.footer-brand {
    max-width: 400px;
}

.footer-brand p {
    color: var(--accent-gray);
    margin-top: 1.2rem;
    font-size: 0.95rem;
}

.footer-contact h4 {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-info li {
    color: var(--accent-gray);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.footer-logo img {
    height: 120px;
    opacity: 0.9;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    color: var(--accent-gray);
    font-size: 0.85rem;
}

/* =========================================================================
   ANIMATIONS
   ========================================================================= */
@keyframes fadeUpScale {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =========================================================================
   RESPONSIVE DESIGN
   ========================================================================= */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .programs-grid {
        grid-template-columns: 1fr;
    }
    .content-grid {
        grid-template-columns: 1fr;
    }
    .course-details {
        position: relative;
        top: 0;
    }
    .page-hero-img {
        width: 100%;
        opacity: 0.2;
        mask-image: none;
        -webkit-mask-image: none;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 100px;
    }
    
    .logo img {
        height: 80px;
        max-height: 80px;
    }
    
    .nav-links {
        position: absolute;
        top: 100px;
        left: 0;
        width: 100%;
        background: var(--glass-bg-dark);
        backdrop-filter: var(--glass-blur);
        flex-direction: column;
        padding: 2rem 0;
        gap: 1.5rem;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-in-out;
        border-bottom: 1px solid var(--border-gray);
    }
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    .menu-toggle {
        display: block;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .glass-card {
        padding: 2rem;
    }
    .about-images-collage {
        grid-template-columns: 1fr;
    }
    .about-img-box:nth-child(1) {
        grid-row: auto;
    }
    .program-card img {
        position: relative;
        width: 100%;
        bottom: 0;
        right: 0;
        margin-top: 2rem;
    }
    .page-hero-content .section-title {
        font-size: 2.8rem;
    }
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}
.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--oxford-gray);
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.footer-socials a:hover {
    background-color: var(--oxford-gray);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.dp-design-link {
    color: var(--oxford-gray);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--border-gray);
    text-underline-offset: 4px;
}
.dp-design-link:hover {
    color: var(--accent-gray);
}
