/* Importar fuentes de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Balsamiq+Sans:wght@400;700&family=Poppins:wght@400;600;700&display=swap');

:root {
    --primary-color: #f7a634; /* Naranja animado */
    --secondary-color: #5d4037; /* Marrón oscuro */
    --accent-color: #fce899; /* Amarillo claro */
    --background-color: #fffaf0; /* Fondo crema */
    --text-color: #333;
    --font-heading: 'Balsamiq Sans', cursive;
    --font-body: 'Poppins', sans-serif;
}

/* Estilos Generales */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-weight: 700;
}

h1 { font-size: 3rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

section {
    padding: 4rem 10%;
    max-width: 1200px;
    margin: 0 auto;
}

hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
    margin: 2rem 10%;
}

/* Hero Section con Video */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(93, 64, 55, 0.5); /* Overlay para oscurecer el video */
    z-index: -1;
    background-image: radial-gradient(#ffffff20 1px, transparent 1px);
    background-size: 10px 10px;
    opacity: 0.8;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to top, var(--background-color), transparent);
}

.hero-content {
    position: relative;
    background: rgba(93, 64, 55, 0.7);
    padding: 2rem 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hero-content h1 {
    font-size: 4rem;
    color: var(--accent-color);
    text-shadow: 3px 3px 5px rgba(0,0,0,0.5);
    line-height: 100%;
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: 600;
   /* margin-top: 1rem;*/
    color: white;
}

.btn-download {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.8rem 2rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-download:hover {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    transform: scale(1.05);
}

/* Animaciones */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

.delay-1 { animation-delay: 0.5s; }
.delay-2 { animation-delay: 1s; }
.delay-3 { animation-delay: 1.5s; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Secciones de Contenido */
.info-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: var(--primary-color);
}

.info-card h2 {
    margin-bottom: 1rem;
}

.info-card ul {
    list-style-type: '🎬 ';
    padding-left: 1.5rem;
}

.info-card li {
    margin-bottom: 0.5rem;
}

.expandable-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.expandable-content.expanded {
    max-height: 500px;
    margin-top: 1rem;
}

.expand-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.expand-btn:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

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

.video-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    background-color: var(--secondary-color);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

.section-full-width {
    text-align: center;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.activity-item {
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.activity-item:hover {
    transform: translateY(-10px) rotate(-2deg) scale(1.02);
    background-color: var(--accent-color);
}

.activity-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 120%;
}

.details-list p {
    margin-bottom: 0.5rem;
}

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

.materials-column {
    background-color: var(--accent-color);
    padding: 1.5rem;
    border-radius: 10px;
}

.materials-column h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.materials-column ul {
    list-style-type: '⭐ ';
    padding-left: 1.5rem;
}

/* Biografía del Taller */
.bio-section {
    text-align: center;
}

.bio-content {
    background: var(--primary-color);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.bio-content h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.bio-content p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--secondary-color);
    color: white;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 1.8rem; }
    .hero { height: 70vh; }
    .info-section {
        grid-template-columns: 1fr;
    }
    .materials-container {
        grid-template-columns: 1fr;
    }
}


/* Seccion nueva Biografia del profesor */
.bio-section {
    padding: 4rem 2%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left; /* Alineamos el texto a la izquierda */
}

.bio-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    background:  white;
    color: var(--text-color);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    gap: 2rem;
}

.bio-content .text-content {
    flex: 1;
}

.bio-content .image-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bio-content .image-content img {
    width: 100%;
   /* max-width: 400px;  Tamaño máximo de la imagen */
    height: auto;
}

.bio-content h2 {
    color:var(--secondary-color);
    margin-bottom: 1.5rem;
}

.bio-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.bio-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Estilos para el botón de portafolio */
.btn-cta {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--background-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid transparent;
}

.btn-cta:hover {
    background-color: var(--accent-color);
    transform: scale(1.05);
}


/* Responsive para la sección de biografía del profesor */
@media (max-width: 768px) {
    .bio-content {
        flex-direction: column;
        text-align: center;
    }
    .bio-content .image-content {
        order: -1; /* Mueve la imagen arriba en móviles */
        margin-bottom: 2em;
    }
    .bio-content .text-content {
        flex: auto;
    }
    .bio-buttons {
        flex-direction: column;
        align-items: center;
    }
}