/* ==========================================================
   SEVENLY FOUNDATION
   Extiende custom.css de Sevenly (mismos colores y tipografía)
   ========================================================== */

:root {
    --fd-dark: #152F36;
    --fd-darkblue: #002E34;
    --fd-orange: #FF8248;
    --fd-line: #5E848D;
    --fd-stone: #f5f4f5;
}

/* HOME ---------------------------------------------------- */
/* Hero alineado con el header pastilla (calc(100% - 20px)) */
.fd--hero.height-100 {
    width: calc(100% - 20px);
    height: calc(100vh - 10px) !important;
    margin: 10px auto 0;
    overflow: hidden;
}

.fd--intro {
    padding: 160px 0;
}

.fd--title {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.15 !important;
}

.fd--title .text-orange {
    display: block;
}

.fd--lead {
    font-size: 26px;
    font-weight: 400;
    line-height: 1.35;
}

.fd--grow {
    background: var(--fd-dark);
    padding: 160px 0 0;
}

.fd--title-white {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.15 !important;
}

.fd--grow-text {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
}

.fd--pillars {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.fd--pillars li {
    flex: 1 1 0;
    border: 1px solid var(--fd-line);
    padding: 40px 36px 60px;
    color: #fff;
    transition-duration: .7s;
    transition-timing-function: cubic-bezier(.19, 1, .22, 1);
}

.fd--pillars li:hover {
    border-color: var(--fd-orange);
}

.fd--pillar-label {
    display: block;
    color: var(--fd-orange);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    margin-bottom: 26px;
}

.fd--pillars h3 {
    color: #fff;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 22px;
}

.fd--pillars p {
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
}

/* Lista con efecto pin (reutiliza .bigItems / #secondSection del home de Sevenly) */
.fd--pin-title {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.3 !important;
}

#secondSection .bigItems {
    overflow: hidden;
}

#secondSection .bigItems span {
    width: 100%;
    flex-wrap: nowrap;
    font-size: 1.6vw;
    line-height: 1.25;
    margin-bottom: 14px;
}

#secondSection .bigItems .number-effect {
    flex: 0 0 auto;
    width: 2.6vw;
    height: 2.6vw;
    font-size: 1.2vw;
    border-width: 3px;
    margin: 0 18px 0 0;
}

.fd--body {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.55;
}

/* FOOTER CORPORATIVO --------------------------------------- */
.fd--footer {
    background: var(--fd-dark);
    color: #D6D6D6;
    padding: 130px 0 0;
    position: relative;
    z-index: 9;
}

.fd--footer-kicker {
    color: var(--fd-orange);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.fd--footer-cta {
    padding-bottom: 80px;
    border-bottom: 1px solid var(--fd-line);
}

.fd--footer-cta h2 {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1 !important;
    margin: 0;
}

.fd--footer-cols {
    padding: 70px 0;
}

.fd--footer-logo {
    display: inline-flex;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 25px;
}

.fd--footer-logo img {
    height: 36px;
    width: auto !important;
    max-width: none;
    filter: brightness(0) invert(1);
}

.fd--footer-logo span {
    color: var(--fd-orange);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1;
    padding-bottom: 4px;
}

.fd--footer-about {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    max-width: 320px;
    color: #D6D6D6;
}

.fd--footer h5 {
    color: #fff;
    font-size: 13px !important;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.fd--footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fd--footer-links li {
    margin-bottom: 10px;
}

.fd--footer-links a,
.fd--footer-links span {
    position: relative;
    display: inline-block;
    color: #D6D6D6;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    transition-duration: .7s;
    transition-timing-function: cubic-bezier(.19, 1, .22, 1);
}

.fd--footer-links a:hover {
    color: var(--fd-orange);
    transform: translateX(5px);
}

.fd--footer-contact a {
    word-break: break-word;
}

.fd--footer-bottom {
    border-top: 1px solid var(--fd-line);
}

.fd--footer-bottom .col-md-12 {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 30px;
    padding-top: 25px;
    padding-bottom: 25px;
}

.fd--footer-bottom p {
    margin: 0;
    font-size: 13px;
    color: #9fb3b8;
}

/* LEGAL PAGES --------------------------------------------- */
.legal--hero {
    padding: 220px 0 90px;
    background: var(--fd-dark);
}

.legal--hero h1 {
    color: #fff;
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

.legal--hero p {
    color: #D6D6D6;
    font-size: 15px;
    margin: 0;
}

.legal--hero .legal--kicker {
    color: var(--fd-orange);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.legal--body {
    padding: 100px 0 140px;
}

.legal--nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal--nav li a {
    display: block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: #232323;
    padding: 10px 0 10px 20px;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, .1);
}

.legal--nav li a:before {
    content: "";
    width: 9px;
    height: 9px;
    background: #000;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    transition-duration: .7s;
    transition-timing-function: cubic-bezier(.19, 1, .22, 1);
}

.legal--nav li a:hover,
.legal--nav li a.active {
    color: var(--fd-orange);
}

.legal--nav li a:hover:before,
.legal--nav li a.active:before {
    background: var(--fd-orange);
    transform: rotate(180deg);
}

.legal--content {
    color: var(--fd-darkblue);
}

.legal--content h2 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3 !important;
    margin: 60px 0 18px;
    color: var(--fd-darkblue);
}

.legal--content h2:first-child {
    margin-top: 0;
}

.legal--content h3 {
    font-size: 19px;
    font-weight: 700;
    margin: 30px 0 10px;
    color: var(--fd-darkblue);
}

.legal--content p,
.legal--content li {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.7;
}

.legal--content ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.legal--content a {
    color: var(--fd-orange);
    text-decoration: underline;
}

.legal--content .legal--note {
    border-left: 3px solid var(--fd-orange);
    padding: 15px 25px;
    background: rgba(255, 130, 72, .07);
    margin: 30px 0;
}

/* RESPONSIVE ---------------------------------------------- */
@media screen and (max-width: 991px) {
    .fd--pillars {
        flex-direction: column;
    }
}

@media screen and (max-width: 767px) {
    .fd--intro {
        padding: 90px 0;
    }

    .fd--pin-title {
        font-size: 30px;
    }

    /* En móvil el contenido fijado es más alto que la pantalla: anclarlo arriba */
    #secondSection .row.vertical-align {
        top: auto;
        transform: none;
        padding-top: 110px;
    }

    #secondSection .bigItems span {
        display: flex !important;
        align-items: flex-start;
    }

    #secondSection .bigItems .number-effect {
        width: 28px;
        height: 28px;
        font-size: 3.6vw;
        margin: 2px 12px 0 0;
    }

    .fd--grow {
        padding-top: 90px;
    }

    .fd--title,
    .fd--title-white {
        font-size: 32px;
    }

    .fd--lead {
        font-size: 20px;
    }

    .fd--pillars li {
        padding: 30px 25px 40px;
    }

    .legal--hero {
        padding: 160px 0 60px;
    }

    .legal--hero h1 {
        font-size: 38px;
    }

    .legal--body {
        padding: 60px 0 90px;
    }

    .legal--nav {
        margin-bottom: 50px;
    }

    .fd--footer {
        padding-top: 80px;
    }

    .fd--footer-cta {
        padding-bottom: 50px;
    }

    .fd--footer-cta h2 {
        font-size: 38px;
        margin-bottom: 30px;
    }

    .fd--footer-cols {
        padding: 50px 0 20px;
    }

    .fd--footer-cols > div {
        margin-bottom: 35px;
    }

    .fd--footer-bottom .col-md-12 {
        flex-direction: column;
    }
}
