/* Front Page */

.front-page {
    padding: 0;
}

/* Secciones principales */
.hero-section,
.contenido-section,
.formaciones-section,
.blog-section {
    min-height: calc(100vh - 137px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    position: relative;
}

/* Hero Section */
.hero-section {
    color: #1c1c1c;
    min-height: calc(100vh - 195px);
    padding: 0px 0 80px;
    font-weight: 400;
    font-size: 21px;
}

.hero-content {
    text-align: center;
    margin: 0 auto;
}

.hero-content h1 {
    font-family: 'Canopee', serif;
    font-size: 70px;
    margin: 0 0 40px;
    font-weight: 300;
    line-height: 1.1;
}

.hero-text {
    font-size: 34px;
    line-height: 1.6;
}

.hero-text p {
    margin: 0 0 20px;
}

/* Hero inicial invisible para animación */
.hero-title,
.hero-text {
    opacity: 0;
}

/* Banner Sections */
.banner-section {
    min-height: 70vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-3 {
    min-height: 60vh;
    background-image: url('https://firebrick-walrus-490307.hostingersite.com/wp-content/uploads/2025/12/fondorojo_opt.webp');
    background-size: cover;
    background-position: center;
    overflow: visible;
    position: relative;
}

.banner-element {
    position: absolute;
    max-width: 200px;
    will-change: transform;
    /* z-index: 99; */
    /* mix-blend-mode: color-burn; */
}

.banner-element img {
    width: 100%;
    height: auto;
}

/* Contenido Editable Section con fondo parallax */
.contenido-section {
    color: #ffffff;
    display: flex;
    flex-direction: column;
    font-size: 25px;
    line-height: 120%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contenido-bg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.contenido-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contenido-wrapper {
    position: relative;
    z-index: 1;
}

.contenido-section a, 
.contenido-section a:hover {
    font-size: 25px;
    color: #ffffff;
}

/* Formaciones Section */
.formaciones-section {
    color: #1c1c1c;
    scroll-margin-top: 105px;
}

.formaciones-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.formaciones-hero {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

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

.formacion-titulo {
    font-family: 'Canopee', serif;
    font-size: 60px;
    margin: 0;
    line-height: 1.1;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
}

.formacion-titulo:hover {
    animation: colorCycle 4.8s linear infinite;
}

@keyframes colorCycle {
    0% { color: #1c1c1c; }
    12.5% { color: #dcff7c; }
    33.33% { color: #dcff7c; }
    45.83% { color: #E899d4; }
    66.67% { color: #E899d4; }
    79.17% { color: #1c1c1c; }
    100% { color: #1c1c1c; }
}

.formacion-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.2s ease, opacity 0.4s ease, padding 0.4s ease;
    padding: 0;
}

.formacion-item.expanded .formacion-content {
    max-height: 5000px;
    opacity: 1;
    padding: 30px 0 0;
}

/* Talleres Grid */
.talleres-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.taller-card {
    display: block;
    overflow: hidden;
    border-radius: 2px;
    transition: transform 0.3s ease;
}


.taller-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Programa y Acompañamiento - imagen centrada */
.programa-content,
.acompanamiento-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.formacion-card-simple {
    display: block;
    max-width: 600px;
    width: 100%;
    transition: transform 0.3s ease;
}

.formacion-card-simple img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
}

/* Blog Section */
.blog-section {
    color: #1c1c1c;
    min-height: auto;
    padding-bottom: 100px;
}

.blog-preview {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    font-family: 'Canopee', serif;
    font-weight: 300;
}

.blog-preview .blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.blog-cta {
    text-align: center;
    margin-top: 50px;
}

.btn-blog {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    color: #1c1c1c!important;
    background-color: #dcff7c;
    border-radius: 50px;
    padding-right: 25px;
    transition: all 0.3s ease;
}

.btn-blog:hover {
    background-color: #f49bc6;
    text-decoration: none!important;
}

.btn-blog:hover span {
    margin-left: 10px;
}

.btn-blog span {
    margin-left: 5px;
    transition-duration: .3s;
}

/* Arreglar blog posts */
.blog-preview .blog-grid .blog-post {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.cta-1 {
    background-color: #dcff7c;
    display: inline-block;
    padding: 16px 28px;
    border-radius: 50px;
    color: #000 !important;
    font-weight: 400 !important;
    font-size: 25px !important;
    text-decoration: none;
}

.cta-1:hover {
    text-decoration: none!important;
}

.cta-1 .enfasis,
.cta-2 .enfasis
 {
    color: #000;
    text-decoration: underline;
}

.cta-1:hover .enfasis,
.cta-2:hover .enfasis
 {
    color: #ed3a29;
}

a.cta-2 {
    display: inline-block;
    background-color: #dcff7c;
    border-radius: 50%;
    border-radius: 50px;
    color: #0a0a0a!important;
    padding: 10px 28px!important;
    font-size: 25px!important;
    text-decoration: none;
    font-weight: 500!important;
}

a.cta-1 .icon.end {
    position: relative;
    top: 3px;
    margin-left: 5px;
}

.contenido-section a.cta-1 {
    margin-top: 30px;
}

/* Tablet */
@media (max-width: 1140px) {
    .hero-content h1 {
        font-size: 56px;
    }
    
    .formacion-titulo {
        font-size: 48px;
    }
    
    .talleres-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-preview .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 767px) {
    .hero-content h1 {
        font-size: 42px;
    }
    
    .formacion-titulo {
        font-size: 36px;
    }
    
    .talleres-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-preview .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .banner-element {
        max-width: 90px;
        top: 39%!important;
    }

    .banner-element:nth-child(2) {
        top: 55%!important;
    }
    .banner-element:nth-child(3) {
        top: 25%!important;
    }
    
    .formacion-card-simple {
        max-width: 100%;
    }
    .cta-1 {
        font-size: 20px!important;
    }
}