/* ============================================================
   PAGES MODERN - Estilos comunes para páginas públicas modernas
   Archivo: assets/css/pages-modern.css
   Versión: 1.0
   Uso: About Us, Privacy Policy, Terms of Use, Pricing
   ============================================================ */

/* === HERO SECTION BASE === */
.page-hero {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 50%, #003d7a 100%);
    color: white;
    padding: 80px 20px 120px;
    margin-top: 0;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
}

/* Patrón de fondo decorativo */
.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

/* Onda decorativa inferior */
.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 100" preserveAspectRatio="none"><path fill="rgb(249, 250, 251)" d="M0,50 C240,90 480,10 720,50 C960,90 1200,10 1440,50 L1440,100 L0,100 Z"></path></svg>') bottom center no-repeat;
    background-size: cover;
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    animation: slideUp 0.8s ease-out;
}

.page-hero-title {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-hero-subtitle {
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    font-weight: 400;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 650px;
    margin: 0 auto 32px;
}

.page-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* === SECCIÓN DE CONTENIDO === */
.content-section {
    padding: 60px 20px;
    background: var(--color-gray-50);
}

.content-section.white-bg {
    background: white;
}

.content-section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 16px;
    text-align: center;
}

.content-section-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-gray-600);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

/* === CARDS MODERNAS === */
.modern-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-gray-200);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    height: 100%;
}

.modern-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.modern-card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 32px;
}

.modern-card-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 12px;
}

.modern-card-text {
    font-size: var(--text-base);
    color: var(--color-gray-600);
    line-height: 1.6;
}

/* === STATS SECTION === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin: 48px 0;
}

.stat-item {
    text-align: center;
    padding: 24px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base);
}

.stat-item:hover {
    transform: translateY(-2px);
}

.stat-number {
    display: block;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: var(--text-base);
    color: var(--color-gray-600);
    font-weight: 500;
}

/* === CONTENT CARD (Legal pages) === */
.content-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-gray-200);
    overflow: hidden;
    margin: -60px auto 60px;
    max-width: 900px;
    position: relative;
    z-index: 10;
}

.content-card-header {
    background: linear-gradient(135deg, var(--color-gray-50), white);
    border-bottom: 2px solid var(--color-primary);
    padding: 32px;
}

.content-card-header h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-gray-900);
    margin: 0;
}

.content-card-body {
    padding: 40px;
    line-height: 1.8;
}

.content-card-body h5 {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-gray-900);
    margin-top: 32px;
    margin-bottom: 16px;
    padding-left: 16px;
    border-left: 4px solid var(--color-primary);
}

.content-card-body p {
    color: var(--color-gray-700);
    margin-bottom: 16px;
}

.content-card-body ul {
    color: var(--color-gray-700);
    padding-left: 24px;
    margin-bottom: 16px;
}

.content-card-body ul li {
    margin-bottom: 8px;
}

.content-card-body a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-base);
}

.content-card-body a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* === FEATURE GRID === */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin: 48px 0;
}

.feature-item {
    text-align: center;
}

.feature-icon-svg {
    width: 48px;
    height: 48px;
    stroke: var(--color-primary);
    margin-bottom: 16px;
}

.feature-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: 12px;
}

.feature-text {
    font-size: var(--text-base);
    color: var(--color-gray-600);
    line-height: 1.6;
}

/* === BADGES === */
.badge-primary {
    display: inline-block;
    background: var(--color-primary-lighter);
    color: var(--color-primary-dark);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
}

.badge-success {
    display: inline-block;
    background: var(--color-success-light);
    color: var(--color-success);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
}

/* === BUTTONS === */
.btn-modern-primary {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 14px 32px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: var(--text-base);
    text-decoration: none;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.btn-modern-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-modern-outline {
    display: inline-block;
    background: transparent;
    color: var(--color-primary);
    padding: 14px 32px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: var(--text-base);
    text-decoration: none;
    transition: all var(--transition-base);
    border: 2px solid var(--color-primary);
    cursor: pointer;
}

.btn-modern-outline:hover {
    background: var(--color-primary);
    color: white;
}

/* === ANIMACIONES === */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .page-hero {
        padding: 60px 20px 100px;
    }

    .content-section {
        padding: 40px 16px;
    }

    .modern-card {
        padding: 24px;
    }

    .content-card {
        margin: -40px 16px 40px;
    }

    .content-card-body {
        padding: 24px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* === UTILIDADES === */
.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }
