/* =====================================================================
   TriPing — Páginas legales y estáticas
   ===================================================================== */

.legal-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--c-bg);
}

/* ── Hero de página ─────────────────────────────────────────────────── */
.legal-hero {
    background: linear-gradient(135deg, var(--c-dark) 0%, #035358 100%);
    color: #fff;
    padding: 60px 24px;
    text-align: center;
}
.legal-hero__tag {
    display: inline-block;
    background: rgba(120,255,214,.15);
    color: var(--c-mint);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    padding: 4px 14px;
    border-radius: 99px;
    margin-bottom: 14px;
}
.legal-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 12px;
}
.legal-hero p {
    font-size: 1rem;
    color: rgba(255,255,255,.72);
    max-width: 560px;
    margin: 0 auto;
}

/* ── Contenedor principal ───────────────────────────────────────────── */
.legal-content {
    max-width: 820px;
    margin: 0 auto;
    padding: 56px 24px;
    flex: 1;
}

/* Última actualización */
.legal-updated {
    font-size: 0.8rem;
    color: var(--c-muted);
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--c-border);
}

/* Secciones */
.legal-section {
    margin-bottom: 40px;
}
.legal-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--c-dark);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.legal-section h2::before {
    content: '';
    display: block;
    width: 4px;
    height: 22px;
    background: var(--c-cyan);
    border-radius: 2px;
    flex-shrink: 0;
}
.legal-section p {
    line-height: 1.75;
    color: #374151;
    margin-bottom: 12px;
    font-size: 0.93rem;
}
.legal-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}
.legal-section ul li {
    display: flex;
    gap: 10px;
    font-size: 0.93rem;
    color: #374151;
    line-height: 1.65;
}
.legal-section ul li::before {
    content: '›';
    color: var(--c-cyan);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}
.legal-section a {
    color: var(--c-dark);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.legal-section a:hover { color: var(--c-cyan); }

/* Highlight box */
.legal-highlight {
    background: linear-gradient(135deg, rgba(10,211,255,.06), rgba(120,255,214,.06));
    border-left: 3px solid var(--c-cyan);
    border-radius: 0 var(--rad-m) var(--rad-m) 0;
    padding: 16px 20px;
    margin: 16px 0 20px;
    font-size: 0.9rem;
    color: var(--c-text);
    line-height: 1.7;
}

/* Tabla de cookies */
.cookies-table-wrap {
    overflow-x: auto;
    margin: 16px 0 24px;
    border-radius: var(--rad-m);
    box-shadow: var(--shadow-xs);
}
.cookies-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    background: var(--c-surface);
}
.cookies-table th {
    background: var(--c-dark);
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: .3px;
}
.cookies-table td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--c-border);
    color: #374151;
    line-height: 1.5;
}
.cookies-table tr:last-child td { border-bottom: none; }
.cookies-table tr:hover td { background: var(--c-light); }

/* ── Clientes grid ──────────────────────────────────────────────────── */
.clientes-hero-extra {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 28px;
    flex-wrap: wrap;
}
.clientes-stat {
    text-align: center;
    color: #fff;
}
.clientes-stat strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--c-mint);
}
.clientes-stat span { font-size: 0.85rem; color: rgba(255,255,255,.7); }

.clientes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 8px;
}

.cliente-card {
    background: var(--c-surface);
    border-radius: var(--rad-l);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--c-border);
    transition: box-shadow var(--t), transform var(--t);
}
.cliente-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.cliente-card__logo {
    width: 52px;
    height: 52px;
    border-radius: var(--rad-m);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 14px;
}
.cliente-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--c-text);
}
.cliente-card p {
    font-size: 0.84rem;
    color: var(--c-muted);
    line-height: 1.6;
    margin-bottom: 14px;
}
.cliente-card__tag {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.tag-dep  { background: #dbeafe; color: #1d4ed8; }
.tag-gas  { background: #fef3c7; color: #92400e; }
.tag-tur  { background: #d1fae5; color: #065f46; }
.tag-mix  { background: #f3e8ff; color: #6d28d9; }

/* ── Sobre nosotros ─────────────────────────────────────────────────── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 8px;
}
.team-card {
    background: var(--c-surface);
    border-radius: var(--rad-l);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--c-border);
    transition: box-shadow var(--t), transform var(--t);
}
.team-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.team-card__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-dark), #035358);
    color: var(--c-mint);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 14px;
}
.team-card h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.team-card p  { font-size: 0.82rem; color: var(--c-muted); }

.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 8px;
}
.valor-card {
    background: var(--c-surface);
    border-radius: var(--rad-m);
    padding: 20px;
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-xs);
}
.valor-card__icon { font-size: 1.8rem; margin-bottom: 10px; }
.valor-card h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 6px; }
.valor-card p  { font-size: 0.83rem; color: var(--c-muted); line-height: 1.6; }

/* Contacto box */
.contacto-box {
    background: linear-gradient(135deg, var(--c-dark) 0%, #035358 100%);
    border-radius: var(--rad-l);
    padding: 36px;
    text-align: center;
    color: #fff;
    margin-top: 16px;
}
.contacto-box h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; }
.contacto-box p  { color: rgba(255,255,255,.75); margin-bottom: 20px; font-size: 0.93rem; }

/* ── CTA de clientes ─────────────────────────────────────────────────── */
.clientes-cta {
    background: linear-gradient(135deg, var(--c-dark) 0%, #035358 100%);
    border-radius: var(--rad-xl);
    padding: 48px 40px;
    text-align: center;
    color: #fff;
    margin-top: 48px;
}
.clientes-cta h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 12px; }
.clientes-cta p  { color: rgba(255,255,255,.72); margin-bottom: 24px; max-width: 480px; margin-left: auto; margin-right: auto; }
.clientes-cta__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .legal-content { padding: 36px 16px; }
    .legal-hero    { padding: 40px 16px; }
    .contacto-box  { padding: 28px 20px; }
    .clientes-cta  { padding: 36px 20px; }
    .clientes-hero-extra { gap: 20px; }
}
