/* ============================================
   INDEPENDENT PROGRAM STYLES - EFECTO I
   ============================================ */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --screenwidth: 100%;
    --padding: clamp(1.25rem, 5vw, 5rem);
    --max-width: 1400px;
    --subtitulos: clamp(2rem, 4vw, 4.25rem);
    --subtitulos-2: clamp(1.75rem, 3.5vw, 3.5rem);
    --titulos-parrafos-gris: clamp(0.9375rem, 1.5625vw, 1.5625rem);
    
    /* Card Styles */
    --card-radius: 1.5625rem;
    --card-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.1), 0px 1px 3px 0px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 4px 8px 0px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f4f4f4;
    color: #000;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

.desktop-platform {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.bg-curve-1 {
    bottom: 70vw;
    top: auto !important;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: var(--screenwidth);
    margin: 0 auto;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    display: flex;
    align-items: flex-start;
    justify-content: space-evenly;
    width: 100%;
    position: relative;
}

.hero-text {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 141px 0 76px 90px;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-family: 'Montserrat Alternates', sans-serif;
    font-weight: 900;
    font-size: 90px;
    line-height: normal;
    color: #000;
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.1);
}

.hero-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    line-height: 1.2;
    color: #000;
    margin-bottom: 1rem;
}

.hero-image {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 30px 40px 30px 20px;
}

.hero-image-img {
    width: 220px;
    max-width: 100%;
    position: relative;
    z-index: 1;
}

@keyframes floating-desk {
    0% {
        transform: translateY(0px) rotate(-2deg);
    }
    25% {
        transform: translateY(-8px) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) rotate(2deg);
        }
    75% {
        transform: translateY(-6px) rotate(0deg);
    }
    100% {
        transform: translateY(0px) rotate(-2deg);
    }
}

.hero-image-icon {
    position: absolute;
    bottom: 2%;
    left: -37%;
    width: 178%;
    z-index: 2;
    animation: floating-desk 4s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-section {
    width: 100%;
    padding: 80px var(--padding);
}

.testimonials-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.testimonials-container .section-title {
    text-align: center;
    margin-bottom: 3rem;
}

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

.testimonial-card {
    background: var(--white-color);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
}

.testimonial-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: linear-gradient(135deg, 
        hsla(203, 100%, 45%, 0.1) 0%, 
        hsla(183, 100%, 46%, 0.15) 50%,
        hsla(278, 74%, 54%, 0.1) 100%);
}

.testimonial-image::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, 
        hsla(203, 100%, 45%, 0.15) 0%, 
        transparent 100%);
    z-index: 1;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    position: relative;
    z-index: 2;
    transition: transform var(--transition-slow);
}

.testimonial-card:hover .testimonial-image img {
    transform: scale(1.03);
}

.testimonial-quote {
    padding: 1.5rem;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 120px;
}

.quote-icon {
    width: 32px;
    height: 32px;
    color: var(--terceary-color);
    opacity: 0.4;
    margin-bottom: 0.75rem;
}

.testimonial-quote p {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1rem, 1.25vw, 1.25rem);
    font-weight: 500;
    color: var(--black-color);
    line-height: 1.5;
    font-style: italic;
}

/* Accent Card (without image) */
.testimonial-card-accent {
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 50%,
        var(--terceary-color) 100%);
    color: var(--white-color);
    justify-content: center;
}

.testimonial-card-accent .testimonial-quote {
    min-height: auto;
    padding: 2.5rem;
}

.testimonial-card-accent .quote-icon {
    color: var(--white-color);
    opacity: 0.6;
}

.testimonial-card-accent .testimonial-quote p {
    color: var(--white-color);
    font-size: clamp(1.125rem, 1.5vw, 1.5rem);
}

.testimonial-decoration {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: hsla(0, 0%, 100%, 0.1);
}

.decoration-circle:nth-child(1) {
    width: 150px;
    height: 150px;
    top: -50px;
    right: -30px;
}

.decoration-circle:nth-child(2) {
    width: 100px;
    height: 100px;
    bottom: 20px;
    left: -40px;
}

.decoration-circle:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 40%;
    right: 20%;
}

/* ============================================
   SCHOOL SECTION
   ============================================ */
.school-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.school-header {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 80px var(--padding) 80px;
    width: 100%;
}

.section-title {
    font-family: 'Montserrat Alternates', sans-serif;
    font-weight: 900;
    font-size: var(--subtitulos);
    line-height: 1.2;
    color: #000;
    text-align: center;
}

.section-description {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.25vw, 1.25rem);
    line-height: 1.4;
    color: #000;
    text-align: center;
}

/* ============================================
   PROGRAM DETAILS SECTION
   ============================================ */
.program-details-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 var(--padding) 60px;
}

.program-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    width: 100%;
}

.program-description {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.22vw, 1.22rem);
    line-height: 1.6;
    color: #000;
    text-align: center;
    padding: 0 2rem;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: clamp(2rem, 5vw, 5rem) 20px 20px;
    width: 100%;
}

.cta-container {
    text-align: center;
    background: linear-gradient(-90deg, hsla(203, 100%, 45.1%, 0.8), hsla(183.1, 100%, 46.1%, 0.8));
    border: 1px solid var(--secondary-color);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 50px 30px;
    color: var(--black-color);
}

.cta-title {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--black-color);
}

.cta-description {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    opacity: 0.95;
    margin-bottom: 1.5rem;
    color: var(--black-color);
}

/* ============================================
   RESPONSIVE - 1440px
   ============================================ */
@media (max-width: 1440px) {
    .navbar,
    .main-content {
        width: 100%;
        max-width: 100%;
    }

    .hero-text {
        padding: 141px 0 76px clamp(2rem, 12vw, 185px);
    }

    .hero-text h1 {
        font-size: clamp(3rem, 6.25vw, 90px);
        width: 100%;
    }

    .hero-image-img {
        width: clamp(180px, 15vw, 220px);
    }

}

/* ============================================
   RESPONSIVE - TABLET (1024px)
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --padding: clamp(1.5rem, 3vw, 3rem);
        --subtitulos: clamp(2rem, 3.5vw, 3.5rem);
    }

    .hero-section {
        height: auto;
        flex-direction: row;
        background-position: center;
    }

    .hero-text {
        width: 60%;
    }

    .hero-text h1 {
        font-size: clamp(2.5rem, 5vw, 70px);
    }

    .hero-image {
        min-width: clamp(15rem, 40vw, 350px);
        height: auto;
        padding: 30px 20px;
    }

    .hero-image-img {
        width: clamp(150px, 14vw, 180px);
    }

    .hero-image-icon {
        width: 100%;
        left: 0%;
        bottom: 0%;
    }

    .school-header {
        gap: 2rem;
        padding: clamp(2rem, 5vw, 80px) var(--padding);
    }

    .section-title {
        font-size: clamp(2rem, 3.5vw, 56px);
        line-height: 1.2;
    }

    .section-description {
        font-size: clamp(1.25rem, 2vw, 26px);
        line-height: 1.3;
    }

    .program-details-section {
        padding: 0 var(--padding) clamp(2rem, 4vw, 50px);
    }

    .program-description {
        font-size: clamp(1.125rem, 1.3vw, 1.3rem);
        padding: 0 1.5rem;
    }

    /* Testimonials */
    .testimonials-section {
        padding: 60px var(--padding);
    }

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

    .testimonial-card:nth-child(3) {
        grid-column: span 2;
        max-width: 500px;
        margin: 0 auto;
    }

    .testimonial-image {
        height: 240px;
    }

    /* CTA */
    .cta-section {
        padding: 60px var(--padding) 20px;
    }
}

/* ============================================
   RESPONSIVE - TABLET SMALL (768px)
   ============================================ */
@media (max-width: 768px) {
    :root {
        --padding: clamp(1rem, 2.5vw, 2.5rem);
        --subtitulos: clamp(1.75rem, 3vw, 3rem);
        --subtitulos-2: clamp(1.5rem, 2.5vw, 2.5rem);
    }

    .hero-section {
        flex-direction: column;
        height: auto;
        min-height: auto;
    }

    .hero-text {
        width: 100%;
        padding: clamp(2rem, 5vw, 60px) var(--padding) clamp(1rem, 3vw, 40px);
        text-align: center;
        align-items: center;
    }

    .hero-text h1 {
        font-size: clamp(2.5rem, 8vw, 60px);
        width: 100%;
    }

    .hero-image {
        width: 100%;
        height: auto;
        padding: 20px;
        justify-content: center;
    }

    .hero-image-img {
        width: clamp(140px, 30vw, 180px);
    }

    .hero-image-icon {
        width: 70%;
        left: -20%;
        bottom: 10%;
    }

    .school-header {
        gap: clamp(2rem, 5vw, 60px);
        padding: clamp(2rem, 4vw, 60px) var(--padding);
    }

    .section-title {
        font-size: clamp(1.75rem, 4vw, 48px);
        line-height: 1.2;
    }

    .section-description {
        font-size: clamp(1.125rem, 2.5vw, 24px);
        line-height: 1.4;
    }

    .program-details-section {
        padding: 0 var(--padding) clamp(2rem, 4vw, 40px);
    }

    .program-description {
        font-size: clamp(1rem, 2.2vw, 22px);
        padding: 0 1rem;
    }

    /* Testimonials */
    .testimonials-section {
        padding: 50px var(--padding);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 450px;
        margin: 0 auto;
    }

    .testimonial-card:nth-child(3) {
        grid-column: span 1;
        max-width: 100%;
    }

    .testimonial-image {
        height: 260px;
    }

    .testimonial-quote {
        padding: 1.25rem;
        min-height: 100px;
    }

    /* CTA */
    .cta-container {
        padding: 40px 20px;
    }
}

/* ============================================
   RESPONSIVE - TABLET MEDIUM (490px - 768px)
   ============================================ */
@media (min-width: 490px) and (max-width: 768px) {
    .hero-text {
        padding: clamp(2.5rem, 6vw, 70px) var(--padding) clamp(1.5rem, 4vw, 50px);
    }

    .hero-text h1 {
        font-size: clamp(3rem, 7vw, 55px);
    }

    .hero-image-img {
        width: clamp(160px, 28vw, 200px);
    }

    .hero-image-icon {
        top: 48%;
        width: 69%;
        left: 14%;
    }

    .section-title {
        font-size: clamp(2rem, 4.5vw, 52px);
    }

    .section-description {
        font-size: clamp(1.25rem, 3vw, 26px);
    }

    .program-description {
        font-size: clamp(1.125rem, 2.5vw, 24px);
    }
}

/* ============================================
   RESPONSIVE - MOBILE (480px)
   ============================================ */
@media (max-width: 480px) {
    :root {
        --padding: 1rem;
        --subtitulos: 1.75rem;
        --subtitulos-2: 1.5rem;
    }

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

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-image {
        padding: 15px 1rem;
    }

    .hero-image-img {
        width: clamp(120px, 35vw, 150px);
    }

    .hero-image-icon {
        width: 78%;
        left: 12%;
        bottom: 0%;
    }

    .school-header {
        gap: 2rem;
        padding: 2rem 1rem;
    }

    .section-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .section-description {
        font-size: 1.125rem;
        line-height: 1.4;
    }

    .program-details-section {
        padding: 0 1rem 2rem;
    }

    .program-description {
        font-size: 1rem;
        padding: 0 0.5rem;
    }

    /* Testimonials */
    .testimonials-section {
        padding: 40px 1rem;
    }

    .testimonials-container .section-title {
        margin-bottom: 2rem;
    }

    .testimonials-grid {
        gap: 1.25rem;
    }

    .testimonial-image {
        height: 220px;
    }

    .testimonial-quote {
        padding: 1rem;
        min-height: 90px;
    }

    .quote-icon {
        width: 24px;
        height: 24px;
        margin-bottom: 0.5rem;
    }

    .testimonial-quote p {
        font-size: 0.9375rem;
    }

    .testimonial-card-accent .testimonial-quote {
        padding: 2rem 1.5rem;
    }

    .testimonial-card-accent .testimonial-quote p {
        font-size: 1.125rem;
    }

    /* CTA */
    .cta-section {
        padding: 40px 1rem 20px;
    }

    .cta-container {
        padding: 30px 15px;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .cta-description {
        font-size: 0.9375rem;
    }

    .cta-section .btn-primary {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.2s; }
.testimonial-card:nth-child(3) { animation-delay: 0.3s; }

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}
