@font-face {
    font-family: "Paralucent Light";
    src: url("fonts/Paralucent-Light.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

.nav-list a,
.nav-dropdown-toggle {
    white-space: nowrap;
}

@media (min-width: 861px) {
    .nav-item-dropdown.is-open .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}

@media (min-width: 861px) and (max-width: 1180px) {
    .header-inner {
        gap: 12px;
        padding-left: 18px;
    }

    .nav-list {
        gap: clamp(8px, 1.3vw, 16px);
        font-size: 0.82rem;
    }

    .logo img {
        height: 28px;
    }

    .header-actions {
        gap: 8px;
    }

    .header-actions .btn-sm {
        padding: 11px 16px;
        font-size: 0.78rem;
    }

    .lang-toggle {
        padding: 6px 10px;
    }
}

.franchise-hero {
    padding-top: clamp(104px, 11.6vw, 167px);
}

.franchise-hero .wrapper-main {
    max-width: calc(862px + 2 * 24px);
}

.franchise-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.franchise-stats li {
    padding: 6px 20px;
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: 2px 3px 6px rgba(20, 20, 34, 0.28);
    font-size: clamp(1rem, 1.67vw, 1.5rem);
    line-height: 1.3;
}

.franchise-stats strong {
    color: var(--color-primary);
    font-weight: 700;
}

.franchise-title {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    margin-top: clamp(12px, 1.7vw, 24px);
}

.franchise-title h1 {
    grid-column: 1;
    font-size: clamp(2.1rem, 4.85vw, 4.35rem);
    font-weight: 400;
    line-height: 1.1;
}

.franchise-title h1 strong {
    font-weight: 700;
}

.franchise-subtitle {
    position: relative;
    grid-column: 1;
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.4vw, 20px);
    margin-top: 4px;
    font-size: clamp(1rem, 1.67vw, 1.5rem);
    font-weight: 500;
    white-space: nowrap;
}

.franchise-subtitle::before {
    content: "";
    flex: 0 0 clamp(60px, 18vw, 258px);
    height: 2px;
    background: var(--color-primary);
}

.franchise-title-icon {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: clamp(88px, 12.8vw, 184px);
    height: auto;
    margin-right: max(-22px, -1.5vw);
}

.franchise-intro {
    margin-top: clamp(20px, 2.4vw, 34px);
    font-size: clamp(1.05rem, 1.67vw, 1.5rem);
    line-height: 1.2;
    text-align: justify;
}

.franchise-intro strong {
    font-weight: 700;
}

.franchise-intro em {
    font-family: "Paralucent Light", var(--font-main);
    font-style: italic;
}

.franchise-brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-primary);
}

.franchise-brand img {
    width: 1em;
    height: 1em;
}

.franchise-services {
    padding-top: clamp(48px, 9vw, 130px);
    padding-bottom: clamp(24px, 3vw, 80px);
}

.service-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    --service-gap: clamp(20px, 2.1vw, 30px);
    gap: var(--service-gap);
    max-width: 1032px;
    margin-inline: auto;
}

.service-card {
    scroll-margin-top: 120px;
    flex: 0 1 324px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 36px 24px 40px;
    background: linear-gradient(105deg, rgba(246, 246, 248, 0.9) 0%, var(--color-white) 45%);
    border-radius: 24px;
    box-shadow: 3px 5px 8px rgba(20, 20, 34, 0.22);
    text-align: center;
}

.service-card-icon {
    width: 107px;
    height: 107px;
    margin-bottom: 14px;
}

.service-card-title {
    color: var(--color-primary);
    font-size: clamp(1.2rem, 1.5vw, 1.375rem);
    font-weight: 700;
    line-height: 1.15;
    text-wrap: balance;
}

.service-card-lead {
    margin-top: 18px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.15;
}

.service-card-text {
    margin-top: 22px;
    font-size: 1rem;
    line-height: 1.15;
    text-align: justify;
}

@media (min-width: 901px) {
    .service-card {
        flex-basis: calc((100% - 2 * var(--service-gap)) / 3);
        max-width: 324px;
        padding-inline: 18px;
    }
}

.page-franquicia-tu-negocio .cta {
    background: var(--color-white);
}

@media (max-width: 667px) {
    .franchise-hero {
        padding-top: 92px;
    }

    .franchise-stats {
        justify-content: center;
    }

    .franchise-stats li {
        flex: 1 1 auto;
        text-align: center;
    }

    .franchise-subtitle {
        white-space: normal;
    }

    .franchise-intro,
    .service-card-text {
        text-align: left;
    }

    .service-card {
        flex-basis: 100%;
        max-width: 420px;
        padding: 28px 20px 32px;
    }
}

.invest-hero .invest-title-wrap {
    max-width: calc(1064px + 2 * 24px);
}

.invest-title {
    display: grid;
    grid-template-columns: max-content auto;
    align-items: center;
    justify-content: space-between;
    gap: clamp(8px, 2vw, 24px);
    margin-top: clamp(12px, 1.7vw, 24px);
}

.invest-title-text h1 {
    font-size: clamp(1.7rem, 5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
}

.invest-title-text h1 strong {
    font-weight: 700;
}

.invest-title-text .franchise-subtitle {
    margin-top: 4px;
}

.invest-title-text .franchise-subtitle::before {
    flex: 1;
}

.invest-title-icons {
    position: relative;
    width: clamp(84px, 15.1vw, 218px);
    aspect-ratio: 218 / 180;
}

.invest-title-icons img {
    position: absolute;
    height: auto;
}

.invest-icon-store {
    top: 0;
    left: 17.4%;
    width: 82.6%;
}

.invest-icon-balloons {
    top: 25%;
    left: 4.6%;
    width: 26.1%;
}

.invest-icon-people {
    top: 50%;
    left: 0;
    width: 34.4%;
}

.invest-hero .franchise-intro {
    max-width: 862px;
    margin-inline: auto;
}

.invest-steps-section {
    padding-top: clamp(40px, 4.5vw, 65px);
}

.invest-steps {
    display: grid;
    grid-template-columns: minmax(0, 188px) minmax(0, 324px);
    justify-content: center;
    column-gap: clamp(14px, 3.8vw, 55px);
    row-gap: clamp(12px, 1.5vw, 22px);
}

.invest-step {
    display: contents;
}

.invest-step-name,
.invest-step-text {
    align-self: center;
    background: linear-gradient(105deg, rgba(246, 246, 248, 0.9) 0%, var(--color-white) 55%);
    border-radius: 10px;
    box-shadow: 3px 4px 7px rgba(20, 20, 34, 0.25);
}

.invest-step-name {
    min-height: 114px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 12px;
    font-size: clamp(1.05rem, 1.5vw, 1.375rem);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.invest-step-name span {
    display: block;
    color: var(--color-primary);
}

.invest-step-text {
    padding: 14px clamp(14px, 1.7vw, 24px);
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    line-height: 1.2;
    text-align: justify;
}

.invest-step-text.is-centered {
    text-align: center;
}

.cases {
    padding-top: clamp(56px, 7.4vw, 107px);
    padding-bottom: clamp(24px, 3vw, 40px);
}

.cases-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 1.8vw, 26px);
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    font-weight: 400;
}

.cases-title img {
    width: clamp(130px, 15.6vw, 224px);
    height: auto;
}

.cases-title-divider {
    width: 1px;
    height: clamp(30px, 3.5vw, 50px);
    background: var(--color-dark);
}

.cases-carousel {
    margin-top: clamp(32px, 5vw, 72px);
    overflow: hidden;
}

.cases-carousel .swiper-slide {
    width: clamp(260px, 29.4vw, 424px);
    height: auto;
    aspect-ratio: 424 / 501;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--color-primary);
    border-radius: 28px;
}

.cases-carousel .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 55%;
}

.cases-carousel .case-card:nth-child(2) img {
    object-position: 50% 0;
}

.cases-carousel .case-card:nth-child(3) img {
    object-position: 50% 72%;
}

.cases-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 1064px;
    margin: clamp(28px, 6.8vw, 98px) auto 0;
}

.cases-controls .swiper-button-prev,
.cases-controls .swiper-button-next {
    position: static;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    margin: 0;
    color: var(--color-primary);
}

.cases-controls .swiper-button-prev::after,
.cases-controls .swiper-button-next::after {
    font-size: 14px;
    font-weight: 700;
}

.cases-controls .swiper-scrollbar {
    position: relative;
    flex: 1;
    height: 10px;
    background: #d9d9d9;
    border-radius: 999px;
}

.cases-controls .swiper-scrollbar-drag {
    background: #8a8a8a;
    border-radius: 999px;
}

.page-invierte-en-una-franquicia .cta {
    background: var(--color-white);
}

@media (max-width: 667px) {
    .invest-title {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .invest-steps {
        grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
    }

    .invest-step-text {
        text-align: left;
    }

    .invest-step-text.is-centered {
        text-align: left;
    }

    .cases-title {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .invest-steps {
        display: block;
        max-width: 420px;
        margin-inline: auto;
    }

    .invest-step {
        display: grid;
        gap: 10px;
        margin-bottom: 16px;
    }

    .invest-step-name {
        display: block;
        min-height: 0;
        padding: 12px;
    }

    .invest-step-name span {
        display: inline;
        margin-right: 4px;
    }

    .invest-step-name,
    .invest-step-text {
        align-self: stretch;
    }

    .invest-step-name,
    .invest-step-text.is-centered {
        text-align: center;
    }

    .cases-title {
        flex-direction: column;
        gap: 10px;
    }

    .cases-title-divider {
        display: none;
    }
}

.about-intro {
    padding-top: clamp(104px, 11.6vw, 167px);
}

.about-intro .wrapper-main {
    max-width: calc(980px + 2 * 24px);
}

.about-title {
    font-size: clamp(1.9rem, 5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.32;
}

.about-title .highlight {
    padding: 0 clamp(14px, 2.2vw, 32px) 0 clamp(14px, 2.2vw, 32px);
    line-height: 1.1;
}

.about-title .highlight::after {
    top: -0.2em;
    right: -0.2em;
    width: 0.22em;
    height: 0.22em;
}

.about-lead {
    margin-top: clamp(32px, 5.5vw, 80px);
    font-size: clamp(1.05rem, 1.67vw, 1.5rem);
    line-height: 1.2;
}

.about-lead strong {
    font-weight: 700;
}

.about-text {
    max-width: 740px;
    margin-top: clamp(20px, 2.4vw, 34px);
    font-size: clamp(1.05rem, 1.67vw, 1.5rem);
    line-height: 1.2;
}

.team {
    padding-top: clamp(40px, 4.2vw, 61px);
    padding-bottom: clamp(24px, 3vw, 80px);
}

.team-heading {
    position: relative;
    display: flex;
    justify-content: center;
    padding-inline: 20px;
    font-size: clamp(1.7rem, 4.3vw, 3.9rem);
    font-weight: 400;
    line-height: 1.1;
}

.team-heading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-primary);
    transform: translateY(-50%);
}

.team-heading span {
    position: relative;
    padding: clamp(4px, 0.6vw, 9px) clamp(20px, 2.4vw, 34px);
    background: var(--color-white);
    border: 3px solid var(--color-primary);
    border-radius: 999px;
    text-align: center;
}

.team-heading strong {
    color: var(--color-primary);
    font-weight: 700;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px 20px;
    max-width: 1064px;
    margin: clamp(32px, 6.2vw, 90px) auto 0;
}

.team-card {
    flex: 0 0 calc((100% - 60px) / 4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(105deg, rgba(246, 246, 248, 0.9) 0%, var(--color-white) 45%);
    border-radius: 12px;
    box-shadow: 0 6px 8px -2px rgba(20, 20, 34, 0.3);
}

.team-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 251 / 350;
    object-fit: cover;
    object-position: 50% 0;
}

.team-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    padding: 22px 18px 28px;
    text-align: center;
}

.team-flag {
    width: 26px;
    height: 26px;
    margin-bottom: 8px;
}

.team-name {
    color: var(--color-primary);
    font-size: clamp(1.2rem, 1.5vw, 1.375rem);
    font-weight: 700;
    line-height: 1.15;
}

.team-role {
    margin-top: 14px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.team-bio {
    margin-top: 16px;
    font-size: 1rem;
    line-height: 1.2;
}

.team-bio p + p {
    margin-top: 19px;
}

.team-toggle {
    margin-top: 12px;
    padding: 8px 18px;
    border: 1.5px solid var(--color-primary);
    border-radius: 999px;
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 700;
    transition: background var(--transition), color var(--transition);
}

.team-toggle:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.team-toggle[hidden] {
    display: none;
}

.page-nosotros .cta {
    background: var(--color-white);
}

@media (max-width: 1080px) {
    .team-card {
        flex-basis: calc((100% - 40px) / 3);
    }
}

@media (max-width: 860px) {
    .team-card {
        flex-basis: calc((100% - 20px) / 2);
    }
}

@media (max-width: 667px) {
    .about-intro {
        padding-top: 92px;
    }

    .team-grid {
        gap: 24px;
    }

    .team-card {
        flex-basis: 100%;
        max-width: 420px;
    }

    .team-photo {
        aspect-ratio: 4 / 3.4;
    }

    .team-card.is-collapsible .team-bio {
        position: relative;
        max-height: 7.2em;
        overflow: hidden;
    }

    .team-card.is-collapsible .team-bio::after {
        content: "";
        position: absolute;
        inset: auto 0 0;
        height: 3em;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--color-white));
    }

    .team-card.is-collapsible.is-expanded .team-bio {
        max-height: none;
    }

    .team-card.is-collapsible.is-expanded .team-bio::after {
        display: none;
    }
}
