/**
 * education.css - Estilos para la Plataforma de Autoaprendizaje Animada
 */

/* ========== Reset y estilos base ========== */
:root {
    --color-primary: #b53f3f;
    --color-secondary: #ffb922;
    --color-accent: #af784c;
    --color-light: #f5f7fa;
    --color-dark: #333333;
    --color-mid: #666666;
    --color-border: #e0e0e0;
    --color-gold: #ffd700;
    
    --shadow-small: 0 2px 5px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 5px 15px rgba(0, 0, 0, 0.15);
    --shadow-large: 0 10px 25px rgba(0, 0, 0, 0.2);
    
    --transition-fast: all 0.3s ease;
    --transition-medium: all 0.5s ease;
    --transition-slow: all 0.8s ease;
    
    --border-radius-small: 4px;
    --border-radius-medium: 8px;
    --border-radius-large: 16px;
    --border-radius-full: 50%;
    
    --font-heading: 'Montserrat', 'Roboto', sans-serif;
    --font-body: 'Montserrat', 'Roboto', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--color-dark);
    background-color: var(--color-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.938rem;
    color: var(--color-dark);
}



a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--color-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* ========== Layout ========== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.main-content {
    position: relative;
    z-index: 1;
}

/* ========== Accesibilidad ========== */
.skip-link {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0.625rem 1.25rem;
    background-color: var(--color-primary);
    color: white;
    z-index: 9999;
    transform: translateY(-100%);
    transition: var(--transition-fast);
    opacity: 0;
}

.skip-link:focus {
    transform: translateY(0);
    opacity: 1;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========== Animación de cortinas de entrada ========== */
.entry-curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    background-color: black;
}

.curtain-left, .curtain-right {
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
    background-color: #880000; /* Color rojo oscuro de telón teatral */
    transition: transform 2s cubic-bezier(0.86, 0, 0.07, 1);
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0) 100%);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
}

.curtain-left {
    left: 0;
    transform-origin: left;
}

.curtain-right {
    right: 0;
    transform-origin: right;
    background-image: linear-gradient(to left, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0) 100%);
}

.curtain-left.open {
    transform: translateX(-100%);
}

.curtain-right.open {
    transform: translateX(100%);
}

.gold-trim {
    position: absolute;
    width: 15px;
    height: 100%;
    background-color: var(--color-gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}

.curtain-left .gold-trim {
    right: 0;
}

.curtain-right .gold-trim {
    left: 0;
}

.welcome-text {
    position: relative;
    z-index: 2;
    color: white;
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 0 20px rgba(255, 251, 0, 0.7);
    opacity: 1;
    transition: var(--transition-medium);
}

.welcome-text.fade-out {
    opacity: 0;
    transform: scale(1.2);
}

/* ========== Hero Slider ========== */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    background-color: var(--color-primary);
    background-image: linear-gradient(135deg, rgba(181, 63, 63, 0.9) 0%, rgba(181, 63, 63, 0.7) 100%);
}

.slider-container {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 5%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    visibility: hidden;
}

.slide.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.slide-content {
    flex: 1;
    color: white;
    padding-right: 5%;
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 1.25rem;
    color: white;
    line-height: 1.2;
}

.slide-content p {
    font-size: 1.125rem;
    margin-bottom: 1.875rem;
    max-width: 600px;
}

.slide-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide-image img {
    max-width: 90%;
    max-height: 400px;
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-large);
    animation: float 5s ease-in-out infinite;
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.938rem;
}

.control-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--border-radius-full);
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition-fast);
}

.control-dot.active {
    background-color: white;
    transform: scale(1.2);
}

.control-dot:hover {
    background-color: white;
}

/* ========== Botones ========== */
.btn-primary {
    display: inline-block;
    padding: 0.625rem 1.562rem;
    background-color: var(--color-secondary);
    color: white;
    font-weight: 600;
    border-radius: var(--border-radius-medium);
    transition: var(--transition-fast);
    border: 2px solid var(--color-secondary);
    box-shadow: var(--shadow-small);
}

.btn-primary:hover {
    background-color: white;
    color: var(--color-secondary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.btn-highlight {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1.562rem;
    background-color: var(--color-accent);
    color: white;
    font-weight: 600;
    border-radius: var(--border-radius-medium);
    transition: var(--transition-fast);
    box-shadow: var(--shadow-medium);
}

.btn-highlight:hover {
    background-color: #a04545;
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-large);
}

.btn-highlight i {
    transition: var(--transition-fast);
}

.btn-highlight:hover i {
    transform: translateX(5px);
}

/* ========== Secciones info ========== */
.info-section {
    padding: 5rem 0;
    background-color: white;
}

.info-section.alternate {
    background-color: var(--color-light);
}

.info-section.highlight-section {
    background-color: #f0f4ff;
    background-image: radial-gradient(circle at top right, rgba(181, 63, 63, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
}

.section-header {
    text-align: center;
    margin-bottom: 3.125rem;
}

.animated-title {
    display: inline-block;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-medium);
}

.animated-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.animated-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 80px;
    height: 4px;
    background-color: var(--color-secondary);
    transform: translateX(-50%);
    border-radius: var(--border-radius-full);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-mid);
    max-width: 800px;
    margin: 0 auto;
}

/* ========== Tarjetas de características ========== */
.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.875rem;
    margin-top: 2.5rem;
}

.feature-card {
    background-color: white;
    border-radius: var(--border-radius-medium);
    padding: 1.875rem;
    text-align: center;
    box-shadow: var(--shadow-small);
    transition: var(--transition-fast);
    border: 1px solid var(--color-border);
    opacity: 0;
    transform: translateY(20px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius-full);
    background-color: rgba(181, 63, 63, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.25rem;
    transition: var(--transition-fast);
}

.feature-card:hover .feature-icon {
    background-color: var(--color-primary);
    transform: scale(1.1);
}

.feature-icon i {
    font-size: 1.875rem;
    color: var(--color-primary);
    transition: var(--transition-fast);
}

.feature-card:hover .feature-icon i {
    color: white;
}

.feature-card h3 {
    margin-bottom: 0.938rem;
    transition: var(--transition-fast);
}

.feature-card:hover h3 {
    color: var(--color-primary);
}

/* ========== Tarjetas educativas ========== */
.edu-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.875rem;
    margin-top: 2.5rem;
}

.edu-card {
    position: relative;
    height: 320px;
    perspective: 1500px;
    cursor: pointer;
}

.edu-card-front,
.edu-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--border-radius-medium);
    padding: 1.875rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: transform 0.8s ease;
}

.edu-card-front {
    background-color: white;
    box-shadow: var(--shadow-small);
    border: 1px solid var(--color-border);
}

.edu-card-back {
    background-color: var(--color-primary);
    color: white;
    transform: rotateY(180deg);
    box-shadow: var(--shadow-medium);
    justify-content: space-between;
}

.edu-card:hover .edu-card-front {
    transform: rotateY(180deg);
}

.edu-card:hover .edu-card-back {
    transform: rotateY(0);
}

.edu-card-icon {
    width: 60px;
    height: 60px;
    fill: var(--color-primary);
    margin-bottom: 1.25rem;
    transition: var(--transition-fast);
}

.edu-card:hover .edu-card-icon {
    transform: scale(1.1);
}

.edu-card-back h3 {
    color: white;
    margin-bottom: 0.938rem;
}

.edu-card-front p,
.edu-card-back p {
    font-size: 1.05rem;
    line-height: 1.5;
}

.edu-card-front p {
    color: var(--color-mid);
}

.edu-card-back p {
    color: white;
    margin-bottom: 1.562rem;
}

.edu-card-back .btn-primary {
    background-color: white;
    color: var(--color-primary);
    border: none;
    margin-top: auto;
}

.edu-card-back .btn-primary:hover {
    background-color: var(--color-secondary);
    color: white;
}

/* ========== Slider tipo cortina ========== */
.curtain-slider {
    position: relative;
    height: 500px;
    margin: 3.125rem 0;
    overflow: hidden;
}

.curtain-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease;
}

.curtain-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.curtain-wrapper {
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
    background-color: var(--color-primary);
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 2;
}

.curtain-wrapper.curtain-left {
    left: 0;
    transform: translateX(-100%);
}

.curtain-wrapper.curtain-right {
    right: 0;
    transform: translateX(100%);
}

.curtain-slide.transition-out .curtain-wrapper.curtain-left {
    transform: translateX(0);
}

.curtain-slide.transition-out .curtain-wrapper.curtain-right {
    transform: translateX(0);
}

.curtain-content {
    background-color: white;
    padding: 2.5rem;
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-medium);
    max-width: 800px;
    text-align: center;
    z-index: 1;
}

.curtain-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.938rem;
    z-index: 3;
}

.curtain-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--border-radius-full);
    background-color: rgba(181, 63, 63, 0.3);
    cursor: pointer;
    transition: var(--transition-fast);
}

.curtain-dot.active {
    background-color: var(--color-primary);
    transform: scale(1.2);
}

.curtain-dot:hover {
    background-color: var(--color-primary);
}

/* ========== Sección OTT ========== */
.ott-section {
    padding: 5rem 0;
    background-color: #f3f6ff;
    background-image: linear-gradient(135deg, #f3f6ff 0%, #ffffff 100%);
}

.ott-content {
    display: flex;
    align-items: center;
    gap: 3.125rem;
}

.ott-info {
    flex: 1;
    opacity: 0;
    transform: translateX(-30px);
    transition: var(--transition-medium);
}

.ott-info.visible {
    opacity: 1;
    transform: translateX(0);
}

.ott-info p {
    margin-bottom: 1.25rem;
    font-size: 1.125rem;
}

.ott-cta {
    margin-top: 1.875rem;
}

.ott-image {
    flex: 1;
    opacity: 0;
    transform: translateX(30px);
    transition: var(--transition-medium);
}

.ott-image.visible {
    opacity: 1;
    transform: translateX(0);
}

.ott-image img {
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-large);
}

/* ========== Fondo con partículas ========== */
.particles-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: var(--border-radius-full);
    box-shadow: 0 0 10px rgba(181, 63, 63, 0.3);
}

/* ========== Botón volver arriba ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-full);
    background-color: var(--color-primary);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-fast);
    box-shadow: var(--shadow-medium);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--color-secondary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

/* ========== Pie de página ========== */
.main-footer {
    background-color: var(--color-dark);
    color: white;
    padding: 1.25rem 0;
    text-align: center;
}

/* ========== Animaciones ========== */
@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}

/* ========== Media Queries ========== */
@media (max-width: 1200px) {
    
    
    .slide-content h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .slide {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 3.125rem;
    }
    
    .slide-content {
        padding-right: 0;
        margin-bottom: 1.875rem;
    }
    
    .slide-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .ott-content {
        flex-direction: column;
        gap: 1.875rem;
    }
    
    .ott-info, .ott-image {
        text-align: center;
    }
    
    .revolving-gallery {
        height: 500px;
    }
}

@media (max-width: 768px) {
    
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        box-shadow: var(--shadow-large);
        padding: 3.75rem 1.875rem 1.875rem;
        transition: var(--transition-medium);
        z-index: 101;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0.938rem;
    }
    
    .mobile-menu-btn {
        display: block;
        z-index: 102;
    }
    
    .hero-slider {
        height: auto;
        min-height: 500px;
    }
    
    .revolving-gallery {
        height: 400px;
    }
    
    .gallery-item {
        width: 300px;
        height: 225px;
    }
    
    .curtain-slider {
        height: 400px;
    }
    
    .curtain-content {
        padding: 1.562rem;
        max-width: 90%;
    }
}

@media (max-width: 576px) {
    .slide-content h2 {
        font-size: 2rem;
    }
    
    .feature-card, .edu-card {
        width: 100%;
    }
    
    .revolving-gallery {
        height: 350px;
    }
    
    .gallery-item {
        width: 250px;
        height: 188px;
    }
    
    .gallery-controls {
        bottom: 10px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}
        /* ===== Footer =====*/

  footer {
    background-color: #0e1620;
    color: white;
    padding: 60px 0 20px;
  }
  
  .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
  }
  
  .footer-column h3 {
    margin-bottom: 20px;
    font-size: 0.75rem;
    color: #fff;
  }
  
  .footer-column ul {
    list-style: none;
  }
  
  .footer-column li {
    margin-bottom: 10px;
  }
  
  .footer-column a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
  }
  
  .footer-column a:hover {
    color: #ff5a5a;
  }
  
  .footer-column p {
    color: #ccc;
    margin-bottom: 15px;
  }
  
  .social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
  }
  
  .social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s;
  }
  
  .social-icons a:hover {
    background-color: #c00000;
  }
  
  .copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
  }