/* ============================================
   terminos.css — Estilos para Términos y Condiciones
   ============================================ */

/* ---- Page Header ---- */
.terms-hero {
    background: linear-gradient(135deg, #111827 0%, #1e3a8a 100%);
    color: #fff;
    padding: 70px 0 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.terms-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.terms-hero h1 {
    color: #fff;
    font-size: 2.8rem;
    margin-bottom: 12px;
    position: relative;
}

.terms-hero .hero-badge {
    display: inline-block;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #fbbf24;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.terms-hero p {
    color: rgba(255,255,255,0.7);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
    position: relative;
}

/* ---- Table of Contents (sidebar pills) ---- */
.terms-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    align-items: start;
    padding: 60px 0 80px;
}

.terms-toc {
    position: sticky;
    top: 120px;
}

.terms-toc h4 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 14px;
}

.terms-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 2px solid #e5e7eb;
}

.terms-toc ul li a {
    display: block;
    padding: 7px 14px;
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
    border-left: 2px solid transparent;
    margin-left: -2px;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1.4;
}

.terms-toc ul li a:hover {
    color: #1d4ed8;
    border-left-color: #1d4ed8;
    background: transparent;
}

.terms-toc ul li a.active {
    color: #1d4ed8;
    border-left-color: #1d4ed8;
    font-weight: 600;
}

.terms-toc ul li a.toc-vps {
    color: #7c3aed;
    font-weight: 600;
}

.terms-toc ul li a.toc-vps:hover,
.terms-toc ul li a.toc-vps.active {
    border-left-color: #7c3aed;
    color: #6d28d9;
}

/* ---- Terms Content ---- */
.terms-content {
    min-width: 0;
}

/* ---- Section Groups ---- */
/* Offset for sticky header (~115px header + 20px breathing room) */
.terms-section-group,
.vps-terms-block {
    scroll-margin-top: 130px;
}

.terms-section-group {
    margin-bottom: 50px;
}

.terms-section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f3f4f6;
}

.terms-section-label .label-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.terms-section-label .label-icon.blue   { background: #dbeafe; color: #1d4ed8; }
.terms-section-label .label-icon.green  { background: #d1fae5; color: #065f46; }
.terms-section-label .label-icon.yellow { background: #fef3c7; color: #92400e; }
.terms-section-label .label-icon.red    { background: #fee2e2; color: #991b1b; }
.terms-section-label .label-icon.gray   { background: #f3f4f6; color: #374151; }
.terms-section-label .label-icon.purple { background: #ede9fe; color: #6d28d9; }

.terms-section-label h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    letter-spacing: -0.01em;
}

/* ---- Standard term block ---- */
.term-item {
    margin-bottom: 24px;
}

.term-item h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.term-item h3 i {
    font-size: 0.8rem;
    color: #9ca3af;
}

.term-item p {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.75;
    margin: 0 0 8px;
}

.term-item ul {
    margin: 6px 0 0 0;
    padding: 0;
    list-style: none;
}

.term-item ul li {
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.7;
    padding-left: 20px;
    position: relative;
    margin-bottom: 4px;
}

.term-item ul li::before {
    content: '·';
    position: absolute;
    left: 6px;
    color: #d1d5db;
    font-weight: 700;
}

/* ---- VPS Special Block ---- */
.vps-terms-block {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 18px;
    padding: 36px 40px;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.vps-terms-block::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.vps-terms-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.vps-terms-icon {
    width: 48px;
    height: 48px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #3b82f6;
    flex-shrink: 0;
}

.vps-terms-header-text .eyebrow {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #3b82f6;
    margin-bottom: 3px;
}

.vps-terms-header-text h2 {
    color: #1e293b;
    font-size: 1.3rem;
    margin: 0;
}

.vps-terms-intro {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.75;
    margin-bottom: 28px;
    border-left: 3px solid rgba(59, 130, 246, 0.3);
    padding-left: 16px;
}

.vps-responsibility-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.vps-resp-card {
    border-radius: 12px;
    padding: 20px 22px;
}

.vps-resp-card.client {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.vps-resp-card.fullhosting {
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.vps-resp-card .card-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.vps-resp-card.client .card-label    { color: #dc2626; }
.vps-resp-card.fullhosting .card-label { color: #059669; }

.vps-resp-card .card-label i {
    font-size: 0.8rem;
}

.vps-resp-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vps-resp-card ul li {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.65;
    padding-left: 18px;
    position: relative;
    margin-bottom: 6px;
}

.vps-resp-card ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    font-size: 0.7rem;
}

.vps-resp-card.client ul li::before    { color: #dc2626; }
.vps-resp-card.fullhosting ul li::before { color: #059669; }

/* Process steps */
.vps-onboarding {
    margin-top: 24px;
}

.vps-onboarding-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #3b82f6;
    margin-bottom: 14px;
}

.vps-steps {
    display: flex;
    gap: 0;
    position: relative;
}

.vps-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: rgba(59, 130, 246, 0.15);
    z-index: 0;
}

.vps-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.vps-step-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    border: 2px solid rgba(59, 130, 246, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 0.85rem;
    color: #3b82f6;
}

.vps-step-dot.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}

.vps-step p {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.4;
    margin: 0;
    padding: 0 4px;
}

.vps-step strong {
    display: block;
    font-size: 0.78rem;
    color: #1e293b;
    margin-bottom: 2px;
}

/* VPS notice box */
.vps-notice {
    margin-top: 24px;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.vps-notice i {
    color: #3b82f6;
    margin-top: 2px;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.vps-notice p {
    font-size: 0.83rem;
    color: #475569;
    line-height: 1.65;
    margin: 0;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .terms-layout {
        grid-template-columns: 1fr;
    }

    .terms-toc {
        position: static;
        display: none; /* hide sidebar on mobile for cleanliness */
    }

    .vps-responsibility-grid {
        grid-template-columns: 1fr;
    }

    .vps-steps {
        flex-direction: column;
        gap: 16px;
    }

    .vps-steps::before {
        display: none;
    }

    .vps-step {
        display: flex;
        align-items: center;
        gap: 14px;
        text-align: left;
    }

    .vps-step-dot {
        flex-shrink: 0;
        margin: 0;
    }
}

@media (max-width: 600px) {
    .terms-hero h1 { font-size: 2rem; }
    .vps-terms-block { padding: 24px 20px; }
}
