/* ============================================================
   POLITICAS.CSS · Estilos exclusivos para políticas.html
   ============================================================ */

/* ----- RESET Y BASE ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
    background: #0b0b16;
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

a {
    color: #e2b714;
    text-decoration: none;
    transition: color 0.3s, border-color 0.3s;
}

a:hover {
    color: #ffffff;
}

/* ----- HEADER ----- */
.main-header {
    background: linear-gradient(135deg, #0f0f1f 0%, #1a1a2e 100%);
    border-bottom: 2px solid #e2b714;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(226, 183, 20, 0.12);
    border: 1px solid rgba(226, 183, 20, 0.3);
    border-radius: 30px;
    color: #e2b714;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: rgba(226, 183, 20, 0.25);
    border-color: #e2b714;
    color: #fff;
    transform: translateX(-3px);
}

.back-button svg {
    flex-shrink: 0;
}

.header-title h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, #e2b714, #f5d742);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ----- CONTENEDOR PRINCIPAL ----- */
.policy-container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    flex: 1;
    width: 100%;
}

/* --- Encabezado de políticas --- */
.policy-header {
    text-align: center;
    margin-bottom: 3rem;
}

.badge {
    display: inline-block;
    background: rgba(226, 183, 20, 0.15);
    color: #e2b714;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid rgba(226, 183, 20, 0.2);
    margin-bottom: 0.8rem;
}

.policy-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}

.policy-header .subtitle {
    color: #aaa;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Grid de tarjetas --- */
.policy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.8rem;
}

.policy-card {
    background: linear-gradient(145deg, #131325, #1a1a30);
    border-radius: 16px;
    padding: 2rem 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.policy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #e2b714, #f5d742);
    opacity: 0.6;
}

.policy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(226, 183, 20, 0.08);
    border-color: rgba(226, 183, 20, 0.15);
}

.policy-card.full-width {
    grid-column: 1 / -1;
}

.card-icon {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    display: inline-block;
}

.policy-card h3 {
    color: #e2b714;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    letter-spacing: -0.3px;
}

.policy-card p {
    color: #ccc;
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.policy-card p:last-child {
    margin-bottom: 0;
}

.policy-card a {
    color: #e2b714;
    border-bottom: 1px dotted rgba(226, 183, 20, 0.3);
}

.policy-card a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

.policy-card strong {
    color: #fff;
}

/* --- Botón volver --- */
.back-wrapper {
    text-align: center;
    margin-top: 3rem;
}

.back-link {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    background: transparent;
    color: #e2b714;
    border: 2px solid #e2b714;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.back-link:hover {
    background: #e2b714;
    color: #0b0b16;
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(226, 183, 20, 0.2);
}

/* ----- FOOTER MEJORADO ----- */
.main-footer {
    background: linear-gradient(180deg, #0f0f1f 0%, #0b0b16 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 3rem;
    padding: 3rem 1.5rem 1.5rem;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}

.footer-column h4 {
    color: #e2b714;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #e2b714;
    border-radius: 2px;
}

.footer-column p {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: #ccc;
    font-size: 0.95rem;
    transition: color 0.3s, padding-left 0.3s;
    display: inline-block;
}

.footer-column ul li a:hover {
    color: #e2b714;
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1100px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: #e2b714;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .back-button {
        justify-content: center;
    }

    .header-title h1 {
        font-size: 1.3rem;
    }

    .policy-header h2 {
        font-size: 1.8rem;
    }

    .policy-grid {
        grid-template-columns: 1fr;
    }

    .policy-card {
        padding: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .footer-column h4::after {
        left: 0;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .back-link {
        width: 100%;
        text-align: center;
    }
}