* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    font-family: 'Montserrat', sans-serif;
}

.home {
    position: relative;
    width: 100%;
    height: 100vh;
    background: url('../images/bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.overlay {
    position: absolute;
    inset: 0;
    background:
    linear-gradient(to bottom,
        rgba(32, 112, 59, 0.02) 0%,
        rgba(32, 112, 59, 0.8) 100%
    ),
    linear-gradient(90deg,
        rgba(32, 112, 59, 0.7) 0%,
        rgba(32, 112, 59, 0.5) 50%,
        rgba(32, 112, 59, 0.8) 100%
    );
}

.banner {
    position: absolute;
    background: #20703B;
    padding: 20px 45px;
    color: #fff;
    z-index: 2;
    opacity: .8;
}

.banner-left {
    top: 60px;
    left: 0px;
    text-align: left;
    border-radius: 0 45px 45px 0;
}

.banner-left h1 {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
}

.banner-left p {
    font-size: 2.4rem;
    font-weight: 600;
}

.banner-right {
    top: 60px;
    right: 0;
    text-align: center;
    border-radius: 45px 0 0 45px;
}

.banner-right h2 {
    font-size: 2.2rem;
    font-weight: 700;
}

.flags {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
}

.flags img {
    height: 30px;
    width: auto;
}

@media (max-width: 768px) {
    .flags {
        justify-content: flex-start;
        gap: 6px;
    }
    .flags img {
        height: 24px;
    }
}

@media (max-width: 480px) {
    .flags {
        justify-content: center;
        gap: 5px;
    }
    .flags img {
        height: 20px;
    }
    .banner-left {
        top: 30px;
        left: 0px;
        text-align: left;
        border-radius: 0 45px 45px 0;
    }
    .banner-left h1 {
        font-size: 6rem;
        font-weight: 900;
        line-height: 1;
    }
    .banner-left p {
        font-size: 3rem;
        font-weight: 600;
    }
    .banner-right {
        top: 120px;
        right: 0;
        text-align: center;
        border-radius: 45px 0 0 45px;
    }
    .banner-right h2 {
        font-size: 2.5rem;
        font-weight: 700;
    }
}

.center-content {
    position: relative;
    z-index: 2;
    margin-top: 40px;
    width: 100%;
    max-width: 1200px;
}

.dates {
    font-size: 6.5rem;
    font-weight: 900;
    color: #fff;
    text-align: center;
}

.big {
    font-size: 6rem;
}

.month {
    background: #20703B;
    padding: 10px 14px;
    border-radius: 20px;
    font-size: 2rem;
    font-weight: 700;
    margin-left: 5px;
    position: relative;
    top: -75px;
}

@media (max-width: 1024px) {
    .dates { font-size: 5rem; }
    .big { font-size: 4.5rem; }
    .month { font-size: 1.8rem; padding: 5px 12px; top: -8px; }
}

@media (max-width: 768px) {
    .dates { font-size: 4rem; }
    .big { font-size: 3.5rem; }
    .month { font-size: 1.6rem; padding: 4px 10px; top: -6px; }
}

@media (max-width: 480px) {
    .dates { font-size: 3rem; }
    .big { font-size: 2.5rem; }
    .month { font-size: 1.4rem; padding: 3px 8px; top: -5px; }
}

.title-image-container {
    width: 100%;
    max-width: 1200px;
    margin: 25px auto;
    padding: 0 30px;
    box-sizing: border-box;
}

.title-image {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .title-image-container { padding: 0 15px; }
}

.btn {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 30px;
    background: #fff;
    color: #20703B;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #f1f1f1;
}

.bottom-right {
    position: absolute;
    bottom: 45px;
    right: 45px;
    z-index: 2;
}

.bottom-right img {
    max-width: 180px;
    width: 150%;
}

@media (max-width: 768px) {
    .banner-left h1 { font-size: 1.6rem; }
    .banner-left p { font-size: 0.9rem; }
    .banner-right h2 { font-size: 1rem; }
    .dates { font-size: 2rem; }
    .big { font-size: 2.5rem; }
    .btn { padding: 10px 20px; font-size: 0.9rem; }
    .bottom-right img { max-width: 100px; }
}

.features {
    padding: 60px 45px;
    font-family: 'Montserrat', sans-serif;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: 75px 15px;
    border: 1.2px solid #20703B;
    border-radius: 10px;
    background: #fff;
    transition: box-shadow 0.3s ease;
}

.feature-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.feature-card img {
    height: 40px;
    margin-bottom: 15px;
}

.feature-card h3 {
    color: #20703B;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.feature-card p {
    color: #555;
    font-size: 0.95rem;
}

.about {
    padding: 70px 20px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.about h2 {
    color: #20703B;
    font-size: 2rem;
    margin-bottom: 60px;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}

.about-image {
    width: 100%;
}

.about-image img {
    max-width: 600px;
    height: auto;
    width: 100%;
}

.about-text p {
    color: #555;
    margin-bottom: 20px;
    margin-left: 60px;
    line-height: 1.6;
}

.btn-outline {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #20703B;
    color: #20703B;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 60px;
}

.btn-outline1 {
    display: inline-block;
    padding: 10px 20px;
    background-color: #fff;
    color: #20703B;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    margin-top: 45px;
}

.btn-outline:hover {
    background: #20703B;
    color: white;
}

.btn-outline1:hover {
    background: #20703B;
    color: white;
}

@media (max-width: 992px) {
    .features-grid { grid-template-columns: 1fr; max-width: 500px; }
    .btn-outline1 { font-size: 1rem; transition: all 0.3s ease; margin-top: 25px; }
    .about-content { flex-direction: column; text-align: center; }
    .about-text { text-align: center; }
    .btn-outline { margin-left: 0; }
    .about-text p { margin-left: 0; }
    .about h2 { color: #20703B; font-size: 1.5rem; margin-bottom: 40px; }
    .feature-card { text-align: center; padding: 30px 15px; border: 1.2px solid #20703B; border-radius: 10px; background: #fff; transition: box-shadow 0.3s ease; }
}

.speakers {
    background: #E1E1E1;
    padding: 120px 20px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.speakers h2 {
    color: #20703B;
    font-size: 1.8rem;
    margin-bottom: 90px;
}

.speaker-card {
    text-align: center;
}

.speaker-image {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 15px;
    border-radius: 50%;
    border: 1px solid #20703B;
    padding: 12px;
    background: transparent;
    box-sizing: border-box;
}

.speaker-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.flag {
    position: absolute;
    top: -0px;
    right: -0px;
    width: 50px;
    height: 50px;
    z-index: 10;
}

.flag img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.overlay-speakers {
    position: absolute;
    top: 12px;
    left: 12px;
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    background: linear-gradient(
        rgba(32, 112, 59, 0.8) 0%,
        rgba(32, 112, 59, 0.8) 50%,
        rgba(32, 112, 59, 0.9) 100%
    );
    color: #fff;
    display: flex;
    text-transform: uppercase;
    align-items: center;
    font-weight: 500;
    justify-content: center;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    font-size: 0.9rem;
    border-radius: 50%;
}

.speaker-image:hover .overlay-speakers {
    opacity: 1;
}

.speaker-info h3 {
    color: #20703B;
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 700;
}

.social-icons {
    margin-bottom: 8px;
}

.social-icons a {
    margin: 0 5px;
    display: inline-block;
}

.social-icons img {
    width: 24px;
}

@media (max-width: 1200px) {
    .speakers-grid { grid-template-columns: repeat(3, 1fr); }
    .speakers h2 { color: #20703B; font-size: 1.6rem; }
}

@media (max-width: 992px) {
    .speakers-grid { grid-template-columns: repeat(2, 1fr); }
    .speakers h2 { color: #20703B; font-size: 1.5rem; }
}

@media (max-width: 768px) {
    .speakers h2 { font-size: 1.4rem; }
    .speaker-image { width: 220px; height: 220px; padding: 15px; }
    .flag { width: 40px; height: 40px; top: 5px; right: 5px; }
    .speakers { background: #E1E1E1; padding: 60px 20px; text-align: center; font-family: 'Montserrat', sans-serif; }
    .speakers h2 { color: #20703B; margin-bottom: 45px; }
}

@media (max-width: 576px) {
    .speakers-grid { grid-template-columns: 1fr; gap: 30px; }
    .speaker-image { width: 220px; height: 220px; padding: 15px; }
    .flag { width: 35px; height: 35px; top: 10px; right: 10px; }
    .speakers { background: #E1E1E1; padding: 60px 20px; text-align: center; font-family: 'Montserrat', sans-serif; }
    .speakers h2 { color: #20703B; margin-bottom: 45px; }
}

.faq-section {
    text-align: center;
    padding: 4rem 1rem;
    max-width: 1100px;
    margin: 120px auto;
    padding: 0 20px;
}

.faq-section h2 {
    color: #20703B;
    font-size: 1.8rem;
    margin-bottom: 50px;
}

.speakers-carousel {
    overflow: hidden;
    width: 100%;
}

.speakers-track {
    display: flex;
}

.speaker-card {
    flex: 0 0 calc(100% / 5);
    box-sizing: border-box;
    padding: 15px;
}

@media (max-width: 1024px) {
    .speaker-card { flex: 0 0 50%; }
    .faq-section h2 { color: #20703B; font-size: 1.6rem; }
}

@media (max-width: 600px) {
    .speaker-card { flex: 0 0 100%; }
    .faq-section h2 { color: #20703B; font-size: 1.4rem; }
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.faq-item {
    border: 1.5px solid #a8d5b5;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s ease;
}

.faq-item.active {
    border-color: #20703B;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    transition: background 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.faq-question:hover {
    background: #f9f9f9;
}

.faq-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.faq-icon {
    background: #20703B;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-toggle {
    font-size: 1.2rem;
    color: #333;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-text {
    color: #222;
    text-align: left;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 22px;
    color: #444;
    font-size: 0.95rem;
    text-align: justify;
    background: #fff;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 15px 22px 20px;
}

.faq-toggle img {
    width: 20px;
}

@media (max-width: 768px) {
    .faq-question { font-size: 0.95rem; padding: 15px; }
    .faq-icon { width: 28px; height: 28px; font-size: 0.9rem; }
    .faq-answer { font-size: 0.9rem; }
    .faq-toggle img { width: 15px; }
}

@media (max-width: 480px) {
    .faq-text { font-size: 0.9rem; }
    .faq-toggle img { width: 15px; }
}

.main-footer {
    background: linear-gradient(90deg,
        rgba(32, 112, 59, 1) 0%,
        rgba(32, 112, 59, 0.85) 50%,
        rgba(32, 112, 59, 1) 100%
    );
    color: #fff;
    padding: 15px 20px;
    font-family: Montserrat, sans-serif;
    font-weight: 600;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-left p {
    margin: 0;
    font-size: 14px;
}

.footer-right {
    display: flex;
    gap: 20px;
}

.footer-right a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-right a:hover {
    color: #ffd700;
}

@media (max-width: 768px) {
    .footer-container { flex-direction: column; text-align: center; gap: 10px; }
    .footer-right { flex-direction: column; gap: 5px; }
}
.wa-float {
        position: fixed;
        left: 30px;
        bottom: calc(30px + env(safe-area-inset-bottom, 0px));
        width: clamp(48px, 8vw, 68px);
        height: clamp(48px, 8vw, 68px);
        z-index: 900;
    }
    .wa-img { width: 100%; height: 100%; display: block; }

    .hero-slides { position: absolute; inset: 0; z-index: 0; }
    .hero-slide {
        position: absolute; inset: 0;
        background-size: cover; background-position: center;
        opacity: 0; transition: opacity 1.8s ease;
    }
    .hero-slide.active { opacity: 1; }
    .hs-1 { background-image: url('assets/images/tacna-arco.jpg'); }
    .hs-2 { background-image: url('assets/images/tacna-catedral.jpg'); }
    .hs-3 { background-image: url('assets/images/tacna-alto-alianza.jpg'); }
    .hs-4 { background-image: url('assets/images/tacna-petroglifos.jpg'); }
    .hs-5 { background-image: url('assets/images/tacna-procesion.jpg'); }
    .hs-6 { background-image: url('assets/images/tacna-tarata.jpg'); }

    #heroCircuit { position: absolute; inset: 0; z-index: 2; pointer-events: none; }

    .hero-label {
        position: absolute; bottom: 58px; right: 24px; z-index: 6;
        background: rgba(32,112,59,0.78); color: #fff;
        font-size: .65rem; font-weight: 700; letter-spacing: 2px;
        text-transform: uppercase; padding: 5px 14px;
        border-radius: 14px; font-family: 'Montserrat', sans-serif;
    }
    .hero-dots {
        position: absolute; bottom: 20px; left: 50%;
        transform: translateX(-50%); display: flex; gap: 8px; z-index: 6;
    }
    .hero-dot {
        width: 8px; height: 8px; border-radius: 50%;
        background: rgba(255,255,255,0.38); cursor: pointer;
        border: none; transition: all .35s ease;
    }
    .hero-dot.active { background: #fff; width: 24px; border-radius: 4px; }

    /* ── BANNERS ── */
    .banners-wrapper {
        position: absolute;
        top: 0; left: 0; right: 0;
        z-index: 4;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        pointer-events: none;
    }

    .banner {
        background: rgba(32,112,59,0.88);
        padding: 18px 36px;
        color: #fff;
        pointer-events: auto;
    }
    .banner-left {
        border-radius: 0 0 40px 0;
        text-align: left;
    }
    .banner-left h1 {
        font-size: clamp(2.2rem, 5vw, 4.5rem);
        font-weight: 900;
        line-height: 1;
    }
    .banner-left p {
        font-size: clamp(1rem, 2.2vw, 2rem);
        font-weight: 600;
        margin-top: 4px;
    }
    .banner-right {
        border-radius: 0 0 0 40px;
        text-align: center;
    }
    .banner-right h2 {
        font-size: clamp(1rem, 2vw, 1.8rem);
        font-weight: 700;
        line-height: 1.3;
    }
    .flags {
        display: flex;
        justify-content: center;
        gap: 6px;
        margin-top: 8px;
    }

    /* ── CENTRO ── */
    .center-content {
        position: relative;
        z-index: 4;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 700px;
        padding: 0 16px;
        /* empujar hacia abajo para no solapar los banners */
        margin-top: clamp(120px, 18vw, 200px);
    }

    .hero-sub {
        font-size: .82rem; font-weight: 700;
        color: rgba(255,255,255,0.92);
        letter-spacing: 4px; text-transform: uppercase;
        font-family: 'Montserrat', sans-serif;
        animation: fadeUpIn 1.8s ease both;
        margin-top: 4px;
    }
    .hero-lema {
        font-size: .95rem; font-weight: 600; font-style: italic;
        color: rgba(255,255,255,0.88);
        font-family: 'Montserrat', sans-serif;
        animation: fadeUpIn 2s ease both;
        margin-top: 6px;
        max-width: 520px; text-align: center;
    }
    .hero-badges {
        display: flex; gap: 8px; flex-wrap: wrap;
        justify-content: center; margin-top: 10px;
        animation: fadeUpIn 2.2s ease both;
    }
    .hero-badge {
        background: rgba(32,112,59,0.72);
        border: 1px solid rgba(255,255,255,0.3);
        color: #fff; font-size: .6rem; font-weight: 700;
        letter-spacing: 2px; padding: 4px 12px;
        border-radius: 20px; text-transform: uppercase;
        font-family: 'Montserrat', sans-serif;
    }
    .hero-modalidad {
        display: inline-flex; align-items: center; gap: 6px;
        background: rgba(255,255,255,0.15);
        border: 1px solid rgba(255,255,255,0.4);
        color: #fff; font-size: .68rem; font-weight: 700;
        letter-spacing: 2px; padding: 5px 16px;
        border-radius: 20px; text-transform: uppercase;
        font-family: 'Montserrat', sans-serif;
        animation: fadeUpIn 2.4s ease both;
        margin-top: 8px;
    }

    .dates {
        font-size: clamp(3.5rem, 10vw, 7rem);
        font-weight: 900;
        color: #fff;
        text-align: center;
        line-height: 1;
        margin-top: 8px;
    }
    .big { font-size: inherit; }
    .month {
        background: #20703B;
        padding: 8px 18px;
        border-radius: 20px;
        font-size: clamp(1.2rem, 3vw, 2rem);
        font-weight: 700;
        display: inline-block;
        margin-top: 6px;
    }

    .title-image-container {
        width: 100%;
        max-width: 560px;
        margin: 16px auto 0;
        padding: 0 10px;
    }
    .title-image { width: 100%; height: auto; display: block; }

    .btn-inscribirse {
        display: inline-block;
        padding: 12px 36px;
        background: #fff;
        color: #20703B;
        border-radius: 25px;
        font-weight: 700;
        font-size: 1.1rem;
        text-decoration: none;
        transition: all .3s ease;
         margin-top: 20px;
        animation: fadeUpIn 2.6s ease both;
    }
    .btn-inscribirse:hover { background: #20703B; color: #fff; border: 2px solid #fff; }

    .bottom-right {
        position: absolute;
        bottom: 45px; right: 45px;
        z-index: 5;
    }
    .bottom-right img { max-width: 150px; width: 100%; }

    /* ── CONILA typewriter ── */
    .conila-typewriter {
        display: inline-block;
        font-size: clamp(2.2rem, 5vw, 4.5rem);
        font-weight: 900; line-height: 1;
    }
    #twCursor {
        display: inline-block; width: 3px; height: 4rem;
        background: #7defa0; margin-left: 2px;
        animation: twBlink .7s step-end infinite;
        vertical-align: middle; border-radius: 2px;
    }
    @keyframes twBlink { 0%,100%{opacity:1} 50%{opacity:0} }

    @keyframes fadeUpIn {
        from { opacity: 0; transform: translateY(18px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    /* ── RESPONSIVE ── */
    @media (max-width: 768px) {
        .banners-wrapper { flex-direction: column; align-items: stretch; }
        .banner-left  { border-radius: 0; }
        .banner-right { border-radius: 0; }
        .banner { padding: 12px 20px; }
        .center-content { margin-top: 16px; }
        .bottom-right { bottom: 20px; right: 16px; }
        .bottom-right img { max-width: 90px; }
        .hero-label { bottom: 42px; font-size: .58rem; }
    }

    @media (max-width: 480px) {
        .banner-right { display: none; }
        .hero-badges { gap: 5px; }
        .hero-badge { font-size: .55rem; padding: 3px 9px; }
    }
    .center-content {
        gap: 4px;
        padding-top: 0;
    }

    .corlad-logo-hero {
        margin-bottom: 2px;
        margin-top: -10px;
    }

    .hero-badges {
        margin-top: 4px;
    }

    .hero-modalidad {
        margin-top: 2px;
    }

    .dates {
        margin-top: 2px;
        line-height: 1;
    }

    .btn-inscribirse {
        margin-top: 2px;
    }
    [data-anim] {
        opacity: 0;
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    [data-anim="fade-up"]    { transform: translateY(40px); }
    [data-anim="fade-down"]  { transform: translateY(-40px); }
    [data-anim="fade-left"]  { transform: translateX(-50px); }
    [data-anim="fade-right"] { transform: translateX(50px); }
    [data-anim="zoom-in"]    { transform: scale(0.85); }

    [data-anim].is-visible {
        opacity: 1;
        transform: translate(0) scale(1);
    }