/* ============================================================
   Página: Términos y Condiciones de Uso
   Colores institucionales: #00C1D7, #005481, #FFC700, #FFFFFF
   ============================================================ */

/* Cabecera / Hero */
.terms-hero {
    background: linear-gradient(135deg, #005481 0%, #00C1D7 100%);
    color: #ffffff;
    padding: 64px 0 72px;
    position: relative;
    overflow: hidden;
}

.terms-hero::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -80px;
    width: 240px;
    height: 240px;
    background: rgba(255, 199, 0, 0.20);
    border-radius: 50%;
}

.terms-hero::before {
    content: "";
    position: absolute;
    left: -60px;
    top: -70px;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.10);
    border-radius: 50%;
}

.terms-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.terms-hero-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.terms-hero h1 {
    font-weight: 800;
    letter-spacing: 0.5px;
    font-size: 2.1rem;
    margin-bottom: 0.75rem;
}

.terms-hero .terms-updated-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    padding: 0.35rem 0.95rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Contenedor principal */
.terms-wrapper {
    max-width: 1000px;
    margin: -42px auto 0;
    position: relative;
    z-index: 2;
    padding: 0 15px 60px;
}

.terms-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 14px 44px rgba(0, 84, 129, 0.12);
    border: 1px solid #eef2f6;
    padding: 2.75rem 2.75rem;
}

/* Índice rápido */
.terms-toc {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #00C1D7;
    border-radius: 10px;
    padding: 1.1rem 1.4rem;
    margin-bottom: 2rem;
}

.terms-toc-title {
    font-weight: 700;
    color: #005481;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terms-toc-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.terms-toc-list a {
    color: #334155;
    text-decoration: none;
    font-size: 0.86rem;
    position: relative;
    transition: color 0.2s ease;
}

.terms-toc-list a:hover {
    color: #00C1D7;
}

.terms-toc-list a::before {
    content: "\2022";
    color: #FFC700;
    font-weight: 800;
    margin-right: 0.35rem;
}

/* Secciones */
.terms-section {
    padding-bottom: 1.6rem;
    margin-bottom: 1.6rem;
    border-bottom: 1px dashed #e2e8f0;
    scroll-margin-top: 90px;
}

.terms-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.terms-section h2 {
    color: #005481;
    font-size: 1.22rem;
    font-weight: 700;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.terms-section h2 .terms-num {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #00C1D7;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1;
}

.terms-section p {
    color: #3f4a57;
    line-height: 1.8;
    margin-bottom: 0.9rem;
    text-align: justify;
}

.terms-section p:last-child {
    margin-bottom: 0;
}

/* Caja destacada para contacto */
.terms-highlight {
    background: #f8fafc;
    border-left: 4px solid #FFC700;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    color: #334155;
    font-weight: 500;
}

.terms-contact a {
    color: #005481;
    font-weight: 700;
    text-decoration: none;
}

.terms-contact a:hover {
    color: #00C1D7;
    text-decoration: underline;
}

/* Botón volver */
.terms-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: #005481;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.terms-back:hover {
    color: #00C1D7;
}

/* Responsive */
@media (max-width: 575.98px) {
    .terms-hero {
        padding: 48px 0 64px;
    }

    .terms-hero h1 {
        font-size: 1.5rem;
    }

    .terms-card {
        padding: 1.5rem 1.25rem;
    }

    .terms-wrapper {
        margin-top: -30px;
    }
}
