/* ==================== VARIABLES CORPORATIVAS ==================== */
:root {
    --primary: #0a2540;      /* Azul profundo corporativo */
    --primary-dark: #051a2c;
    --primary-light: #1a456b;
    --secondary: #0077b6;    /* Azul institucional */
    --accent: #2ecc71;       /* Verde éxito / confianza */
    --accent-light: #27ae60;
    --gray-light: #f8fafc;
    --gray: #64748b;
    --gray-dark: #334155;
    --text: #1e293b;
    --text-light: #f1f5f9;
    --text-dim: #475569;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--gray-light);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.25;
    color: var(--primary);
}

h1 { font-size: 3rem; font-weight: 700; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
}

.text-accent { color: var(--secondary) !important; }

/* ==================== BACKGROUND / NO EFECTOS TECH ==================== */
#bgCanvas, .tech-bg, .hero-particles, .cursor, .cursor-follower {
    display: none;
}

/* ==================== NAVBAR CORPORATIVA ==================== */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary) !important;
}

.brand-icon {
    background: var(--secondary);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-icon i {
    color: white;
    font-size: 1rem;
}

.nav-link {
    color: var(--text) !important;
    font-weight: 500;
    margin: 0 0.25rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--secondary) !important;
}

.nav-link::before {
    display: none;
}

/* ==================== BUTTONS CORPORATIVOS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--secondary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    background: rgba(0, 119, 182, 0.05);
}

.btn-large {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    min-height: auto;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(0, 119, 182, 0.1);
    color: var(--secondary);
    padding: 0.25rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-title {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.hero-text {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    display: none;
}

/* ==================== STATS SECTION ==================== */
.stats-section {
    padding: 3rem 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-card {
    padding: 1rem;
}

.stat-icon {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    color: var(--gray);
    font-size: 0.85rem;
}

/* ==================== SECTIONS GENERALES ==================== */
section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-block;
    background: rgba(0, 119, 182, 0.1);
    color: var(--secondary);
    padding: 0.25rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.section-title {
    margin-bottom: 0.5rem;
}

.title-decoration {
    display: none;
}

.section-text {
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== CARDS (CORPORATIVAS) ==================== */
.util-card, .feature-card, .producto-destacado-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.25s ease;
    text-decoration: none;
    display: block;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.util-card:hover, .feature-card:hover, .producto-destacado-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.util-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 119, 182, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.util-icon i {
    font-size: 1.5rem;
    color: var(--secondary);
}

.util-card h3 {
    margin-bottom: 0.5rem;
}

.util-card p {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.card-footer-link {
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.util-glow {
    display: none;
}

/* Productos destacados */
.producto-destacado-card {
    display: flex;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .producto-destacado-card {
        flex-direction: column;
    }
}

.producto-icon {
    width: 56px;
    height: 56px;
    background: rgba(0, 119, 182, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.producto-icon i {
    font-size: 1.75rem;
    color: var(--secondary);
}

.producto-info h3 {
    margin-bottom: 0.5rem;
}

.producto-info p {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.producto-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.producto-tags span {
    background: var(--gray-light);
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.7rem;
    color: var(--gray);
}

.btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 0.25rem 1rem;
    font-size: 0.8rem;
    color: var(--secondary);
    text-decoration: none;
    transition: all 0.2s;
}

.btn-sm:hover {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    text-align: center;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(0, 119, 182, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--secondary);
}

/* ==================== FAQ ==================== */
.faq-section {
    background: var(--white);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--gray-light);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    border: 1px solid var(--border);
}

.faq-question {
    padding: 1rem 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.faq-question h3 {
    margin: 0;
    flex: 1;
    font-size: 1rem;
}

.faq-question i:first-child {
    color: var(--secondary);
}

.faq-toggle {
    color: var(--gray);
    transition: transform 0.2s;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.25rem;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 1.25rem 1rem 1.25rem;
}

.faq-answer p {
    color: var(--text-dim);
    margin: 0;
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    background: var(--primary);
    color: white;
    text-align: center;
}

.cta-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
}

.cta-section .btn-primary {
    background: white;
    color: var(--primary);
}

.cta-section .btn-primary:hover {
    background: var(--secondary);
    color: white;
}

.cta-section .btn-outline {
    border-color: white;
    color: white;
}

.cta-section .btn-outline:hover {
    background: white;
    color: var(--primary);
    border-color: white;
}

/* ==================== FOOTER ==================== */
footer {
    background: var(--primary-dark);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-logo i {
    font-size: 1.5rem;
    color: var(--accent);
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
}

.footer-links h4, .footer-legal h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-links a, .footer-legal a {
    display: block;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.footer-links a:hover, .footer-legal a:hover {
    color: var(--accent);
}

.copyright {
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    margin-top: 1rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-links a {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background 0.2s;
}

.social-links a:hover {
    background: var(--secondary);
}

/* ==================== SECCIONES NUEVAS (CORPORATIVAS) ==================== */
.guia-resolucion, .codigos-section, .proceso-section, .sanciones-section, .faq-ampliado {
    background: var(--gray-light);
}

.guia-card, .codigo-item, .sanciones-content {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.guia-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 119, 182, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.guia-icon i {
    font-size: 1.5rem;
    color: var(--secondary);
}

.guia-card ul {
    padding-left: 1.25rem;
    color: var(--text-dim);
}

.codigo-tip {
    background: rgba(46, 204, 113, 0.1);
    padding: 1rem;
    border-radius: var(--radius);
    margin-top: 1rem;
}

.proceso-pasos {
    max-width: 800px;
    margin: 0 auto;
}

.paso {
    display: flex;
    gap: 1.5rem;
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
}

.paso-numero {
    width: 40px;
    height: 40px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.proceso-nota {
    background: rgba(0, 119, 182, 0.05);
    border-left: 4px solid var(--secondary);
    padding: 1rem;
    border-radius: var(--radius);
    max-width: 800px;
    margin: 2rem auto 0;
}

.sanciones-lista {
    list-style: none;
    padding: 0;
}

.sanciones-lista li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.sanciones-lista li i {
    color: var(--accent);
}

.sanciones-alerta {
    background: rgba(46, 204, 113, 0.1);
    padding: 1rem;
    border-radius: var(--radius);
    margin-top: 1.5rem;
}

.faq-ampliado-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.faq-ampliado-question {
    padding: 1rem 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.faq-ampliado-question h3 {
    margin: 0;
    flex: 1;
    font-size: 1rem;
}

.faq-ampliado-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.25rem;
    transition: max-height 0.3s ease;
}

.faq-ampliado-item.active .faq-ampliado-answer {
    max-height: 300px;
    padding: 0 1.25rem 1rem 1.25rem;
}

/* ==================== UTILIDADES RESPONSIVE ==================== */
@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
    .paso {
        flex-direction: column;
        text-align: center;
    }
    .paso-numero {
        margin: 0 auto;
    }
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-light);
}

::-webkit-scrollbar-thumb {
    background: var(--gray);
    border-radius: 4px;
}