/* ========================================
   BACHILLERATO - ESTILOS BLANCO
   ======================================== */

/* ========================================
   VARIABLES
   ======================================== */
.bach-section {
    --bach-primary: #6c5ce7;
    --bach-secondary: #00b894;
    --bach-accent: #fdcb6e;
    --bach-dark: #2d3436;
    --bach-light: #ffffff;
    --bach-gray: #636e72;
    --bach-gray-light: #dfe6e9;
    --bach-bg: #ffffff;
    --bach-gradient: linear-gradient(135deg, #0e1079, #1417f3);
    --bach-gradient-2: linear-gradient(135deg, #00b894, #55efc4);
    --bach-shadow: 0 20px 60px rgba(108, 92, 231, 0.1);
    --bach-shadow-hover: 0 30px 80px rgba(108, 92, 231, 0.15);
    --bach-radius: 16px;
    --bach-transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    --iesitblue: #1417f3;
    --iesitblue-dark: #0e1079;
}

/* ========================================
   SECCIÓN HERO
   ======================================== */
.bach-hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f8f9fe 0%, #ffffff 100%);
    /**padding: 120px 20px 80px;**/
    overflow: hidden;
}

.bach-hero-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.bach-hero-content {
    opacity: 0;
}

.bach-hero-badge {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(108, 92, 231, 0.08);
    border: 1px solid rgba(108, 92, 231, 0.12);
    border-radius: 50px;
    color: var(--bach-primary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.bach-hero-title {
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    color: var(--bach-dark);
    margin-bottom: 8px;
}

.bach-text-gradient {
    background: var(--bach-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bach-hero-subtitle {
    display: block;
    font-weight: 300;
    color: var(--bach-gray);
    font-size: 0.6em;
    -webkit-text-fill-color: var(--bach-gray);
}

.bach-hero-description {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    color: var(--bach-gray);
    line-height: 1.8;
    max-width: 500px;
    margin: 20px 0 40px;
}

.bach-hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.bach-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--bach-transition);
    text-decoration: none;
    border: none;
    position: relative;
    overflow: hidden;
}


.bach-btn-outline {
    background: transparent;
    color: var(--bach-dark);
    border: 2px solid var(--bach-gray-light);
}

.bach-btn-outline:hover {
    border-color: var(--bach-primary);
    color: var(--bach-primary);
    transform: translateY(-3px);
}

.bach-btn-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}


/* Hero Visual */
.bach-hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    opacity: 0;
    
}

.bach-hero-illustration {
   
    width: 100%;
    max-width: 400px;
  
    
}

.bach-hero-illustration img {
    width: 150%;
    height: auto;
}

.bach-hero-floating-cards {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.bach-float-card {
    position: absolute;
    background: var(--bach-light);
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    text-align: center;
    min-width: 100px;
    animation: bachFloat 3s ease-in-out infinite;
}

.bach-float-card-1 {
    top: 10%;
    right: -10%;
    animation-delay: 0s;
}

.bach-float-card-2 {
    bottom: 20%;
    left: -15%;
    animation-delay: 1s;
}

.bach-float-card-3 {
    bottom: 5%;
    right: 5%;
    animation-delay: 2s;
}

.bach-float-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bach-dark);
}

.bach-float-label {
    font-size: 0.75rem;
    color: var(--bach-gray);
}

/* Olas */
.bach-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    pointer-events: none;
}

.bach-waves svg {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   SECCIÓN PROGRAMA
   ======================================== */
.bach-program-section {
    padding: 100px 20px;
    background: var(--bach-bg);
}

.bach-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.bach-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.bach-section-tag {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(108, 92, 231, 0.08);
    border: 1px solid rgba(108, 92, 231, 0.12);
    border-radius: 50px;
    color: var(--bach-primary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.bach-section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    color: var(--bach-dark);
    line-height: 1.2;
    margin-bottom: 16px;
}

.bach-section-description {
    color: var(--bach-gray);
    font-size: 1.1rem;
    line-height: 1.8;
}

.bach-program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.bach-program-item {
    background: var(--bach-light);
    padding: 36px 28px;
    border-radius: var(--bach-radius);
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: var(--bach-shadow);
    transition: var(--bach-transition);
    opacity: 0;
    transform: translateY(30px);
}

.bach-program-item.bach-visible {
    opacity: 1;
    transform: translateY(0);
}

.bach-program-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--bach-shadow-hover);
    border-color: rgba(108, 92, 231, 0.1);
}

.bach-program-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(108, 92, 231, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.bach-program-icon svg {
    width: 28px;
    height: 28px;
}

.bach-program-item h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--bach-dark);
    margin-bottom: 10px;
}

.bach-program-item p {
    color: var(--bach-gray);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.bach-program-tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(108, 92, 231, 0.06);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bach-primary);
}

/* ========================================
   SECCIÓN TIMELINE
   ======================================== */
.bach-timeline-section {
    padding: 100px 20px;
    background: #fafbff;
}

.bach-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.bach-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--bach-primary), var(--bach-secondary));
    border-radius: 3px;
}

.bach-timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.bach-timeline-item:nth-child(even) {
    flex-direction: row-reverse;
    transform: translateX(30px);
}

.bach-timeline-item.bach-visible {
    opacity: 1;
    transform: translateX(0);
}

.bach-timeline-marker {
    flex: 0 0 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.bach-timeline-year {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bach-gradient);
    color: var(--bach-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.2);
}

.bach-timeline-line {
    flex: 1;
    width: 3px;
    background: var(--bach-gray-light);
    margin: 8px 0;
    min-height: 30px;
}

.bach-timeline-content {
    flex: 1;
    padding: 0 30px;
}

.bach-timeline-card {
    background: var(--bach-light);
    padding: 28px 32px;
    border-radius: var(--bach-radius);
    box-shadow: var(--bach-shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--bach-transition);
}

.bach-timeline-card:hover {
    box-shadow: var(--bach-shadow-hover);
}

.bach-timeline-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--bach-dark);
    margin-bottom: 8px;
}

.bach-timeline-card p {
    color: var(--bach-gray);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.bach-timeline-subjects {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bach-timeline-subjects li {
    padding: 4px 14px;
    background: rgba(108, 92, 231, 0.06);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--bach-primary);
}

/* ========================================
   SECCIÓN GALERÍA
   ======================================== */
.bach-gallery-section {
    padding: 100px 20px;
    background: var(--bach-bg);
}

.bach-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 16px;
}

.bach-gallery-item {
    border-radius: var(--bach-radius);
    overflow: hidden;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.bach-gallery-item.bach-visible {
    opacity: 1;
    transform: scale(1);
}

.bach-gallery-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bach-gallery-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.6s ease;
    cursor: pointer;
}

.bach-gallery-image:hover {
    transform: scale(1.05);
}

.bach-gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(26, 5, 184, 0.7) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--bach-transition);
}

.bach-gallery-image:hover .bach-gallery-overlay {
    opacity: 1;
}

.bach-gallery-overlay span {
    color: var(--bach-light);
    font-weight: 600;
    font-size: 1rem;
}

/* ========================================
   SECCIÓN TESTIMONIOS
   ======================================== */
.bach-testimonials-section {
    padding: 100px 20px;
    background: #fafbff;
}

.bach-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.bach-testimonial-card {
    background: var(--bach-light);
    padding: 32px 28px;
    border-radius: var(--bach-radius);
    box-shadow: var(--bach-shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--bach-transition);
    opacity: 0;
    transform: translateY(20px);
}

.bach-testimonial-card.bach-visible {
    opacity: 1;
    transform: translateY(0);
}

.bach-testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--bach-shadow-hover);
}

.bach-testimonial-featured {
    border: 2px solid rgba(108, 92, 231, 0.1);
    background: linear-gradient(135deg, #f8f9fe, #ffffff);
}

.bach-testimonial-stars {
    color: #fdcb6e;
    font-size: 1.2rem;
    letter-spacing: 4px;
    margin-bottom: 12px;
}

.bach-testimonial-text {
    color: var(--bach-dark);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.bach-testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bach-testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(108, 92, 231, 0.1);
}

.bach-testimonial-author h4 {
    color: var(--bach-dark);
    font-size: 1rem;
    font-weight: 600;
}

.bach-testimonial-author span {
    color: var(--bach-gray);
    font-size: 0.85rem;
}

/* ========================================
   SECCIÓN ADMISIONES
   ======================================== */
.bach-admissions-section {
    padding: 100px 20px;
    background: linear-gradient(180deg, #f8f9fe 0%, #ffffff 100%);
    position: relative;
}

.bach-admissions-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

.bach-admissions-content {
    padding-top: 20px;
}

.bach-admissions-text {
    color: var(--bach-gray);
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 16px 0 32px;
}

.bach-admissions-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.bach-admissions-feature {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bach-admissions-feature svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.bach-admissions-feature div {
    display: flex;
    flex-direction: column;
}

.bach-admissions-feature strong {
    color: var(--bach-dark);
    font-size: 0.9rem;
}

.bach-admissions-feature span {
    color: var(--bach-gray);
    font-size: 0.9rem;
}

.bach-admissions-form {
    background: var(--bach-light);
    padding: 40px;
    border-radius: var(--bach-radius);
    box-shadow: var(--bach-shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.bach-admissions-form h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bach-dark);
    margin-bottom: 24px;
}

.bach-form-group {
    margin-bottom: 18px;
}

.bach-form-group input,
.bach-form-group select,
.bach-form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: #f8f9fe;
    border: 2px solid transparent;
    border-radius: 12px;
    color: var(--bach-dark);
    font-size: 1rem;
    transition: var(--bach-transition);
    font-family: inherit;
}

.bach-form-group input:focus,
.bach-form-group select:focus,
.bach-form-group textarea:focus {
    outline: none;
    border-color: var(--bach-primary);
    background: var(--bach-light);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.05);
}

.bach-form-group input::placeholder,
.bach-form-group textarea::placeholder {
    color: #b2bec3;
}

.bach-form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23636e72' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

.bach-form-group select option {
    background: var(--bach-light);
    color: var(--bach-dark);
}

.bach-btn-full {
    width: 100%;
    justify-content: center;
}

/* ========================================
   ANIMACIONES
   ======================================== */
@keyframes bachFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .bach-hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .bach-hero-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .bach-hero-buttons {
        justify-content: center;
    }
    
    .bach-hero-visual {
        right: 25%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .bach-float-card-1 {
        right: 0;
    }
    
    .bach-float-card-2 {
        left: 0;
    }
    
    .bach-admissions-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .bach-timeline::before {
        left: 24px;
    }
    
    .bach-timeline-item {
        flex-direction: column !important;
        padding-left: 60px;
        transform: translateX(0) !important;
    }
    
    .bach-timeline-marker {
        flex: 0 0 auto;
        flex-direction: row;
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .bach-timeline-line {
        width: 30px;
        height: 3px;
        min-height: auto;
        margin: 0;
    }
    
    .bach-timeline-content {
        padding: 0;
    }
}

@media (max-width: 768px) {
    .bach-hero-section {
        padding: 100px 16px 60px;
        min-height: auto;
    }
    
    .bach-hero-title {
        font-size: 2.8rem;
    }
    
    .bach-hero-floating-cards {
        display: none;
    }
    
    .bach-program-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    .bach-gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 150px;
    }
    
    .bach-gallery-large {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .bach-testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .bach-admissions-form {
        padding: 24px 20px;
    }
    
    .bach-timeline-card {
        padding: 20px 24px;
    }
}

@media (max-width: 480px) {
    .bach-hero-title {
        font-size: 2.2rem;
    }
    
    .bach-hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .bach-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
    
    .bach-section-title {
        font-size: 1.8rem;
    }
    
    .bach-program-grid {
        grid-template-columns: 1fr;
    }
    
    .bach-gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }
    
    .bach-timeline-item {
        padding-left: 40px;
    }
    
    .bach-timeline::before {
        left: 16px;
    }
    
    .bach-timeline-year {
        width: 40px;
        height: 40px;
        font-size: 0.85rem;
    }
}