﻿/* ==========================================================================
   ESTILOS GLOBALES - GESTIÓN DIGITAL
   Dominio: www.gestiondigitalok.com
   Identidad Visual: Deep Teal, Medium Blue y Gold/Amber (Light-themed)
   ========================================================================== */

/* Importación de tipografías de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Paleta de Colores Nueva (Tema Oscuro Premium) */
    --navy-deep: #030814;       /* Azul marino ultra oscuro para fondo principal y footer */
    --navy-dark: #071120;       /* Azul marino oscuro para tarjetas y secciones secundarias */
    --navy-medium: #12243d;     /* Azul medio para bordes y acentos */
    --blue-vibrant: #00a2ff;    /* Cyan/Azul digital brillante para botones, resaltados y enlaces (burocracia) */
    --blue-light: rgba(0, 162, 255, 0.05); /* Fondo translúcido para hovers */
    --blue-gradient: linear-gradient(135deg, #071120, #00a2ff);
    
    --orange-accent: #f4b41a;   /* Dorado/ámbar para acentos ("Digital", badges, checkmarks) */
    --orange-hover: #d99414;
    --orange-gradient: linear-gradient(135deg, #f4b41a, #d99414);
    --orange-shadow: rgba(244, 180, 26, 0.25);

    /* Colores de Fondo y Textos */
    --bg-light: #071120;        /* Gris azulado oscuro muy limpio */
    --bg-white: #030814;        /* Fondo principal oscuro */
    --text-white: #ffffff;
    --text-dark: #ffffff;       /* Texto principal en blanco */
    --text-muted-dark: #94a3b8;  /* Gris pizarra claro para párrafos secundarios */
    --text-muted-light: #64748b; /* Gris claro para metadatos */
    --border-color: #1e293b;    /* Bordes sutiles en los contenedores */
    --border-dark: rgba(255, 255, 255, 0.1);

    /* Tipografías */
    --font-title: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transiciones y Sombras */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 25px rgba(0, 132, 182, 0.12);

    /* Medidas de Contenedores */
    --max-width: 1200px;
    --header-height: 80px;
}

/* Reset y Estilos Generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.25;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Barra de Scroll Personalizada */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
    background: var(--navy-deep);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--blue-vibrant);
}

/* Contenedor Común */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Secciones Oscuras (Contraste) */
.dark-section {
    background-color: var(--navy-deep) !important;
    color: var(--text-white) !important;
}

.dark-section h1, .dark-section h2, .dark-section h3, .dark-section h4 {
    color: var(--text-white) !important;
}

.dark-section p {
    color: #cbd5e1 !important;
}

/* ==========================================================================
   COMPONENTES REUTILIZABLES (Botones, Tarjetas, Badges)
   ========================================================================== */

/* Botones Premium */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease-out;
}

.btn:active::after {
    transform: translate(-50%, -50%) scale(1);
    transition: 0s;
}

/* Botón Primario Dorado (Llamado a la acción rápido) */
.btn-primary {
    background: var(--orange-gradient);
    color: var(--text-white);
    box-shadow: 0 8px 20px var(--orange-shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(217, 148, 20, 0.45);
}

/* Botón Secundario Azul */
.btn-secondary {
    background: var(--blue-gradient);
    color: var(--text-white);
    box-shadow: 0 8px 20px rgba(0, 132, 182, 0.15);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 132, 182, 0.35);
}

/* Botón de WhatsApp */
.btn-whatsapp {
    background-color: #25D366;
    color: var(--text-white);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.15);
}

.btn-whatsapp:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(37, 211, 102, 0.35);
}

/* Botón Delineado (Outline) */
.btn-outline {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--navy-medium);
}

.btn-outline:hover {
    border-color: var(--blue-vibrant);
    background: rgba(0, 132, 182, 0.05);
    color: var(--blue-vibrant);
    transform: translateY(-2px);
}

.dark-section .btn-outline {
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.2);
}

.dark-section .btn-outline:hover {
    border-color: var(--blue-vibrant);
    background: rgba(0, 132, 182, 0.1);
    color: var(--blue-vibrant);
}

/* Tarjetas (Cards) */
.card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* Badges de Confianza */
.badge-time {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: rgba(217, 148, 20, 0.1);
    color: var(--orange-accent);
    margin-bottom: 16px;
}

/* Títulos de Sección */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 56px auto;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-white);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted-dark);
}

.highlight-text {
    background: var(--blue-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   HEADER / NAVEGACIÓN
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
}

.header.scrolled {
    height: 70px;
    box-shadow: var(--shadow-md);
    background-color: #ffffff;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Logotipo SVG Moderno "GD" (Réplica exacta del Mockup) */
.logo-svg {
    width: 48px;
    height: 40px;
}

.logo-text {
    font-family: var(--font-title);
    font-size: 1.45rem;
    letter-spacing: -0.02em;
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-gestion {
    font-weight: 800;
    color: var(--text-white);
}

.logo-digital {
    font-weight: 500;
    color: var(--blue-vibrant);
}

.logo-sub {
    font-size: 0.6rem;
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text-muted-light);
    letter-spacing: 0.05em;
    margin-top: 2px;
}

/* Menú de Navegación */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: #030814;
    position: relative;
    padding: 8px 0;
}

.nav-link:hover {
    color: var(--blue-vibrant);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--blue-vibrant);
    transition: var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

/* Botón Hamburguesa */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1100;
    padding: 8px;
}

.hamburger-line {
    display: block;
    width: 26px;
    height: 3px;
    margin: 5px auto;
    background-color: #030814;
    border-radius: 3px;
    transition: var(--transition-smooth);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.03;
    mix-blend-mode: multiply;
    z-index: 1;
}

/* Gradientes ambientales sutiles en la Hero Section */
.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 162, 255, 0.15) 0%, rgba(3, 8, 20, 0) 70%);
    top: -150px;
    right: -100px;
    z-index: 2;
}

.hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(244, 180, 26, 0.06) 0%, rgba(3, 8, 20, 0) 70%);
    bottom: -200px;
    left: -150px;
    z-index: 2;
}

.hero-grid {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(0, 132, 182, 0.06);
    border: 1px solid rgba(0, 132, 182, 0.12);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--blue-vibrant);
    margin-bottom: 24px;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--orange-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--orange-accent);
    animation: pulse 2s infinite;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted-dark);
    margin-bottom: 36px;
    max-width: 550px;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

/* Badges de Confianza */
.trust-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
}

.trust-badge-icon {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 132, 182, 0.08);
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

/* Ilustración de la Hero a la derecha */
.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1s ease-out;
}

.hero-image-frame {
    width: 100%;
    max-width: 480px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 6px solid var(--bg-white);
    position: relative;
}

.hero-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-image-frame:hover img {
    transform: scale(1.03);
}

/* Floating Card de Estadísticas */
.floating-stat-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background-color: var(--text-white);
    border-radius: 16px;
    padding: 16px 24px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-white);
}

.floating-stat-number {
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--orange-accent);
}

.floating-stat-text {
    font-size: 0.75rem;
    line-height: 1.3;
    color: #e2e8f0;
    max-width: 100px;
}

/* ==========================================================================
   SECCIÓN DE SERVICIOS
   ========================================================================== */
.services-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

/* Borde superior iluminado en hover */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--orange-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(217, 148, 20, 0.25);
    background-color: var(--bg-white);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card-top {
    width: 100%;
}

.service-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background-color: var(--blue-light);
    color: var(--blue-vibrant);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon-box {
    transform: rotate(5deg) scale(1.1);
    background-color: var(--orange-accent);
    color: var(--text-white);
}

.service-card h3 {
    font-size: 1.25rem;
    color: var(--text-white);
    margin-bottom: 20px;
}

.service-list {
    margin-bottom: 32px;
}

.service-item {
    font-size: 0.9rem;
    color: var(--text-muted-dark);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.service-item-icon {
    color: var(--orange-accent);
    font-weight: bold;
    margin-top: 2px;
}

.service-card .btn {
    width: 100%;
    font-size: 0.85rem;
    padding: 12px 20px;
}

/* ==========================================================================
   SECCIÓN "CÓMO FUNCIONA"
   ========================================================================== */
.how-it-works-section {
    padding: 100px 0;
    background-color: var(--bg-light);
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

/* Línea conectora */
.how-grid::after {
    content: '';
    position: absolute;
    top: 55px;
    left: 15%;
    width: 70%;
    height: 3px;
    background-color: var(--border-color);
    z-index: 1;
}

.how-step {
    text-align: center;
    position: relative;
    z-index: 2;
}

.how-icon-wrapper {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background-color: var(--bg-white);
    border: 3px solid var(--border-color);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 24px auto;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    position: relative;
}

.how-step-num {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--orange-gradient);
    color: var(--text-white);
    font-family: var(--font-title);
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(217, 148, 20, 0.3);
}

.how-step:hover .how-icon-wrapper {
    transform: translateY(-5px);
    border-color: var(--blue-vibrant);
    box-shadow: var(--shadow-glow);
}

.how-step h3 {
    font-size: 1.25rem;
    color: var(--text-white);
    margin-bottom: 12px;
}

.how-step p {
    font-size: 0.95rem;
    color: var(--text-muted-dark);
    max-width: 280px;
    margin: 0 auto;
}

/* ==========================================================================
   SECCIÓN FAQ
   ========================================================================== */
.faq-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.faq-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-question {
    width: 100%;
    padding: 24px;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: var(--transition-fast);
}

.faq-question:hover {
    color: var(--blue-vibrant);
}

.faq-icon {
    width: 24px;
    height: 24px;
    background-color: var(--blue-light);
    color: var(--blue-vibrant);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.faq-item.active {
    border-color: var(--blue-vibrant);
    box-shadow: 0 10px 20px rgba(0, 132, 182, 0.04);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    background-color: var(--orange-accent);
    color: var(--text-white);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
    background-color: var(--bg-light);
}

.faq-answer-content {
    padding: 24px;
    font-size: 0.95rem;
    color: var(--text-muted-dark);
    border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   BLOG / SECCIÓN DE SEO
   ========================================================================== */
.blog-hero {
    padding-top: calc(var(--header-height) + 50px);
    padding-bottom: 50px;
    background-color: var(--text-white);
    color: var(--text-white);
    text-align: center;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.post-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 132, 182, 0.2);
}

.post-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-image {
    transform: scale(1.05);
}

.post-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: var(--orange-accent);
    color: var(--text-white);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.post-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.post-meta {
    font-size: 0.8rem;
    color: var(--text-muted-light);
    margin-bottom: 12px;
}

.post-title {
    font-size: 1.25rem;
    color: var(--text-white);
    margin-bottom: 12px;
    line-height: 1.35;
}

.post-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted-dark);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-link {
    color: var(--blue-vibrant);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.post-link:hover {
    color: var(--orange-accent);
}

/* Filtros de Blog */
.blog-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 20px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-white);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--blue-vibrant);
    color: var(--text-white);
    border-color: var(--blue-vibrant);
    box-shadow: 0 4px 12px rgba(0, 132, 182, 0.2);
}

/* ==========================================================================
   PÁGINA DETALLE ARTÍCULO (BLOG POST TEMPLATE)
   ========================================================================== */
.post-layout {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.post-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.post-header {
    margin-bottom: 40px;
}

.post-header-tag {
    display: inline-block;
    background-color: var(--blue-light);
    color: var(--blue-vibrant);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.post-header h1 {
    font-size: 2.8rem;
    color: var(--text-white);
    line-height: 1.2;
    margin-bottom: 20px;
}

.post-header-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--text-muted-dark);
}

.post-featured-image {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 48px;
    box-shadow: var(--shadow-md);
}

.post-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted-dark);
}

.post-body h2 {
    font-size: 1.8rem;
    color: var(--text-white);
    margin-top: 40px;
    margin-bottom: 16px;
}

.post-body h3 {
    font-size: 1.4rem;
    color: var(--text-white);
    margin-top: 32px;
    margin-bottom: 12px;
}

.post-body p {
    margin-bottom: 24px;
}

.post-body ul, .post-body ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.post-body li {
    margin-bottom: 10px;
}

/* Cita destacada */
.post-quote {
    border-left: 4px solid var(--orange-accent);
    padding-left: 24px;
    font-style: italic;
    font-size: 1.25rem;
    color: var(--text-white);
    margin: 40px 0;
}

/* Callout Box (Lead Magnet) */
.post-callout {
    background: var(--blue-gradient);
    border-radius: 16px;
    padding: 32px;
    color: var(--text-white);
    margin: 48px 0;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.post-callout h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-white);
}

.post-callout p {
    margin-bottom: 20px;
    opacity: 0.9;
}

/* Compartir artículo */
.post-share {
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
    margin-top: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.share-title {
    font-weight: 600;
}

.share-buttons {
    display: flex;
    gap: 12px;
}

/* ==========================================================================
   SECCIÓN CONTACTO / FORMULARIO PREVIEW
   ========================================================================== */
.contact-section {
    padding: 100px 0;
    background-color: var(--bg-light);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.contact-info h2 {
    font-size: 2.5rem;
    color: var(--text-white);
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 1.1rem;
    color: var(--text-muted-dark);
    margin-bottom: 40px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-icon-box {
    width: 48px;
    height: 48px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    color: var(--orange-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-sm);
}

.contact-method-text h4 {
    font-size: 0.95rem;
    color: var(--text-muted-dark);
    margin-bottom: 2px;
}

.contact-method-text p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
    margin: 0;
}

/* Simulación de Gravity Forms */
.form-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-dark);
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--blue-vibrant);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(0, 132, 182, 0.15);
}

.form-card .btn {
    width: 100%;
}

/* ==========================================================================
   FOOTER (Contraste Oscuro)
   ========================================================================== */
.footer {
    background-color: var(--navy-deep);
    color: var(--text-white);
    padding: 80px 0 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer .logo-gestion {
    color: var(--text-white);
}

.footer .logo-digital {
    color: var(--orange-accent);
}

.footer .logo-sub {
    color: #94a3b8;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: #cbd5e1;
    margin-top: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 320px;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--orange-gradient);
    border-radius: 3px;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: #cbd5e1;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--orange-accent);
    padding-left: 6px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cbd5e1;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.footer-payment-section {
    margin-top: 24px;
}

.footer-payment-title {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.footer-payment-img {
    height: 35px;
    width: auto;
    opacity: 0.9;
    transition: var(--transition-smooth);
}

.footer-payment-img:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
    color: #94a3b8;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: #cbd5e1;
}

.footer-bottom-links a:hover {
    color: var(--orange-accent);
}

/* ==========================================================================
   ANIMACIONES
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(217, 148, 20, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(217, 148, 20, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(217, 148, 20, 0);
    }
}

/* ==========================================================================
   DISEÑO RESPONSIVO (RESPONSIVE DESIGN / MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .header {
        height: 70px;
    }
    
    .hamburger {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: #ffffff;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 60px;
        gap: 40px;
        transition: left 0.4s cubic-bezier(0.77,0.2,0.05,1.0);
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.25rem;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .trust-badges-row {
        justify-content: center;
    }
    
    .hero-image-wrapper {
        order: -1;
    }
    
    .how-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .how-grid::after {
        display: none;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .form-card {
        padding: 24px;
    }
    
    .floating-stat-card {
        left: 10px;
        bottom: -10px;
    }
    
    .post-header h1 {
        font-size: 2rem;
    }
}

/* ==========================================================================
   PÁGINA LEGAL - TÉRMINOS Y CONDICIONES
   ========================================================================== */
.legal-layout {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.legal-wrapper {
    max-width: 850px;
    margin: 0 auto;
}

.legal-toc {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
}

.legal-toc h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-white);
}

.legal-toc ol {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
    padding: 0;
}

@media (max-width: 576px) {
    .legal-toc ol {
        grid-template-columns: 1fr;
    }
}

.legal-toc li {
    counter-increment: legal-item;
}

.legal-toc a {
    font-size: 0.95rem;
    color: var(--text-muted-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.legal-toc a::before {
    content: counter(legal-item, decimal-leading-zero);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--orange-accent);
}

.legal-toc a:hover {
    color: var(--blue-vibrant);
}

.legal-section {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    scroll-margin-top: 100px;
}

.legal-section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(217, 148, 20, 0.1);
    color: var(--orange-accent);
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.legal-section h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-white);
}

.legal-section p {
    font-size: 0.95rem;
    color: var(--text-muted-dark);
    margin-bottom: 16px;
    line-height: 1.7;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section ul, .legal-section ol {
    margin-bottom: 16px;
    padding-left: 20px;
    color: var(--text-muted-dark);
    font-size: 0.95rem;
}

.legal-section li {
    margin-bottom: 8px;
}

.legal-highlight {
    background-color: rgba(217, 148, 20, 0.08);
    border-left: 4px solid var(--orange-accent);
    border-radius: 0 8px 8px 0;
    padding: 16px;
    margin: 20px 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-white);
}

.legal-law {
    background-color: rgba(0, 132, 182, 0.06);
    border-left: 4px solid var(--blue-vibrant);
    border-radius: 0 8px 8px 0;
    padding: 16px;
    margin: 20px 0;
    font-size: 0.9rem;
    color: var(--text-white);
}

.legal-contact-card {
    background: var(--blue-gradient);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    color: var(--text-white);
    margin-top: 40px;
}

.legal-contact-card h3 {
    font-size: 1.6rem;
    color: var(--text-white);
    margin-bottom: 12px;
}

.legal-contact-card p {
    margin-bottom: 24px;
    opacity: 0.9;
}

/* ==========================================================================
   LOGOTIPO E IMAGEN DEL FAVICON REAL
   ========================================================================== */
.logo-img {
    height: 74px; /* Aumentado a 74px para máxima visualización y legibilidad */
    width: auto;
    max-width: 380px;
    object-fit: contain;
    display: block;
    transition: var(--transition-smooth);
}

.logo-img:hover {
    transform: scale(1.02);
}

.header.scrolled .logo-img {
    height: 60px; /* Reducido proporcionalmente en scroll */
}

/* Botón de WhatsApp más compacto en la cabecera */
.header .btn-whatsapp {
    padding: 10px 20px !important; /* Reducido de 14px 28px */
    font-size: 0.85rem !important; /* Reducido de 0.95rem */
    border-radius: 6px !important;
}

.footer .logo-img {
    height: 64px; /* Aumentado de 52px en pie de página */
    max-width: 280px;
}

.logo-img-footer {
    height: 74px; /* Ajustado a 74px para que tenga la misma escala del header y se vea imponente */
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(0) invert(1); /* Convierte el icono de color a blanco puro para el fondo oscuro */
    transition: var(--transition-smooth);
}

.logo-img-footer:hover {
    transform: scale(1.03);
}
