
/* =========================================
   TÉRMINOS Y CONDICIONES
   Colores corporativos:
   Azul #17145F - Naranja #FF6500
========================================= */

.pagina-terminos {
    background: #f5f5f5;
    color: #25243a;
    padding-bottom: 80px;
    font-family: "Poppins", sans-serif;
}

.header-legal {
    position: relative;
    top: auto;
}

.header-legal .contenedor {
    width: 92%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 20px 0;
    min-height: 120px;
}

.header-legal .logo img {
    width: 180px;
    max-width: 100%;
    height: auto;
}

.legal-frase {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: center;
}

.legal-frase strong {
    color: #17145F;
    font-size: 15px;
}

.legal-frase span {
    color: #777;
    font-size: 13px;
}

.header-legal nav ul {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.header-legal nav a {
    color: #17145F;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: color .2s ease;
}

.header-legal nav a:hover {
    color: #FF6500;
}

/* PORTADA */
.terminos-portada {
    padding: 65px 20px 70px;
    text-align: center;
    color: #fff;
    background: linear-gradient(115deg, #17145F 0%, #27216e 65%, #FF6500 100%);
}

.terminos-etiqueta {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 17px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 30px;
    background: rgba(255,255,255,.12);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .7px;
}

.terminos-portada h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.15;
    font-weight: 800;
}

.terminos-portada h1 span {
    color: #FF6500;
}

.terminos-portada p {
    max-width: 700px;
    margin: 18px auto 0;
    color: #f0efff;
    font-size: 16px;
    line-height: 1.7;
}

/* DOCUMENTO */
.terminos-documento {
    width: min(1000px, 90%);
    margin: 45px auto 0;
    padding: 45px 50px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(23,20,95,.08);
}

.terminos-documento section {
    padding: 25px 0;
    border-bottom: 1px solid #ececf2;
}

.terminos-documento section:first-of-type {
    padding-top: 25px;
}

.terminos-documento h2 {
    margin: 0 0 14px;
    color: #17145F;
    font-size: 21px;
    line-height: 1.4;
    font-weight: 800;
}

.terminos-documento h2::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 22px;
    margin-right: 11px;
    vertical-align: -4px;
    border-radius: 4px;
    background: #FF6500;
}

.terminos-documento p {
    margin: 0 0 12px;
    color: #55556a;
    font-size: 15px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.terminos-documento p:last-child {
    margin-bottom: 0;
}

.terminos-documento strong {
    color: #17145F;
}

.aviso-legal {
    padding: 18px 20px;
    border-left: 5px solid #FF6500;
    border-radius: 10px;
    background: #fff4eb;
    color: #51465f;
    font-size: 14px;
    line-height: 1.7;
}

.terminos-nota {
    margin-top: 25px !important;
    color: #777 !important;
    font-size: 13px !important;
}

/* FOOTER: conserva los colores de la tienda */
.footer {
    background: #17145F;
    color: #fff;
    padding-top: 60px;
}

.footer-contenedor {
    width: min(1400px, 90%);
    margin: 0 auto;
    padding: 0 0 45px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.3fr;
    gap: 45px;
}

.footer-marca {
    max-width: 300px;
}

.footer-logo {
    display: block;
    width: 200px;
    max-width: 100%;
    height: auto;
    margin-bottom: 18px;
}

.footer-marca p {
    color: #d9d9ef;
    font-size: 15px;
    line-height: 1.7;
}

.footer-columna {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.footer-columna h3 {
    margin: 0 0 8px;
    color: #FF6500;
    font-size: 16px;
    font-weight: 800;
}

.footer-columna a,
.footer-bottom a {
    color: #d9d9ef;
    text-decoration: none;
    font-size: 14px;
    transition: color .2s ease;
}

.footer-columna a:hover,
.footer-bottom a:hover {
    color: #FF6500;
}

.footer-bottom {
    width: min(1400px, 90%);
    margin: 0 auto;
    padding: 23px 0;
    border-top: 1px solid rgba(255,255,255,.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-bottom p {
    margin: 0;
    color: #aaaacf;
    font-size: 13px;
}

/* TABLET Y CELULAR */
@media (max-width: 1000px) {
    .header-legal .contenedor {
        flex-wrap: wrap;
        justify-content: center;
    }

    .legal-frase {
        order: 3;
        width: 100%;
    }

    .header-legal nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .footer-contenedor {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px;
    }
}

@media (max-width: 600px) {
    .header-legal .contenedor {
        flex-direction: column;
        gap: 18px;
        padding: 18px 0;
    }

    .header-legal .logo img {
        width: 140px;
    }

    .header-legal nav ul {
        gap: 12px 18px;
    }

    .header-legal nav a {
        font-size: 13px;
    }

    .terminos-portada {
        padding: 45px 18px;
    }

    .terminos-portada p {
        font-size: 14px;
    }

    .terminos-documento {
        width: 92%;
        margin-top: 25px;
        padding: 25px 20px;
        border-radius: 14px;
    }

    .terminos-documento h2 {
        font-size: 18px;
    }

    .terminos-documento p {
        font-size: 14px;
    }

    .footer-contenedor {
        grid-template-columns: 1fr 1fr;
        gap: 30px 20px;
    }

    .footer-marca {
        grid-column: 1 / -1;
        max-width: 100%;
    }

    .footer-logo {
        width: 170px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}
