/* ==========================================
   1. REGLAS GENERALES Y RESET
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: #2d3748; /* Texto general más oscuro y legible */
    line-height: 1.6;
    background-color: #fff;
    overflow-x: hidden;
    font-size: 15px;
}

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

/* ==========================================
   2. ENCABEZADO Y NAVEGACIÓN
   ========================================== */
.header {
    background-color: #ffffff;
    padding: 15px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #edf2f7;
}

/* Manejo de Logos (CORREGIDO: Oculta el móvil en PC) */
.logo-container img {
    height: 55px;
    width: auto;
    display: block;
}

.logo-desktop {
    display: block !important;
}

.logo-mobile {
    display: none !important;
}

/* Navegación y Menú */
.nav {
    display: flex;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: #0d1e3a;
    margin-left: 20px;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    padding-bottom: 5px;
}

/* Efecto Línea Dorada Animada */
.nav a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #d4af37;
    transition: width 0.3s ease-in-out;
}

.nav a:not(.btn-nav):hover::after {
    width: 100%;
}

.nav a:not(.btn-nav):hover {
    color: #d4af37;
}

.btn-nav {
    background-color: #0d1e3a;
    color: #fff !important;
    padding: 8px 15px;
    border-radius: 4px;
}

.btn-nav:hover {
    background-color: #1a2f50;
}

/* Menú Desplegable (Dropdown Servicios) */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #0d1e3a;
    min-width: 320px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    border-top: 3px solid #d4af37;
    top: 100%;
    left: 20px;
}

.dropdown-content a {
    color: #ffffff !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 13px;
    margin-left: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dropdown-content a::after {
    display: none !important;
}

.dropdown-content a:hover {
    background-color: #1a2f50;
    color: #d4af37 !important;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* ==========================================
   3. BANNER PRINCIPAL (HERO)
   ========================================== */
.hero {
    background: url('consultoria-contable-fiscal-reforma-cdmx.webp') no-repeat center center/cover;
    height: 80vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.4);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    padding: 0 20px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #f8f9fa;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-primary {
    background-color: #0d1e3a;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 3px;
}

.btn-secondary {
    background-color: #d4af37;
    color: #0d1e3a;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 3px;
}

/* ==========================================
   4. SECCIÓN VALORES, FIRMA Y CRECIMIENTO
   ========================================== */
.valores-section {
    padding: 60px 8%;
    background-color: #ffffff;
}

.valores-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 50px;
}

.valor-card {
    flex: 1;
    text-align: center;
}

.icon-box {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.valor-card h3 {
    color: #0d1e3a;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.valor-card p {
    color: #334155;
    font-size: 14.5px;
    line-height: 1.6;
    font-weight: 400;
}

/* Bloque Crecimiento Centrado */
.crecimiento-block {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.crecimiento-block h2 {
    color: #0d1e3a;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 15px;
}

.crecimiento-block p {
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
}

.firma-banner-img img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Banner Crecimiento Oscuro (CTA secundario) */
.banner-growth {
    background: #0d1e3a;
    color: #fff;
    text-align: center;
    padding: 40px 20px;
}

.banner-growth h2 {
    color: #c59b27;
    margin-bottom: 10px;
}

/* ==========================================
   5. SECCIÓN DE PÁGINA SERVICIOS.HTML
   ========================================== */
.services-header-banner {
    background: #0d1e3a;
    color: #fff;
    padding: 40px 8%;
    text-align: center;
}

.services-header-banner h1 {
    color: #d4af37;
    font-size: 28px;
}

.services-intro {
    padding: 50px 8%;
    text-align: center;
    background: #f8f9fa;
}

.services-intro h2 {
    color: #0d1e3a;
    font-size: 24px;
    margin-bottom: 15px;
}

.services-intro p {
    max-width: 850px;
    margin: 0 auto;
    color: #334155;
    font-size: 15px;
    line-height: 1.7;
}

.services-categories-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 60px 8%;
    background: #fff;
}

.category-column {
    flex: 1;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 4px solid #d4af37;
    padding: 25px;
    border-radius: 4px;
}

.category-column h3 {
    color: #0d1e3a;
    font-size: 17px;
    margin-bottom: 10px;
    min-height: 45px;
    font-weight: 700;
}

.category-column p.cat-desc {
    font-size: 14px;
    color: #334155;
    margin-bottom: 25px;
    min-height: 60px;
    font-weight: 400;
}

.service-item-block {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #e2e8f0;
}

.service-item-block h4 {
    color: #0d1e3a;
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: 700;
}

.service-item-block h4 a {
    color: #0d1e3a;
    text-decoration: none;
}

.service-item-block h4 a:hover {
    color: #d4af37;
}

.service-item-block p {
    font-size: 13.5px;
    color: #334155;
    line-height: 1.5;
}

/* ==========================================
   6. SECCIÓN COBERTURA Y FORMULARIO DE CONTACTO
   ========================================== */
.cobertura-contacto {
    display: flex;
    padding: 50px;
    gap: 40px;
}

.mapa-cobertura img {
    width: 100%;
    max-width: 550px;
}

.form-container {
    flex: 1;
}

.form-container h2 {
    color: #0d1e3a;
    font-size: 22px;
}

.form-container h3 {
    color: #c59b27;
    font-size: 16px;
    margin-bottom: 10px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.contact-form input, .contact-form select, .contact-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
}

.btn-submit {
    background: #0d1e3a;
    color: #fff;
    padding: 12px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
}

.btn-submit:hover {
    background-color: #1a2f50;
}

/* ==========================================
   7. PIE DE PÁGINA (FOOTER 3 COLUMNAS)
   ========================================== */
.footer {
    background: #061325;
    color: #ffffff;
    padding: 50px 40px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.footer-col {
    flex: 1;
}

.footer-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 15px;
}

.footer-col h3 {
    color: #d4af37;
    font-size: 15px;
    letter-spacing: 1px;
    margin-bottom: 15px;
    border-bottom: 1px solid #d4af37;
    padding-bottom: 8px;
}

/* Lista de Servicios en 2 Sub-Columnas */
.servicios-grid {
    display: flex;
    gap: 20px;
}

.servicios-grid ul {
    list-style: none;
    flex: 1;
}

.servicios-grid ul li {
    margin-bottom: 10px;
}

.servicios-grid ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 13.5px;
    transition: color 0.3s;
}

.servicios-grid ul li a:hover {
    color: #d4af37;
}

/* Contacto Directo y Botones */
.info-item {
    font-size: 13.5px;
    margin-bottom: 10px;
    color: #cbd5e1;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.btn-social {
    padding: 10px 15px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
    border-radius: 20px;
    color: #ffffff;
}

.btn-linkedin {
    background-color: #0077b5;
}

.btn-wa {
    background-color: #1bb753;
}

/* ==========================================
   8. ADAPTACIÓN PARA DISPOSITIVOS MÓVILES
   ========================================== */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .header {
        position: sticky;
        top: 0;
        flex-direction: column;
        align-items: center;
        padding: 10px 15px;
        text-align: center;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .logo-desktop {
        display: none !important;
    }
    
    .logo-mobile {
        display: block !important;
        height: 45px;
        width: auto;
    }

    .nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 12px;
        margin-top: 8px;
    }

    .nav a {
        margin-left: 0;
        font-size: 12px;
    }

    .btn-nav {
        padding: 4px 10px;
        font-size: 11px;
    }

    .dropdown-content {
        position: static;
        min-width: 100%;
        box-shadow: none;
    }

    .hero {
        height: auto;
        min-height: 50vh;
        padding: 30px 15px;
    }

    .hero h1 {
        font-size: 26px;
        line-height: 1.2;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
    }

    .valores-grid {
        flex-direction: column;
        gap: 30px;
    }

    .services-categories-grid {
        flex-direction: column;
    }

    .cobertura-contacto {
        flex-direction: column;
        padding: 30px 20px;
    }

    .footer {
        flex-direction: column;
        padding: 40px 20px;
        text-align: center;
    }

    .servicios-grid {
        flex-direction: column;
        gap: 0;
    }

    .social-links {
        align-items: center;
    }

    .btn-social {
        width: 100%;
        max-width: 280px;
    }
}

/* ==========================================
   ESTILOS PARA PÁGINAS DE SERVICIO INDIVIDUAL
   ========================================== */

.service-detail-section {
    padding: 50px 8%;
    background: #ffffff;
}

.service-intro-block {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.service-intro-block h2 {
    color: #0d1e3a;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-intro-block .subtitle {
    color: #334155;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
}

.service-two-cols {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.col-text {
    flex: 1.2;
}

.col-text h3 {
    color: #0d1e3a;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 700;
}

.col-text p {
    color: #334155;
    line-height: 1.7;
    font-size: 15px;
    font-weight: 400;
}

.col-box {
    flex: 0.8;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 6px;
    border-left: 4px solid #d4af37;
}

.col-box h3 {
    color: #0d1e3a;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 700;
}

.check-list {
    list-style: none;
}

.check-list li {
    margin-bottom: 10px;
    font-size: 14.5px;
    color: #1e293b;
    font-weight: 600;
}

/* ==========================================
   BENEFICIOS: TARJETAS REDONDEADAS Y ELEGANTES
   ========================================== */
.beneficios-section {
    padding: 50px 8%;
    background: #f8f9fa;
    text-align: center;
}

.beneficios-section h2 {
    color: #0d1e3a;
    font-size: 24px;
    margin-bottom: 35px;
    font-weight: 700;
}

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

.beneficio-card {
    background-color: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 20px; /* Esquinas amplias y redondeadas estilo corporativo moderno */
    padding: 35px 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04); /* Sombra difuminada muy elegante */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.beneficio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(13, 30, 58, 0.08);
}

.card-icon {
    font-size: 32px;
    margin-bottom: 15px;
    display: inline-block;
    color: #0d1e3a;
}

.beneficio-card h3 {
    color: #0d1e3a;
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 12px;
}

.beneficio-card p {
    color: #334155;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 400;
    margin: 0;
}

@media (max-width: 992px) {
    .beneficios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .beneficios-grid {
        grid-template-columns: 1fr;
    }
}

/* DIAGNÓSTICO */
.diagnostico-section {
    padding: 50px 20px;
    text-align: center;
    background: #ffffff;
}

.diagnostico-section h2 {
    color: #0d1e3a;
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: 700;
}

.diagnostico-section p {
    color: #334155;
    font-size: 15.5px;
    margin-bottom: 25px;
    font-weight: 400;
}

.btn-primary-dark {
    background-color: #0d1e3a;
    color: #ffffff;
    padding: 12px 28px;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    border-radius: 4px;
    display: inline-block;
    transition: background 0.3s;
}

.btn-primary-dark:hover {
    background-color: #1a2f50;
}

/* ==========================================
   ESTILOS DE CUADRÍCULA DE SERVICIOS (MENÚ INFERIOR)
   ========================================== */
.services-categories-grid-sub {
    padding: 50px 8%;
    background-color: #f8f9fa;
    border-top: 1px solid #e2e8f0;
}

.section-title-center {
    color: #0d1e3a;
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 35px;
}

.solutions-grid-container {
    display: flex;
    justify-content: space-between;
    gap: 25px;
}

.category-column {
    flex: 1;
}

.category-column h3 {
    color: #0d1e3a;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.category-column p.cat-desc {
    font-size: 13.5px;
    color: #334155;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.5;
    min-height: 55px;
}

.service-item-card {
    background: #ffffff;
    border-radius: 4px;
    padding: 14px 16px;
    margin-bottom: 12px;
    border-left: 4px solid #d4af37;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e2e8f0;
    border-left-width: 4px;
}

.service-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.service-item-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: #0d1e3a;
    margin: 0;
}

.service-item-card h4 a {
    color: #0d1e3a;
    text-decoration: none;
    transition: color 0.2s;
}

.service-item-card h4 a:hover {
    color: #d4af37;
}

/* VALOR AGREGADO AL NEGOCIO */
.service-text-full {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.service-text-full h3 {
    color: #0d1e3a;
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 700;
}

.service-text-full p {
    color: #334155;
    line-height: 1.7;
    font-size: 15px;
    font-weight: 400;
}

.valor-agregado-section {
    padding: 40px 8%;
    background-color: #ffffff;
    max-width: 1000px;
    margin: 0 auto;
}

.valor-agregado-section h2 {
    color: #0d1e3a;
    font-size: 22px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
}

.valor-agregado-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.valor-item {
    background: #f8f9fa;
    padding: 18px 22px;
    border-left: 4px solid #c59b27;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    border-left-width: 4px;
}

.valor-item h4 {
    color: #0d1e3a;
    font-size: 15.5px;
    margin-bottom: 4px;
    font-weight: 700;
}

.valor-item p {
    color: #334155;
    font-size: 14.5px;
    margin: 0;
    font-weight: 400;
}

/* CITA DESTACADA */
.quote-box {
    font-style: italic;
    font-size: 16.5px;
    color: #0d1e3a;
    border-left: 4px solid #d4af37;
    padding-left: 20px;
    margin: 15px 0;
    line-height: 1.6;
    font-weight: 700;
}

/* ESTILOS ESPECÍFICOS DE SECTORES */
.sector-card-border {
    border-left: 5px solid #0d1e3a;
    transition: border-left-color 0.3s ease, transform 0.3s ease;
}

.sector-card-border:hover {
    border-left-color: #d4af37;
    transform: translateY(-3px);
}

.btn-explore {
    color: #0d1e3a;
    text-decoration: none;
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: 0.8px;
    display: inline-block;
    margin-top: 15px;
}

.btn-explore:hover {
    color: #d4af37;
}

.vision-blue-box {
    background-color: #0d1e3a;
    color: #ffffff;
    border-left: 5px solid #d4af37;
    padding: 30px;
    text-align: center;
    border-radius: 6px;
}

.vision-tag {
    color: #d4af37;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.vision-desc {
    color: #ffffff;
    font-weight: 600;
    font-size: 14.5px;
}

/* ==========================================
   ESTILOS EXCLUSIVOS PARA LA PÁGINA SECTORES
   ========================================== */

.sectores-grid-container {
    padding: 20px 8% 50px 8%;
    background-color: #ffffff;
}

.sectores-grid-container h2 {
    color: #0d1e3a;
    font-size: 24px;
    font-weight: 800;
}

.sectores-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 1100px;
}

.sector-card-item {
    background-color: #ffffff;
    border: 1px solid #edf2f7;
    border-left: 5px solid #0d1e3a;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, border-left-color 0.2s ease;
}

.sector-card-item:hover {
    transform: translateY(-3px);
    border-left-color: #d4af37;
}

.sector-card-item h3 {
    color: #0d1e3a;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 12px;
}

.sector-card-item p {
    color: #334155;
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 400;
}

@media (max-width: 768px) {
    .sectores-grid-2x2 {
        grid-template-columns: 1fr;
    }
}