/* ========================================================================== */
/* CSS/SITE.CSS - Réplica Estética y Funcional Inspirada en Gestores en México  */
/* Dominio: rutadocs.website | Consultoría y Gestoría Documental              */
/* ========================================================================== */

:root {
    --ref-primary: #1A365D;        /* Azul Institucional Profundo */
    --ref-secondary: #2B6CB0;      /* Azul Corporativo Vivo */
    --ref-accent: #3182CE;         /* Azul Enlace / Botón */
    --ref-dark: #2D3748;           /* Texto Principal Gris Oscuro */
    --ref-light: #F7FAFC;          /* Fondo General Limpio */
    --ref-white: #FFFFFF;          /* Blanco Contenedor */
    --ref-border: #E2E8F0;         /* Líneas Divisorias Sutiles */
    --ref-banner-bg: #FFFBEB;      /* Fondo Alerta Discreta */
    --ref-banner-text: #92400E;    /* Texto Alerta Legal */
    --ref-banner-border: #F6E05E;  /* Borde Alerta */
    --font-stack: Arial, Helvetica, sans-serif;
}

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

body {
    font-family: var(--font-stack);
    color: var(--ref-dark);
    background-color: var(--ref-light);
    line-height: 1.6;
    font-size: 15px;
}

/* Aviso Legal Superior Obligatorio Google Ads */
.top-disclaimer-bar {
    background-color: var(--ref-banner-bg);
    color: var(--ref-banner-text);
    border-bottom: 1px solid var(--ref-banner-border);
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    text-align: center;
    font-weight: bold;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Cabecera Superior con Datos de Contacto Estilo Referencia */
.site-header {
    background-color: var(--ref-white);
    border-bottom: 1px solid var(--ref-border);
    padding: 1rem 0;
}

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

.logo-area h1 {
    font-size: 1.8rem;
    color: var(--ref-primary);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.logo-area span {
    display: block;
    font-size: 0.75rem;
    color: var(--ref-secondary);
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-contact-phones {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.phone-item {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--ref-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.phone-item:hover {
    color: var(--ref-secondary);
}

.header-email {
    font-size: 0.9rem;
    color: var(--ref-dark);
    text-decoration: none;
    display: block;
    text-align: right;
}

/* Barra de Navegación Principal */
.main-nav {
    background-color: var(--ref-primary);
}

.nav-menu {
    list-style: none;
    display: flex;
}

.nav-menu li a {
    display: block;
    padding: 0.9rem 1.2rem;
    color: var(--ref-white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: background 0.2s;
}

.nav-menu li a:hover, .nav-menu li a.active {
    background-color: var(--ref-secondary);
}

/* Sección Hero / Presentación Directa */
.hero-section {
    background: linear-gradient(rgba(26,54,93,0.9), rgba(26,54,93,0.9)), url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    color: var(--ref-white);
    padding: 4rem 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.3rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    color: #E2E8F0;
}

/* Beneficios Rápidos (Estilo Iconos / Cajas de la Referencia) */
.benefits-bar {
    background-color: var(--ref-white);
    border-bottom: 1px solid var(--ref-border);
    padding: 1.5rem 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    text-align: center;
}

.benefit-box {
    font-size: 0.95rem;
    font-weight: bold;
    color: var(--ref-primary);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.benefit-box span {
    font-size: 0.8rem;
    color: var(--ref-secondary);
    font-weight: normal;
}

/* Sección de Trámites y Servicios (Core de la Referencia) */
.services-section {
    padding: 4rem 0;
    background-color: var(--ref-light);
}

.section-title {
    font-size: 1.8rem;
    color: var(--ref-primary);
    margin-bottom: 2rem;
    font-weight: bold;
    border-left: 5px solid var(--ref-secondary);
    padding-left: 1rem;
}

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

.service-card {
    background-color: var(--ref-white);
    border: 1px solid var(--ref-border);
    border-radius: 4px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.service-card h3 {
    font-size: 1.2rem;
    color: var(--ref-primary);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--ref-border);
    padding-bottom: 0.5rem;
}

.service-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-list li {
    font-size: 0.9rem;
    padding: 0.40rem 0;
    border-bottom: 1px dashed var(--ref-border);
    color: var(--ref-dark);
}

.service-list li::before {
    content: "▪ ";
    color: var(--ref-secondary);
}

.btn-service {
    display: inline-block;
    background-color: var(--ref-accent);
    color: var(--ref-white);
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 3px;
    text-transform: uppercase;
}

.btn-service:hover {
    background-color: var(--ref-secondary);
}

/* Pie de Página Institucional */
.site-footer {
    background-color: var(--ref-primary);
    color: #A0AEC0;
    padding: 3rem 0 1.5rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: var(--ref-white);
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.footer-col p, .footer-col li {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li a {
    color: #A0AEC0;
    text-decoration: none;
}

.footer-col ul li a:hover {
    color: var(--ref-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .header-flex {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .header-contact-phones {
        flex-direction: column;
        gap: 0.5rem;
    }
    .nav-menu {
        flex-direction: column;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}