/**
 * content-pages.css
 * Estilos para páginas informativas de Zikpic
 * Usado en: terms.php, privacy.php y otras páginas de contenido
 */

/* Variables CSS definidas en main.css */
:root {
    --zikpic-primary: #81d742;
    --zikpic-secondary: #3ac403;
    --text-dark: #2c3e50;
    --text-gray: #6c757d;
    --bg-light: #f8f9fa;
    --border-color: #e9ecef;
}

/* Contenedor principal */
.terms-main,
.privacy-main {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Encabezado del documento */
.document-header {
    text-align: center;
    margin-bottom: 40px;
    /* padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color); */
}

.document-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.last-updated {
    color: var(--text-gray);
    font-size: 0.95rem;
    background: var(--bg-light);
    padding: 8px 20px;
    border-radius: 20px;
    display: inline-block;
}

.last-updated i {
    color: var(--zikpic-primary);
    margin-right: 5px;
}

/* Tabla de contenidos */
.toc {
    background: var(--bg-light);
    padding: 25px 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    border-left: 4px solid var(--zikpic-primary);
}

.toc h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 600;
}

.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc li {
    margin-bottom: 10px;
}

.toc a {
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s;
    display: block;
    padding: 5px 0;
}

.toc a:hover,
.toc a.active {
    color: var(--zikpic-primary);
    padding-left: 10px;
}

.toc a.active {
    font-weight: 600;
}

/* Secciones de contenido */
.content-section {
    margin-bottom: 50px;
    padding-top: 20px;
}

.content-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--zikpic-primary);
}

.content-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 25px 0 15px 0;
}

.content-section p {
    margin-bottom: 15px;
    color: var(--text-gray);
    line-height: 1.8;
    /* text-align: justify; */
}

.content-section ul {
    margin: 15px 0;
    padding-left: 30px;
}

.content-section li {
    margin-bottom: 10px;
    color: var(--text-gray);
    line-height: 1.7;
}

.content-section strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Cajas de resaltado */
.highlight-box {
    background: #f8fdf4;
    border-left: 4px solid var(--zikpic-primary);
    padding: 20px;
    margin: 25px 0;
    border-radius: 4px;
}

.highlight-box strong {
    color: var(--zikpic-secondary);
}

/* Resumen de privacidad (específico para privacy.php) */
.privacy-summary {
    background: linear-gradient(135deg, var(--zikpic-primary) 0%, var(--zikpic-secondary) 100%);
    color: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

.privacy-summary h2 {
    color: white;
    border: none;
    padding: 0;
    margin-bottom: 15px;
}

.privacy-summary p {
    color: rgba(255, 255, 255, 0.95);
}

/* Tabla de datos (específico para privacy.php) */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border: 1px solid var(--border-color);
}

.data-table th,
.data-table td {
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    text-align: left;
}

.data-table th {
    background: var(--bg-light);
    color: var(--text-dark);
    font-weight: 600;
}

.data-table td {
    color: var(--text-gray);
}

/* Grid de derechos (específico para privacy.php) */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.right-card {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--zikpic-primary);
    transition: transform 0.3s ease;
}

.right-card:hover {
    transform: translateY(-2px);
}

.right-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.right-card p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.right-card i {
    color: var(--zikpic-primary);
    margin-right: 8px;
    font-size: 1.2rem;
}

/* Sección de contacto */
.contact-section {
    background: linear-gradient(135deg, var(--zikpic-primary) 0%, var(--zikpic-secondary) 100%);
    color: white;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    margin: 50px 0;
}

.contact-section h2 {
    color: white;
    border: none;
    padding: 0;
    margin-bottom: 20px;
}

.contact-section p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 15px;
}

.contact-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: opacity 0.3s;
    display: inline-block;
    margin: 0 15px;
}

.contact-link:hover {
    opacity: 0.8;
}

.contact-link i {
    margin-right: 8px;
}

/* Enlaces internos */
.terms-main a:not(.contact-link),
.privacy-main a:not(.contact-link) {
    color: var(--zikpic-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.terms-main a:not(.contact-link):hover,
.privacy-main a:not(.contact-link):hover {
    color: var(--zikpic-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .terms-main,
    .privacy-main {
        margin: 20px auto;
        padding: 0 15px;
    }

    .document-header h1 {
        font-size: 2rem;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    .content-section h3 {
        font-size: 1.2rem;
    }

    .toc {
        padding: 20px;
    }

    .contact-section {
        padding: 30px 20px;
    }

    .rights-grid {
        grid-template-columns: 1fr;
    }

    .contact-link {
        display: block;
        margin: 10px 0;
    }
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .toc a,
    .contact-link,
    .right-card,
    .terms-main a,
    .privacy-main a {
        transition: none;
    }
}

/* Estilos de impresión */
@media print {
    .terms-main,
    .privacy-main {
        max-width: 100%;
        margin: 0;
        padding: 20px;
    }

    .contact-section,
    .toc {
        page-break-inside: avoid;
    }

    .content-section {
        page-break-inside: avoid;
    }

    a {
        text-decoration: underline;
        color: #000;
    }

    .highlight-box {
        border: 1px solid #ccc;
        background: #f5f5f5;
    }
}

/* ============================================
   ESTILOS ESPECÍFICOS PARA ABOUT.PHP
   ============================================ */

/* Contenedor about */
.about-main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Sección hero de about */
.hero-section {
    text-align: center;
/*     margin-bottom: 60px;
    padding: 60px 20px; */
    background: white;
    border-radius: 20px;
    /* box-shadow: 0 8px 30px rgba(0,0,0,0.1); */
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.hero-section .subtitle {
    font-size: 1.05rem;
    color: var(--text-gray);
    margin-bottom: 30px;
}

/* Estadísticas hero */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--zikpic-primary);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* Grid de características */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #f4f4f4 100%);
    transition: transform 0.3s;
    border-left: solid 4px var(--zikpic-primary);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--zikpic-primary);
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-description {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Sección CTA */
.cta-section {
    background: linear-gradient(135deg, var(--zikpic-primary) 0%, var(--zikpic-secondary) 100%);
    color: white;
    padding: 60px;
    border-radius: 20px;
    text-align: center;
    margin: 60px 0;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: white;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    background: white;
    color: var(--zikpic-primary);
    padding: 16px 32px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Sección de partner */
.partner-section {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 50px;
    border-radius: 20px;
}

.partner-section h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.partner-link {
    color: #f1f8ff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.partner-link:hover {
    text-decoration: underline;
}

/* Caja de definición especial */
.definition-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 5px solid #2196f3;
    padding: 30px;
    margin: 30px 0;
    border-radius: 10px;
}

.definition-box h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1565c0;
    margin-bottom: 20px;
}

.definition-box p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

.definition-box strong {
    color: #1565c0;
    font-weight: 700;
}

/* Grid de divisiones */
.divisions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.division-card {
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.division-card.zikstart {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
}

.division-card.zikpro {
    background: linear-gradient(135deg, var(--zikpic-primary) 0%, var(--zikpic-secondary) 100%);
}

.division-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.division-card p {
    margin-bottom: 20px;
}

.division-card ul {
    text-align: left;
    list-style: none;
    padding: 0;
}

.division-card li {
    margin-bottom: 10px;
}

/* Responsive para about */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .cta-section {
        padding: 40px 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .definition-box {
        padding: 20px;
    }

    .definition-box h3 {
        font-size: 1.5rem;
    }
}
