:root {
    /* Paleta de Colores Neutros Premium */
    --bg-primary: #FAFCFF;       /* Blanco premium con un toque de azul muy sutil */
    --bg-secondary: #F0F4F8;     /* Gris platino suave azulado */
    --bg-dark: #1B243B;          /* Azul marino carbón muy elegante */
    --bg-dark-card: #24304E;     /* Tono azul marino intermedio para tarjetas oscuras */
    --bg-card: #FFFFFF;          /* Blanco puro */
    --text-primary: #1F2937;      /* Gris muy oscuro / Casi negro */
    --text-secondary: #4B5563;    /* Gris slate / Pizarra */
    --text-muted: #9CA3AF;       /* Gris medio */
    --text-light: #F3F4F6;       /* Platino claro para fondos oscuros */
    --text-light-muted: #D1D5DB; /* Gris claro para fondos oscuros */
    
    /* Acentos Elegantes del Logo DPL */
    --accent: #1B365D;           /* Azul Marino Oficial DPL */
    --accent-hover: #132644;     /* Azul Marino Oscuro */
    --accent-light: #EBF1F6;     /* Azul Marino muy claro para fondos suaves */
    --border-color: #E2E8F0;     /* Línea fina clara */
    --border-dark: #2B3A5A;      /* Línea fina oscura */
    --success: #10B981;          /* Verde Esmeralda */
    --error: #EF4444;            /* Rojo suave */
    
    /* Fuentes */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    
    /* Efectos y Sombras */
    --shadow-sm: 0 2px 8px rgba(26, 26, 28, 0.04);
    --shadow-md: 0 10px 30px rgba(26, 26, 28, 0.06);
    --shadow-lg: 0 20px 50px rgba(26, 26, 28, 0.09);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    /* Transiciones */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* Reset y Estilos Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.25;
    color: var(--text-primary);
}

h1 {
    font-size: 2.75rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.25rem;
    letter-spacing: -0.01em;
    position: relative;
    padding-bottom: 12px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

h2.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* Layout y Utilidades */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-bg {
    background-color: var(--bg-secondary);
}

.section-dark {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.section-dark h1, .section-dark h2, .section-dark h3 {
    color: var(--text-light);
}

.section-dark p {
    color: var(--text-light-muted);
}

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

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.gap-sm { gap: 16px; }
.gap-md { gap: 32px; }
.gap-lg { gap: 48px; }

/* Botones Premium */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    letter-spacing: 0.03em;
}

.btn-primary {
    background-color: var(--accent);
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(27, 54, 93, 0.25);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

.btn-dark {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.btn-dark:hover {
    background-color: #24272c;
    transform: translateY(-2px);
}

.btn-light {
    background-color: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-light:hover {
    background-color: var(--bg-secondary);
    transform: translateY(-2px);
}

/* Header / Navegación */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background-color: rgba(250, 252, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 16px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    transition: var(--transition-smooth);
}

.header.scrolled .nav-container {
    padding: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon-dpl {
    display: inline-flex;
    gap: 3px;
    align-items: center;
}

.logo-box {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #FFFFFF !important;
    box-shadow: var(--shadow-sm);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
}

.logo-box-d {
    background-color: var(--accent); /* Azul Marino D */
}

.logo-box-p {
    background-color: #4B5563; /* Gris Carbón P */
}

.logo-box-l {
    background-color: var(--accent); /* Azul Marino L */
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.1;
}

.logo-sub {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Estilos de Logo para Headers en Fondos Oscuros */
.section-dark .logo-title {
    color: var(--text-light);
}
.section-dark .logo-sub {
    color: var(--text-light-muted);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    position: absolute;
    left: 0;
    transition: var(--transition-fast);
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { top: 18px; }

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Footer Premium */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand .logo-title {
    color: var(--text-light);
}

.footer-brand .logo-sub {
    color: var(--text-light-muted);
}

.footer-brand p {
    margin-top: 20px;
    color: var(--text-light-muted);
    font-size: 0.95rem;
    max-width: 320px;
}

.footer-title {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: var(--text-light-muted);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.footer-contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-light-muted);
    font-size: 0.95rem;
}

.footer-contact-item svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 2;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-light-muted);
}

.footer-legal {
    display: flex;
    gap: 24px;
    font-size: 0.85rem;
    color: var(--text-light-muted);
}

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

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 999;
    transition: var(--transition-smooth);
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.4);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* Tarjetas y Contenedores Interactivos */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px;
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(197, 168, 128, 0.3);
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--accent-light);
    color: var(--accent);
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.card:hover .card-icon {
    background-color: var(--accent);
    color: var(--bg-dark);
}

.card h3 {
    margin-bottom: 12px;
    font-size: 1.35rem;
}

.card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Calculadora Tributaria SRI */
.tax-calc-box {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.tax-calc-form {
    padding: 48px;
    background-color: var(--bg-card);
}

.tax-calc-result {
    padding: 48px;
    background-color: var(--accent-light);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-group {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition-fast);
    background-color: var(--bg-primary);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    background-color: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(197, 168, 128, 0.1);
}

.result-placeholder {
    text-align: center;
    color: var(--text-muted);
}

.result-placeholder svg {
    width: 48px;
    height: 48px;
    stroke: var(--text-muted);
    margin-bottom: 16px;
    stroke-width: 1.5;
}

.result-content {
    display: none;
}

.result-content.active {
    display: block;
    animation: fadeIn 0.4s ease forwards;
}

.result-ruc-badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--accent);
    color: var(--bg-dark);
    font-weight: 600;
    border-radius: 30px;
    font-size: 0.8rem;
    margin-bottom: 16px;
}

.result-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.result-dates-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.result-date-item {
    background-color: var(--bg-card);
    padding: 16px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--accent);
    box-shadow: var(--shadow-sm);
}

.result-date-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.result-date-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 4px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 32px;
    left: 32px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success {
    border-left: 4px solid var(--success);
}

.toast-error {
    border-left: 4px solid var(--error);
}

/* Animaciones CSS */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade {
    animation: fadeIn 0.8s ease forwards;
}

.animate-slide {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Estilos Específicos de Páginas */

/* Hero de Inicio */
.hero {
    position: relative;
    padding: 180px 0 120px;
    background-color: var(--bg-secondary);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 60px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: var(--accent-light);
    color: var(--accent-hover);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 30px;
    margin-bottom: 24px;
    border: 1px solid rgba(197, 168, 128, 0.2);
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 36px;
}

.hero-img-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 480px;
    background-color: #ddd;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
    opacity: 0.85;
}

.hero-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, rgba(26,26,28,0.05), rgba(26,26,28,0.2));
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-hover);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-top: 6px;
}

/* Grid de Servicios */
.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

/* Sección de Valores (Inicio) */
.values-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.value-card {
    background-color: var(--bg-card);
    padding: 36px;
    border-radius: var(--radius-md);
    border-top: 4px solid var(--accent);
    box-shadow: var(--shadow-sm);
}

.value-card h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

/* Cabeceras de Página (Subpáginas) */
.page-header {
    background-color: var(--bg-secondary);
    padding: 160px 0 80px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 12px;
}

.page-header-breadcrumbs {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.page-header-breadcrumbs a:hover {
    color: var(--accent);
}

/* Detalle Sobre Mí */
.profile-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: start;
}

.profile-img-box {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 520px;
    background-color: #ddd;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(26,26,28,0) 60%, rgba(26,26,28,0.4) 100%);
}

.profile-content h2::after {
    display: none;
}

.profile-content-sub {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--accent-hover);
    margin-bottom: 24px;
}

.profile-text {
    margin-bottom: 32px;
}

.profile-text p {
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.credentials-section {
    margin-top: 48px;
}

.credentials-title {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.credentials-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--bg-card);
    padding: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.credential-icon {
    color: var(--accent);
    flex-shrink: 0;
}

.credential-text {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Detalle Servicios en servicios.html */
.services-detail-section {
    padding: 80px 0;
}

.service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 100px;
}

.service-row:nth-child(even) {
    direction: rtl;
}

.service-row:nth-child(even) .service-row-content {
    direction: ltr;
}

.service-row:last-child {
    margin-bottom: 0;
}

.service-row-img-box {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 380px;
    background-color: #ddd;
}

.service-row-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-row-content h3 {
    font-size: 1.85rem;
    margin-bottom: 16px;
}

.service-row-content h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--accent);
    margin-top: 8px;
}

.service-bullets {
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.service-bullet {
    display: flex;
    align-items: start;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.service-bullet svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 2.5;
    margin-top: 2px;
}

/* Blog e Impuestos */
.blog-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.filter-btn {
    background: none;
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.blog-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-smooth);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.blog-img-box {
    height: 220px;
    background-color: #ddd;
    overflow: hidden;
    position: relative;
}

.blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.blog-card:hover .blog-img {
    transform: scale(1.05);
}

.blog-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: rgba(26,26,28,0.85);
    backdrop-filter: blur(4px);
    color: var(--text-light);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.blog-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.blog-title {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--text-primary);
}

.blog-card:hover .blog-title {
    color: var(--accent-hover);
}

.blog-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.blog-link svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    transition: var(--transition-fast);
}

.blog-card:hover .blog-link svg {
    transform: translateX(4px);
}

/* Contacto e Información */
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: start;
}

.contact-card-box {
    background-color: var(--bg-card);
    padding: 48px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.contact-card-box h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.contact-info-list {
    margin-top: 32px;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    background-color: var(--accent-light);
    color: var(--accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.contact-info-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.contact-info-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-top: 4px;
}

.contact-map-wrapper {
    margin-top: 40px;
    height: 250px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.contact-map-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    color: var(--text-secondary);
}

.contact-map-placeholder svg {
    width: 36px;
    height: 36px;
    stroke: var(--accent);
    stroke-width: 2;
    fill: none;
    margin-bottom: 12px;
}

/* Responsividad general */
@media (max-width: 1024px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.85rem; }
    .hero-content h1 { font-size: 2.85rem; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-img-container { height: 350px; }
    .profile-grid { grid-template-columns: 1fr; gap: 40px; }
    .profile-img-box { height: 400px; }
    .service-row { grid-template-columns: 1fr; gap: 40px; margin-bottom: 60px; }
    .service-row:nth-child(even) { direction: ltr; }
    .service-row-img-box { height: 300px; }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-primary);
        flex-direction: column;
        padding: 48px 24px;
        align-items: flex-start;
        gap: 24px;
        transition: var(--transition-smooth);
        border-top: 1px solid var(--border-color);
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .tax-calc-box {
        grid-template-columns: 1fr;
    }
    
    .tax-calc-result {
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
    
    .blog-filters {
        flex-wrap: wrap;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
}

/* ==========================================================================
   Sección: Trámites por Institución (Adaptación de la Infografía Oficial)
   ========================================================================== */
.instituciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.inst-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 32px;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.inst-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: currentColor;
}

/* Fondos sutiles interactivos según la marca de la institución */
.inst-card.c-contables:hover { background-color: rgba(27, 54, 93, 0.02); }
.inst-card.c-sri:hover { background-color: rgba(56, 189, 248, 0.02); }
.inst-card.c-supercia:hover { background-color: rgba(52, 211, 153, 0.02); }
.inst-card.c-iess:hover { background-color: rgba(251, 191, 36, 0.02); }
.inst-card.c-trabajo:hover { background-color: rgba(248, 113, 113, 0.02); }
.inst-card.c-uafe:hover { background-color: rgba(99, 102, 241, 0.02); }
.inst-card.c-sercop:hover { background-color: rgba(236, 72, 153, 0.02); }
.inst-card.c-salud:hover { background-color: rgba(14, 165, 233, 0.02); }
.inst-card.c-bomberos:hover { background-color: rgba(239, 68, 68, 0.02); }
.inst-card.c-municipio:hover { background-color: rgba(16, 185, 129, 0.02); }

.inst-card h4 {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 14px;
}

.inst-card h4 svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    flex-shrink: 0;
}

.inst-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.inst-item {
    font-size: 1.02rem;
    color: var(--text-primary);
    position: relative;
    padding-left: 22px;
    line-height: 1.5;
}

.inst-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
}

/* Colores específicos de borde superior (basados en la infografía original) */
.inst-card.c-contables { border-top: 5px solid var(--accent); }
.inst-card.c-contables .inst-item::before { color: var(--accent); }
.inst-card.c-contables h4 { color: var(--accent); }

.inst-card.c-sri { border-top: 5px solid #38BDF8; }
.inst-card.c-sri .inst-item::before { color: #38BDF8; }
.inst-card.c-sri h4 { color: #0284C7; }

.inst-card.c-supercia { border-top: 5px solid #34D399; }
.inst-card.c-supercia .inst-item::before { color: #34D399; }
.inst-card.c-supercia h4 { color: #059669; }

.inst-card.c-iess { border-top: 5px solid #FBBF24; }
.inst-card.c-iess .inst-item::before { color: #FBBF24; }
.inst-card.c-iess h4 { color: #D97706; }

.inst-card.c-trabajo { border-top: 5px solid #F87171; }
.inst-card.c-trabajo .inst-item::before { color: #F87171; }
.inst-card.c-trabajo h4 { color: #DC2626; }

.inst-card.c-uafe { border-top: 5px solid #6366F1; }
.inst-card.c-uafe .inst-item::before { color: #6366F1; }
.inst-card.c-uafe h4 { color: #4F46E5; }

.inst-card.c-salud { border-top: 5px solid #0EA5E9; }
.inst-card.c-salud .inst-item::before { color: #0EA5E9; }
.inst-card.c-salud h4 { color: #0284C7; }

.inst-card.c-municipio { border-top: 5px solid #10B981; }
.inst-card.c-municipio .inst-item::before { color: #10B981; }
.inst-card.c-municipio h4 { color: #059669; }

.inst-card.c-sercop { border-top: 5px solid #EC4899; }
.inst-card.c-sercop .inst-item::before { color: #EC4899; }
.inst-card.c-sercop h4 { color: #DB2777; }

.inst-card.c-bomberos { border-top: 5px solid #EF4444; }
.inst-card.c-bomberos .inst-item::before { color: #EF4444; }
.inst-card.c-bomberos h4 { color: #DC2626; }


/* Para pantallas móviles, ajustar el espacio y columnas */
@media (max-width: 768px) {
    .instituciones-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .inst-card {
        padding: 24px;
    }
}

/* ==========================================================================
   Sección: Páginas de Artículos del Blog (SEO & Long Form)
   ========================================================================== */
.blog-article-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 48px;
    align-items: start;
}

.article-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.article-content h2 {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    color: var(--accent);
    margin-top: 36px;
    position: relative;
    padding-bottom: 8px;
}

.article-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent);
}

.article-content h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.35rem;
    color: var(--text-primary);
    margin-top: 24px;
}

.article-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.article-content ul, .article-content ol {
    padding-left: 24px;
    margin: 8px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.article-content li {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.article-content ul li {
    list-style-type: square;
}

.article-content ol li {
    list-style-type: decimal;
}

.article-alert {
    background-color: var(--accent-light);
    border-left: 4px solid var(--accent);
    padding: 24px;
    border-radius: var(--radius-sm);
    margin: 16px 0;
}

.article-alert h4 {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--accent);
    margin-bottom: 8px;
}

.article-alert p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--accent-hover);
    margin-bottom: 0;
}

.article-sidebar {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sidebar-card {
    background-color: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card h3 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--accent);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.sidebar-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.sidebar-card .profile-mini {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sidebar-card .profile-mini img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.sidebar-card .profile-mini-info h4 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.sidebar-card .profile-mini-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.sidebar-contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-contact-item {
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.sidebar-contact-item svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 2;
}

/* Responsividad para artículos de blog */
@media (max-width: 1024px) {
    .blog-article-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .article-sidebar {
        position: static;
    }
}

/* ==========================================================================
   Sección: Testimonios y Prueba Social Premium
   ========================================================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.testimonial-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 40px;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(27, 54, 93, 0.15);
}

.testimonial-stars {
    color: #F59E0B; /* Dorado ámbar */
    font-size: 1.25rem;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    font-style: italic;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
    border: 2px solid var(--accent);
}

.testimonial-user-info h4 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.testimonial-user-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Sección: Preguntas Frecuentes (FAQs) Interactivas
   ========================================================================== */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
}

.faq-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.faq-item:hover {
    border-color: rgba(27, 54, 93, 0.15);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 24px;
    text-align: left;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: var(--transition-fast);
}

.faq-question:hover {
    color: var(--accent);
}

.faq-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background-color: var(--bg-secondary);
}

.faq-answer p {
    padding: 0 24px 24px 24px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

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

.faq-item.active .faq-answer {
    max-height: 500px; /* Suficiente para las respuestas */
}

/* Efecto de Vidrio Esmerilado (Glassmorphism) para Header al hacer Scroll */
.header.scrolled {
    background-color: rgba(250, 252, 255, 0.85) !important;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
}

/* ==========================================================================
   Buscador Inteligente y Asistente de Trámites (Soluciones Hub)
   ========================================================================== */
.hub-container {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    padding: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.search-box-wrapper {
    margin-bottom: 32px;
}

.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 20px;
    width: 24px;
    height: 24px;
    color: var(--accent);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 18px 24px 18px 56px !important; /* Padding izquierdo para el icono */
    font-size: 1.1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md) !important;
    background-color: var(--bg-primary);
    transition: var(--transition-fast);
}

.search-input:focus {
    border-color: var(--accent);
    background-color: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(27, 54, 93, 0.08);
}

.search-clear-btn {
    position: absolute;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.search-clear-btn:hover {
    color: var(--text-primary);
}

/* Pestañas de Instituciones */
.hub-tabs-container {
    margin-bottom: 36px;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}

.hub-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    min-width: max-content;
}

.hub-tab {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 30px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.hub-tab:hover {
    border-color: var(--text-muted);
    background-color: var(--border-color);
}

.hub-tab.active {
    background-color: var(--accent);
    color: #FFFFFF !important;
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(27, 54, 93, 0.2);
}

/* Resultados y Grid de Soluciones */
.hub-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 24px;
}

.hub-card {
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
    min-height: 220px;
    box-shadow: var(--shadow-sm);
}

.hub-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.hub-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
    margin-bottom: 12px;
}

.hub-card-category-badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

/* Colores de badges de categoría */
.cat-contables { background-color: var(--accent-light); color: var(--accent); }
.cat-sri { background-color: #E0F2FE; color: #0369A1; }
.cat-supercia { background-color: #D1FAE5; color: #047857; }
.cat-iess { background-color: #FEF3C7; color: #B45309; }
.cat-trabajo { background-color: #FEE2E2; color: #B91C1C; }
.cat-sercop { background-color: #FCE7F3; color: #BE185D; }
.cat-permisos { background-color: #E0F2FE; color: #0369A1; }
.cat-municipio { background-color: #D1FAE5; color: #047857; }
.cat-uafe { background-color: #EEF2FF; color: #4338CA; }

.hub-card-title {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.hub-card-body {
    flex-grow: 1;
    margin-bottom: 20px;
}

.hub-card-body p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.hub-card-body strong {
    color: var(--text-primary);
}

.hub-card-footer {
    display: flex;
    justify-content: flex-end;
}

.hub-card-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #25D366;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
    transition: var(--transition-fast);
}

.hub-card-whatsapp-btn:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(37, 211, 102, 0.3);
}

.hub-card-whatsapp-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Estado Vacío de Búsqueda */
.hub-empty-state {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-secondary);
}

.hub-empty-state svg {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.hub-empty-state h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.hub-empty-state p {
    font-size: 0.95rem;
    max-width: 500px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .hub-container {
        padding: 24px;
    }
    .hub-tab {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

