/* ============================================================
   GSC Footer — style.css v1.0.0
   BEM: .nc-footer
   Tokens Figma: node 6879:15614
   Breakpoint mobile: ≤ 767px
   ============================================================ */

.nc-footer {
    --footer-bg:        #202020;
    --footer-bar-bg:    #191919;
    --footer-white:     #FAFAFA;
    --footer-white-80:  rgba(250, 250, 250, 0.8);
    --footer-white-60:  rgba(250, 250, 250, 0.6);
    --footer-icon-border: #CFCFCF;
    --footer-blue:      #2F3BE4;
    --footer-font:      'Quicksand', sans-serif;
    font-family: var(--footer-font);
    width: 100%;
    box-sizing: border-box;
}

/* ---- Área principal ---- */
.nc-footer__main {
    background-color: var(--footer-bg);
    padding: 80px 64px;
    display: flex;
    flex-direction: column;
    gap: 80px;
    box-sizing: border-box;
    width: 100%;
}

/* ============================================================
   TOP: Logo/Social + Contacto/Accidente
   ============================================================ */
.nc-footer__top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

/* Marca: Logo + Redes */
.nc-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: flex-start;
    flex-shrink: 0;
}

.nc-footer__logo img {
    height: 36px;
    width: auto;
    display: block;
}

.nc-footer__logo-text {
    color: var(--footer-white);
    font-family: var(--footer-font);
    font-size: 20px;
    font-weight: 500;
}

.nc-footer__social {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: center;
}

.nc-footer__social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--footer-icon-border);
    color: var(--footer-white);
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.nc-footer__social-icon:hover {
    opacity: 0.7;
    color: var(--footer-white);
    text-decoration: none;
}

/* Derecha: Contacto + Accidente */
.nc-footer__top-right {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
    flex-shrink: 0;
}

/* Título de sección */
.nc-footer__section-title {
    display: block;
    color: var(--footer-white);
    font-family: var(--footer-font);
    font-size: 20px;
    font-weight: 500;
    line-height: 24px;
}

/* Contacto */
.nc-footer__contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    width: 264px;
    flex-shrink: 0;
}

.nc-footer__contact-item {
    color: var(--footer-white-80);
    font-family: var(--footer-font);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    text-decoration: none;
    margin: 0;
    padding: 0;
}

.nc-footer__contact-item--address {
    display: block;
}

.nc-footer__contact-item:hover {
    color: var(--footer-white);
    text-decoration: none;
}

/* Accidente */
.nc-footer__accident {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
    width: 264px;
    flex-shrink: 0;
}

/* Botón */
.nc-footer__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--footer-white);
    border-radius: 100px;
    padding: 12px 24px;
    color: var(--footer-blue);
    font-family: var(--footer-font);
    font-size: 16px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: -0.2px;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.nc-footer__btn:hover {
    opacity: 0.9;
    color: var(--footer-blue);
    text-decoration: none;
}

/* ============================================================
   BOTTOM: Navegación
   ============================================================ */
.nc-footer__nav {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
    width: 100%;
}

/* Grupo con dos columnas (Navegación y Legales) */
.nc-footer__nav-group {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 0;
    flex: 1 1 0;
    min-width: 0;
}

.nc-footer__nav-group--legales {
    flex: 0 0 auto;
}

/* Columna de navegación */
.nc-footer__nav-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    width: 200px;
    flex-shrink: 0;
}

.nc-footer__nav-col--wide {
    width: 264px;
}

/* Segunda columna sin título: alineada al fondo, mismo top que la primera */
.nc-footer__nav-col--offset {
    align-self: flex-end;
}

/* Segunda columna de Legales: sin título, padding-top para alinear */
.nc-footer__nav-col--offset-leg {
    align-self: flex-end;
    padding-top: 40px;
}

/* Título de columna nav */
.nc-footer__nav-title {
    display: block;
    color: var(--footer-white);
    font-family: var(--footer-font);
    font-size: 20px;
    font-weight: 500;
    line-height: 24px;
}

/* Link de navegación */
.nc-footer__nav-link {
    color: var(--footer-white-80);
    font-family: var(--footer-font);
    font-size: 14px;
    font-weight: 500;
    line-height: 16px;
    text-decoration: none;
    white-space: nowrap;
    display: block;
}

.nc-footer__nav-link:hover {
    color: var(--footer-white);
    text-decoration: none;
}

/* ============================================================
   COPYRIGHT
   ============================================================ */
.nc-footer__copyright {
    background-color: var(--footer-bar-bg);
    padding: 24px 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    min-height: 69px;
}

.nc-footer__copyright-text {
    color: var(--footer-white-60);
    font-family: var(--footer-font);
    font-size: 14px;
    font-weight: 500;
    line-height: normal;
    margin: 0;
    white-space: nowrap;
}

/* ============================================================
   MOBILE — ≤ 767px
   ============================================================ */
@media (max-width: 767px) {

    .nc-footer__main {
        padding: 48px 16px;
        gap: 40px;
    }

    /* Top: apilado vertical */
    .nc-footer__top {
        flex-direction: column;
        gap: 32px;
    }

    .nc-footer__top-right {
        flex-direction: column;
        gap: 32px;
        width: 100%;
    }

    .nc-footer__contact,
    .nc-footer__accident {
        width: 100%;
    }

    .nc-footer__btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* Nav: apilado vertical */
    .nc-footer__nav {
        flex-direction: column;
        gap: 32px;
    }

    .nc-footer__nav-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        flex: 0 0 auto;
        width: 100%;
    }

    .nc-footer__nav-col,
    .nc-footer__nav-col--wide {
        width: 100%;
    }

    .nc-footer__nav-col--offset,
    .nc-footer__nav-col--offset-leg {
        align-self: flex-start;
        padding-top: 0;
    }

    .nc-footer__nav-link {
        white-space: normal;
    }

    /* Copyright */
    .nc-footer__copyright {
        padding: 16px;
        min-height: auto;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .nc-footer__copyright-text {
        white-space: normal;
        text-align: center;
    }
}
