:root {
    --ces-teal: #3d9ea2;
    --ces-navy: #00365c;
    --ces-red: #e24e43;
    --ces-darkred: #c81711;
    --ces-gray: #a5a5a4;
    --ces-menu: #a5a5a4;
    --ces-text: #2b2b2b;
    --ces-phrases: #1ca9b0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Montserrat", sans-serif;
    color: var(--ces-text);
    background: #fff;
}

.narrow {
    max-width: 1080px;
}

.text-teal {
    color: var(--ces-teal);
}

.text-navy {
    color: var(--ces-navy);
}

.text-justify {
    text-align: justify;
}

.lead-text {
    font-size: .95rem;
    line-height: 1.3;
}

.section {
    padding: 2rem 0;
    scroll-margin-top: 0;
}

.section-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Botones */
.btn-pill {
    --btn-color: var(--ces-red);
    border-radius: 50rem;
    border: 2px solid var(--btn-color);
    background: var(--btn-color);
    padding: .4rem 1.5rem;
    font-weight: 500;
    color: #fff;
    transition: background-color .2s, color .2s;
}

.btn-pill:hover,
.btn-pill:focus-visible,
.btn-pill:active {
    background: transparent;
    border-color: var(--btn-color);
    color: #fff;
}

.btn-red {
    --btn-color: var(--ces-red);
}

.btn-darkred {
    --btn-color: var(--ces-darkred);
    font-family: "Poppins", sans-serif;
    font-weight: 400;
}

.btn-teal {
    --btn-color: var(--ces-teal);
}

.btn-navy {
    --btn-color: var(--ces-navy);
    font-weight: 400;
    font-size: .95rem;
    padding: .35rem .75rem;
}

/* Encabezado */
.hero {
    position: relative;
    min-height: 245px;
    display: flex;
    align-items: center;
    padding: 1.75rem 0;
    background: #1e120d url("../img/hero.jpg") center / cover no-repeat;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(30, 18, 13, .55);
    z-index: -1;
}

.hero-logo {
    display: block;
    width: 100%;
    max-width: 290px;
    height: auto;
    margin-left: auto;
    margin-right: 1rem;
}

.hero-menu {
    position: fixed;
    left: 0;
    top: 1rem;
    z-index: 1030;
}

.hero-menu-toggle {
    width: 62px;
    height: 42px;
    background: var(--ces-red);
    border: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 5px;
    padding: 0 8px 0 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

.hero-menu-toggle span {
    display: block;
    width: 36px;
    height: 5px;
    background: #fff;
}

.hero-menu-list {
    background: var(--ces-menu);
    border: 0;
    border-radius: 0;
    min-width: 0;
    padding: .5rem 1.25rem .75rem;
    margin-left: 34px !important;
}

.hero-menu-list .dropdown-item {
    color: #fff;
    font-size: 1.15rem;
    padding: .2rem 0;
    border-bottom: 1px solid var(--ces-navy);
}

.hero-menu-list li:last-child .dropdown-item {
    border-bottom: 0;
}

.hero-menu-list .dropdown-item:hover,
.hero-menu-list .dropdown-item:focus {
    background: transparent;
    color: var(--ces-navy);
}

/* Fecha y lugar */
.band-info {
    background: var(--ces-teal);
    color: var(--ces-navy);
    padding: 1rem 0;
}

.info-icon {
    font-size: 1.5rem;
    color: #fff;
    line-height: 1;
}

.info-text {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: .62rem;
    line-height: 1.35;
    margin-top: .35rem;
}

.event-date {
    font-weight: 800;
    font-size: 2.6rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: .2rem;
}

.event-date-sep {
    display: inline-block;
    width: .2em;
    height: 1.15em;
    background: var(--ces-navy);
}

/* Programa */
.band-program {
    background: var(--ces-red);
    padding: 1.6rem 0;
}

.program-title {
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: .95rem;
}

.band-program .btn-pill {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    white-space: nowrap;
}

/* Disertantes */
.speaker {
    text-align: center;
    padding: 0 .25rem;
}

.owl-carousel .owl-item img.speaker-photo {
    width: 96px;
    height: 96px;
    margin: 0 auto .75rem;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--ces-teal);
}

.speaker-name {
    font-weight: 700;
    font-size: .85rem;
    color: var(--ces-navy);
    margin: 0 0 .2rem;
}

.speaker-topic {
    font-size: .78rem;
    line-height: 1.3;
    margin: 0;
}

/* Frases */
.band-phrases {
    background: var(--ces-phrases);
    color: #fff;
    padding: 1.75rem 0;
}

.phrases-carousel .owl-stage {
    display: flex;
}

.phrases-carousel .owl-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 5.5rem;
}

.phrase {
    font-size: 1.05rem;
    line-height: 1.3;
    text-align: center;
    margin: 0;
    padding: 0 .5rem;
}

.phrase strong {
    font-weight: 800;
}

/* Proyectos */
.project-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1.5px solid var(--ces-teal);
    border-radius: 12px;
    padding: 7px 7px 8px;
}

.project-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid var(--ces-teal);
    border-radius: 6px;
}

.project-title {
    font-weight: 700;
    font-size: 1rem;
    color: #000;
    margin: .7rem 0 .3rem;
    padding: 0 3px;
}

.project-text {
    font-size: .7rem;
    text-align: justify;
    margin: 0 0 .4rem;
    padding: 0 3px;
}

.btn-more {
    margin-top: auto;
    align-self: flex-end;
    background: var(--ces-gray);
    color: #fff;
    border: 1.5px solid var(--ces-gray);
    border-radius: 50rem;
    font-size: .6rem;
    padding: .15rem .9rem;
    transition: background-color .2s, color .2s;
}

.btn-more:hover,
.btn-more:focus-visible,
.btn-more:active {
    background: transparent;
    border-color: var(--ces-gray);
    color: var(--ces-gray);
}

/* Carruseles (Owl Carousel) */
.projects-carousel .owl-stage {
    display: flex;
}

.projects-carousel .owl-item {
    display: flex;
    padding: 2px;
    /* evita que el overflow de Owl corte el borde de las tarjetas */
}

.projects-carousel .owl-item .project-card {
    width: 100%;
}

.owl-carousel .owl-item img.project-img {
    width: 100%;
}

.owl-theme .owl-dots {
    margin-top: 1rem !important;
}

.owl-theme .owl-dots .owl-dot span {
    background: var(--ces-gray);
}

.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
    background: var(--ces-teal);
}

/* Inscripciones */
.band-signup {
    background: var(--ces-navy);
    padding: 1.4rem 0 2rem;
}

.signup-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.35rem;
}

.signup-buttons .btn-pill {
    font-weight: 700;
    padding: .35rem 1.1rem;
}

/* Comité organizador */
.member {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.member-photo {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
}

.member-name {
    font-weight: 700;
    font-size: .8rem;
    margin: 0;
}

/* Contacto y descargas */
.band-footer {
    background: var(--ces-teal);
    color: #fff;
    padding: 1rem 0 1.75rem;
}

.footer-title {
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: .6rem;
}

.footer-text {
    font-weight: 700;
    font-size: .68rem;
    text-align: justify;
    line-height: 1.3;
}

/* Desktop */
@media (min-width: 768px) {
    .band-phrases {
        padding: 2.5rem 0;
    }

    .phrase {
        font-size: 2rem;
        max-width: 820px;
        margin: 0 auto;
    }

    .phrases-carousel .owl-item {
        min-height: 7rem;
    }

    .section {
        padding: 3.5rem 0;
    }

    .section-title {
        font-size: 1.9rem;
        margin-bottom: 1.5rem;
    }

    .lead-text {
        font-size: 1.05rem;
        line-height: 1.6;
    }

    .hero {
        min-height: 420px;
    }

    .hero-logo {
        max-width: 460px;
        margin: 0 auto;
    }

    .hero-menu {
        top: 2rem;
    }

    .info-icon {
        font-size: 2.2rem;
    }

    .info-text {
        font-size: 1rem;
    }

    .event-date {
        font-size: 4.5rem;
    }

    .band-info {
        padding: 1.75rem 0;
    }

    .band-program {
        padding: 2.25rem 0;
    }

    .program-title {
        font-size: 1.5rem;
    }

    .band-program .btn-pill {
        font-size: 1.15rem;
        padding: .55rem 3rem;
    }

    .owl-carousel .owl-item img.speaker-photo {
        width: 130px;
        height: 130px;
    }

    .speaker-name {
        font-size: 1rem;
    }

    .speaker-topic {
        font-size: .9rem;
    }

    .project-card {
        padding: 10px 10px 12px;
    }

    .project-title {
        font-size: 1.2rem;
    }

    .project-text {
        font-size: .85rem;
    }

    .btn-more {
        font-size: .75rem;
        padding: .25rem 1.1rem;
    }

    .band-signup {
        padding: 2.25rem 0;
    }

    .signup-title {
        font-size: 2rem;
    }

    .signup-buttons .btn-pill {
        font-size: 1.15rem;
        min-width: 11rem;
        padding: .55rem 2rem;
    }

    .btn-navy {
        font-size: 1.1rem;
        padding: .45rem 1.5rem;
    }

    .member-photo {
        width: 72px;
        height: 72px;
    }

    .member-name {
        font-size: 1rem;
    }

    .band-footer {
        padding: 2.5rem 0 3rem;
    }

    .footer-title {
        font-size: 1.75rem;
    }

    .footer-text {
        font-size: .95rem;
    }
}