/* ==========================================================================
   AGS | SERVICIOS DE CONSULTORÍA INTEGRAL - SISTEMA DE DISEÑO
   Paleta: Azul Corporativo Profundo & Oro de Prestigio
   ========================================================================== */

/* Variables del Sistema */
:root {
    --primary: #1e3a8a;          /* Azul Marino Corporativo */
    --primary-dark: #0f172a;     /* Carbón Oscuro (Slate 900) */
    --primary-light: #2563eb;    /* Azul Eléctrico para detalles */
    --accent: #D4AF37;           /* Oro de Prestigio */
    --accent-dark: #b89223;      /* Oro Oscuro */
    --accent-light: #f5e3a8;     /* Oro Claro */
    
    --bg-light: #f8fafc;         /* Gris Slate Clarísimo */
    --bg-white: #ffffff;         /* Blanco */
    --text-main: #1e293b;        /* Texto Principal */
    --text-muted: #64748b;       /* Texto Secundario / Muted */
    --border-color: #e2e8f0;     /* Bordes Suaves */
    
    --font-title: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 40px -10px rgba(15, 23, 42, 0.12), 0 10px 15px -3px rgba(15, 23, 42, 0.05);
    --shadow-gold: 0 10px 30px -5px rgba(212, 175, 55, 0.3);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* Reset y Estilos Base */
* {
    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-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    color: var(--primary-dark);
    font-weight: 700;
    line-height: 1.25;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

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

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

.text-white {
    color: var(--bg-white) !important;
}

.text-slate-300 {
    color: #cbd5e1 !important;
}

.bg-gold {
    background-color: var(--accent) !important;
}

/* Botones Premium */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-title);
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    gap: 8px;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-gold {
    background-color: var(--accent);
    color: var(--primary-dark);
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
}

.btn-gold:hover {
    background-color: var(--accent-dark);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.btn-outline {
    border-color: var(--accent);
    color: var(--bg-white);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline-white {
    border-color: var(--bg-white);
    color: var(--bg-white);
    background-color: transparent;
}

.btn-outline-white:hover {
    background-color: var(--bg-white);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Cabecera de Secciones */
.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-underline {
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    margin: 0 auto 20px auto;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px; /* Incrementado para dar más margen y acomodar un logotipo de mayor escala */
}

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

.logo-svg {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-img {
    height: 85px; /* Aumentado sustancialmente para una visualización excelente del imagotipo oficial */
    width: auto;
    object-fit: contain;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* Menú de Navegación */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    padding: 8px 0;
    position: relative;
}

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

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

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

.nav-cta-container {
    margin-left: 8px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    padding: 185px 0 100px 0; /* Ajustado el espaciado superior debido al incremento de altura del header */
    background: radial-gradient(circle at 100% 100%, rgba(212, 175, 55, 0.04) 0%, rgba(255, 255, 255, 0) 50%),
                radial-gradient(circle at 0% 0%, rgba(30, 58, 138, 0.03) 0%, rgba(255, 255, 255, 0) 50%);
}

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

.tagline-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(30, 58, 138, 0.05);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 30px;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.gold-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    color: var(--primary-dark);
}

.highlight-gold {
    color: var(--accent);
    background: linear-gradient(120deg, rgba(212,175,55,0.15) 0%, rgba(212,175,55,0.15) 100%);
    padding: 0 4px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.slogan-span {
    color: var(--primary-dark);
    font-weight: 700;
    font-style: italic;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

/* Forzar CTA de WhatsApp a ser oscuro para el contraste */
.hero-ctas .btn-outline {
    color: var(--primary-dark);
    border-color: var(--primary);
}

.hero-ctas .btn-outline:hover {
    background-color: var(--primary);
    color: var(--bg-white);
    border-color: var(--primary);
}

.hero-features-list {
    display: flex;
    gap: 32px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-dark);
}

.feature-icon-gold {
    color: var(--accent);
    font-size: 1.1rem;
}

/* Imagen Hero */
.hero-visual-content {
    display: flex;
    justify-content: center;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
}

.hero-image {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--bg-white);
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    background-color: var(--bg-white);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.badge-top-right {
    top: 30px;
    right: -30px;
    border-left: 4px solid var(--accent);
}

.badge-bottom-left {
    bottom: 30px;
    left: -30px;
    border-left: 4px solid var(--primary);
}

.badge-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-dark);
    line-height: 1;
}

.badge-lbl {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-transform: uppercase;
    margin-top: 4px;
}

.badge-icon {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 4px;
}

/* ==========================================================================
   ACERCA DE NOSOTROS
   ========================================================================== */
.about-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.mision-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

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

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(30, 58, 138, 0.15);
}

.card-icon-container {
    width: 60px;
    height: 60px;
    background-color: rgba(30, 58, 138, 0.05);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 24px;
    transition: var(--transition);
}

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

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.about-card p {
    color: var(--text-muted);
}

/* Valores Grid */
.values-title {
    margin: 60px 0 40px 0;
}

.values-title h3 {
    font-size: 1.75rem;
    font-weight: 800;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.value-item {
    background-color: var(--bg-white);
    padding: 32px;
    border-radius: var(--radius-sm);
    border-top: 3px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.value-item:hover {
    border-top-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.value-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.value-item h4 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.value-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Sección Híbrida: Sedes e Integrantes */
.hybrid-info-container {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 50px;
    border: 1px solid var(--border-color);
}

.hybrid-header {
    margin-bottom: 40px;
    text-align: center;
}

.hybrid-header h3 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.hybrid-header p {
    color: var(--text-muted);
}

.hybrid-content-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
}

/* Bloque Sedes */
.block-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

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

.office-card {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--border-color);
    background-color: var(--bg-light);
    cursor: pointer;
    transition: var(--transition);
}

.office-card:hover {
    background-color: rgba(30, 58, 138, 0.02);
    border-left-color: var(--primary);
}

.office-card.active {
    background-color: var(--primary);
    border-left-color: var(--accent);
    color: var(--bg-white);
    box-shadow: var(--shadow-md);
}

.office-card h5 {
    font-size: 1rem;
    margin-bottom: 4px;
    transition: var(--transition);
}

.office-card.active h5 {
    color: var(--accent);
}

.office-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.office-card.active p {
    color: #cbd5e1;
}

/* Bloque Organigrama */
.team-departments {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dept-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.dept-header {
    background-color: rgba(30, 58, 138, 0.05);
    color: var(--primary-dark);
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color);
}

.dept-people {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sub-dept-title {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--primary);
    margin: 8px 0 2px 0;
    letter-spacing: 0.5px;
}

.person-tag {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-light);
    padding: 8px 14px;
    border-radius: 4px;
}

.person-tag strong {
    font-size: 0.9rem;
    color: var(--primary-dark);
}

.person-tag span {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-dark);
    background-color: rgba(212, 175, 55, 0.15);
    padding: 3px 8px;
    border-radius: 20px;
}

.person-tags-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px;
}

.person-tags-grid .person-tag {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.sub-tag {
    background-color: #f1f5f9;
}

/* ==========================================================================
   SERVICIOS SECTION (TABS & MODALS)
   ========================================================================== */
.services-section {
    padding: 100px 0;
}

/* Tabs Navigation */
.tabs-nav-container {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 2px;
}

.tab-btn {
    background: transparent;
    border: none;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-muted);
    padding: 16px 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    transition: var(--transition);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 4px;
    background-color: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    width: 100%;
}

.tab-icon {
    font-size: 1.25rem;
}

/* Panel de Contenidos */
.tabs-content-container {
    position: relative;
}

.tab-panel {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.tab-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

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

/* Tarjetas de Servicio */
.service-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 36px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 175, 55, 0.3);
}

.service-card-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(30, 58, 138, 0.05);
    color: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 24px;
    transition: var(--transition);
}

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

.service-card h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.925rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

.service-card:hover .read-more {
    color: var(--accent-dark);
}

.read-more i {
    transition: var(--transition);
}

.service-card:hover .read-more i {
    transform: translateX(4px);
}

/* ==========================================================================
   MERCADO OBJETIVO (TARGET MARKET)
   ========================================================================== */
.target-market-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.target-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.target-image-wrapper {
    position: relative;
    width: 100%;
}

.target-image {
    width: 100%;
    height: 540px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--bg-white);
}

.target-overlay-card {
    position: absolute;
    bottom: -30px;
    right: 30px;
    background-color: var(--primary-dark);
    color: var(--bg-white);
    padding: 24px 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-width: 320px;
    border-bottom: 4px solid var(--accent);
}

.overlay-title {
    display: block;
    font-family: var(--font-title);
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 6px;
}

.target-overlay-card p {
    font-size: 0.85rem;
    color: #94a3b8;
}

.badge-target {
    display: inline-block;
    background-color: var(--accent);
    color: var(--primary-dark);
    padding: 4px 14px;
    border-radius: 30px;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.target-title {
    font-size: 2.25rem;
    margin-bottom: 20px;
}

.target-description {
    color: var(--text-muted);
    margin-bottom: 36px;
}

.target-segments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.segment-card {
    display: flex;
    gap: 20px;
    background-color: var(--bg-white);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.segment-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(30, 58, 138, 0.08);
}

.segment-num {
    width: 40px;
    height: 40px;
    background-color: rgba(30, 58, 138, 0.06);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    font-weight: 800;
    flex-shrink: 0;
}

.segment-card:hover .segment-num {
    background-color: var(--primary);
    color: var(--bg-white);
}

.segment-body h5 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.segment-body p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   SIMULADOR FISCAL (INTERACTIVE CALCULATOR)
   ========================================================================== */
.simulator-section {
    padding: 100px 0;
    background: radial-gradient(circle at 0% 0%, #1e3a8a 0%, #0f172a 100%);
}

.simulator-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    background-color: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.sim-inputs-block {
    padding: 50px;
    background-color: rgba(255, 255, 255, 0.02);
}

.sim-block-title {
    font-size: 1.5rem;
    color: var(--bg-white);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sim-block-title i {
    color: var(--accent);
}

.input-group {
    margin-bottom: 28px;
}

.input-group label {
    display: block;
    color: #e2e8f0;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 18px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    color: var(--bg-white);
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent);
    background-color: rgba(255, 255, 255, 0.08);
}

select.form-control option {
    background-color: var(--primary-dark);
    color: var(--bg-white);
}

.label-val-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.label-val-row label {
    margin-bottom: 0;
}

.slider-value {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--accent);
}

/* Custom Input Range */
.custom-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    outline: none;
    border-radius: 3px;
}

.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    transition: var(--transition);
}

.custom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.slider-min-max {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 4px;
}

.sim-disclosure {
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.4;
    border-left: 2px solid rgba(212, 175, 55, 0.4);
    padding-left: 10px;
    margin-top: 10px;
}

/* Bloque Resultados */
.sim-results-block {
    padding: 50px;
    background-color: rgba(15, 23, 42, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.results-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 36px;
}

.comparison-card {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.before-card {
    border-top: 3px solid #ef4444; /* Rojo para carga fiscal actual */
}

.after-card {
    border-top: 3px solid var(--accent); /* Oro para AGS */
    box-shadow: 0 10px 25px -10px rgba(212, 175, 55, 0.15);
}

.comp-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.comp-num {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.1;
}

#cost-before {
    color: #fca5a5;
}

#cost-after {
    color: #fef08a; /* Color oro claro de alta visibilidad sobre fondo azul oscuro */
}

.comp-currency {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 2px;
}

/* Gráfico Circular de Progreso */
.savings-progress-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 36px;
}

.savings-circle-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
}

.savings-circle-svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 8;
}

.circle-progress {
    fill: none;
    stroke: var(--accent);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.circle-inner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.circle-percent {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.circle-lbl {
    font-size: 0.6rem;
    color: #cbd5e1;
    text-transform: uppercase;
    font-weight: 700;
}

.savings-cash-row {
    display: flex;
    flex-direction: column;
}

.savings-cash-lbl {
    font-size: 0.85rem;
    color: #94a3b8;
}

.savings-cash-num {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent);
}

.sim-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ==========================================================================
   CONTACTO SECTION
   ========================================================================== */
.contact-section {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 50px;
}

.contact-info-block {
    background-color: var(--primary-dark);
    color: var(--bg-white);
    padding: 48px;
    border-radius: var(--radius-lg);
}

.contact-info-block h3 {
    color: var(--bg-white);
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.info-intro {
    color: #cbd5e1;
    margin-bottom: 40px;
}

.info-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-link-item {
    display: flex;
    gap: 20px;
    align-items: center;
}

.info-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-text span {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2px;
}

.info-text a {
    font-size: 1.15rem;
    font-weight: 700;
}

.info-text a:hover {
    color: var(--accent);
}

.info-text p {
    font-size: 1rem;
    color: #e2e8f0;
}

/* Formulario */
.contact-form-block {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.contact-form-block h3 {
    font-size: 1.75rem;
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--primary-dark);
}

.contact-form-block .form-control {
    background-color: var(--bg-light);
    border-color: var(--border-color);
    color: var(--text-main);
}

.contact-form-block .form-control::placeholder {
    color: #94a3b8;
}

.contact-form-block .form-control:focus {
    border-color: var(--primary);
    background-color: var(--bg-white);
}

.success-message {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    z-index: 5;
}

.success-icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 20px;
}

.success-message h4 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.success-message p {
    color: var(--text-muted);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background-color: var(--primary-dark);
    color: #94a3b8;
    padding: 80px 0 0 0;
    border-top: 4px solid var(--accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.85fr 0.85fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo-svg {
    height: 50px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 80px; /* Aumentado sustancialmente para una presencia imponente en el pie de página */
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-slogan {
    display: inline-block;
    font-family: var(--font-title);
    font-weight: 700;
    color: var(--accent);
    font-style: italic;
    font-size: 1rem;
}

.footer-links h4, .footer-locations-links h4 {
    color: var(--bg-white);
    font-size: 1.1rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 8px;
}

.footer-links h4::after, .footer-locations-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent);
}

.footer-links ul, .footer-locations-links ul {
    list-style: none;
}

.footer-links li, .footer-locations-links li {
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-locations-links li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-locations-links li::before {
    content: '\f0f2'; /* FontAwesome Suitcase or Map pin */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75rem;
    color: var(--accent);
}

.footer-bottom {
    background-color: #020617;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================================================
   MODALES DE SERVICIOS
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-box {
    background-color: var(--bg-white);
    width: 100%;
    max-width: 600px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transform: translateY(30px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-box {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary-dark);
}

.modal-header {
    padding: 36px 36px 20px 36px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
}

.modal-icon-wrapper {
    width: 48px;
    height: 48px;
    background-color: rgba(30, 58, 138, 0.05);
    color: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.modal-header h3 {
    font-size: 1.5rem;
}

.modal-body {
    padding: 30px 36px;
    max-height: 320px;
    overflow-y: auto;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.modal-body p {
    margin-bottom: 16px;
    line-height: 1.6;
}

.modal-list-title {
    font-family: var(--font-title);
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
    display: block;
}

.modal-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.modal-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #10b981;
    font-size: 0.85rem;
    margin-top: 4px;
}

.modal-footer {
    padding: 20px 36px 36px 36px;
    border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   MOBILE FLOAT ACTION BOTTOM BAR (CTA MOVIL)
   ========================================================================== */
.floating-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: var(--bg-white);
    display: none;
    z-index: 999;
    box-shadow: 0 -4px 15px rgba(15, 23, 42, 0.1);
    border-top: 1px solid var(--border-color);
}

.floating-cta-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.cta-call {
    background-color: var(--primary);
    color: var(--bg-white);
}

.cta-whatsapp {
    background-color: #25d366; /* Verde Oficial WA */
    color: var(--bg-white);
}

/* ==========================================================================
   ANIMATIONS & REVEALS ON SCROLL
   ========================================================================== */
.card-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVO (MEDIA QUERIES)
   ========================================================================== */

/* Tablet (Menos de 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 32px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .hero-text-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    .hero-features-list {
        justify-content: center;
    }
    
    .mision-vision-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hybrid-content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .target-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .target-visual {
        order: 2;
    }
    
    .target-image {
        height: 380px;
    }
    
    .simulator-grid {
        grid-template-columns: 1fr;
    }
    
    .sim-results-block {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Móvil Grande (Menos de 768px) */
@media (max-width: 768px) {
    /* Navbar Responsivo */
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 100px; /* Adaptado al nuevo alto de cabecera de 100px */
        left: 100%;
        width: 100%;
        height: calc(100vh - 100px);
        background-color: var(--bg-white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: var(--transition);
        box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.05);
        padding-bottom: 80px;
    }
    
    .nav-menu.mobile-active {
        left: 0;
    }
    
    .menu-toggle.mobile-active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle.mobile-active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.mobile-active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .nav-cta-container {
        margin-left: 0;
        width: 100%;
        max-width: 240px;
    }
    
    .nav-cta-container .btn {
        width: 100%;
    }
    
    /* Layouts a 1 columna */
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .tabs-nav-container {
        flex-direction: column;
        align-items: center;
        gap: 0;
        border-bottom: none;
    }
    
    .tab-btn {
        width: 100%;
        justify-content: center;
        border-bottom: 2px solid var(--border-color);
        padding: 12px;
    }
    
    .tab-btn.active::after {
        display: none;
    }
    
    .tab-btn.active {
        border-bottom-color: var(--primary);
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .hero-section {
        padding-top: 140px; /* Adaptado al nuevo alto de cabecera de 100px en móvil */
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-ctas .btn {
        width: 100%;
    }
    
    .hero-features-list {
        flex-direction: column;
        gap: 16px;
    }
    
    .hero-image {
        height: 320px;
    }
    
    .badge-top-right, .badge-bottom-left {
        display: none; /* Ocultar badges flotantes en móvil para evitar scroll horizontal */
    }
    
    /* Mostrar Floating CTA y separar body */
    body {
        padding-bottom: 60px;
    }
    
    .floating-cta-bar {
        display: flex;
    }
    
    .hybrid-info-container {
        padding: 24px;
    }
    
    .person-tags-grid {
        grid-template-columns: 1fr;
    }
    
    .sim-inputs-block, .sim-results-block {
        padding: 24px;
    }
    
    .savings-progress-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .results-comparison {
        grid-template-columns: 1fr;
    }
    
    .contact-info-block, .contact-form-block {
        padding: 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom-flex {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

/* ==========================================================================
   SUCURSALES - METRICAS Y HORARIOS (BALANCEO DE COLUMNAS)
   ========================================================================== */
.offices-metrics-block {
    margin-top: 45px;
}

.metrics-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.metric-mini-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: var(--radius-sm);
    text-align: center;
    transition: var(--transition);
}

.metric-mini-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.metric-num {
    display: block;
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.metric-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    display: block;
    margin-top: 2px;
}

/* Tarjeta de Horarios */
.office-schedule-card {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--bg-white);
    padding: 24px;
    border-radius: var(--radius-md);
    margin-top: 24px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--accent);
}

.office-schedule-card h5 {
    color: var(--accent) !important;
    font-size: 1rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.office-schedule-card p {
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.office-schedule-card p strong {
    color: var(--bg-white);
}

.schedule-note {
    font-size: 0.75rem !important;
    color: #94a3b8 !important;
    font-style: italic;
    margin-top: 10px;
    margin-bottom: 0 !important;
}
