/* ==========================================================================
   1. VARIABLES Y CONFIGURACIÓN BASE
   ========================================================================== */
:root {
    --navy-main: #0B1B3D;       /* Azul Marino Principal */
    --navy-light: #162B54;      /* Azul Marino Secundario */
    --accent-blue: #2A5C9A;     /* Azul de Acento (Botones/Detalles) */
    --bg-light: #F8F9FA;        /* Fondo claro grisáceo */
    --text-dark: #212529;       /* Texto principal */
    --text-muted: #6C757D;      /* Texto suave */
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ==========================================================================
   2. BARRA SUPERIOR CON MOVIMIENTO INFINITO (MARQUEE CORREGIDO)
   ========================================================================== */
.top-bar {
    background-color: var(--navy-main); 
    color: var(--white);
    padding: 10px 0;
    font-size: 13px;
    font-weight: 500;
    overflow: hidden; /* Esconde todo lo que desborda a la derecha */
    position: relative;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.marquee-wrapper {
    width: 100%;
    display: flex;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    gap: 100px; /* Separación generosa entre los datos */
    padding-left: 0; /* Empezamos desde el borde justo */
    animation: scroll-infinite-marquee 12s linear infinite; /* 30s para que se mueva suave y continuo */
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.marquee-item i {
    color: var(--accent-blue);
}

/* Detener movimiento al pasar el mouse en PC */
.top-bar:hover .marquee-track {
    animation-play-state: paused;
}

/* LA MAGIA: Mueve un tercio de la pista para que el bucle sea invisible */
@keyframes scroll-infinite-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.33%); /* Se desplaza exactamente el equivalente al primer bloque */
    }
}

/* ==========================================================================
   3. NAVBAR RESPONSIVO GENERAL
   ========================================================================== */
.navbar {
    background-color: var(--white);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--navy-main);
    letter-spacing: 1px;
    line-height: 1;
}

.logo-sub {
    font-size: 10px;
    font-weight: 600;
    color: var(--accent-blue);
    letter-spacing: 2px;
    margin-top: 2px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--navy-main);
    font-size: 24px;
    cursor: pointer;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--navy-light);
    font-weight: 600;
    margin: 0 15px;
    font-size: 15px;
    transition: color 0.3s;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--accent-blue);
}

.btn-nav-action {
    background-color: var(--navy-main);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-nav-action:hover {
    background-color: var(--accent-blue);
}

/* ==========================================================================
   4. HERO BANNER
   ========================================================================== */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    background: url('fotohero.avif') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(11, 27, 61, 0.65), rgba(22, 43, 84, 0.55));
}

.hero-content {
    position: relative;
    max-width: 800px;
    padding: 0 20px;
    z-index: 10;
}

.tag-hero {
    background-color: var(--accent-blue);
    color: var(--white);
    display: inline-block;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 35px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: var(--white);
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background-color: #1e4575;
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--navy-main);
}

/* ==========================================================================
   5. SECCIÓN DE ENFOQUE (POR QUÉ ELEGIRNOS)
   ========================================================================== */
.focus-section {
    padding: 80px 20px;
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.focus-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.focus-text h2 {
    font-size: 36px;
    color: var(--navy-main);
    margin-bottom: 20px;
    font-weight: 700;
}

.focus-text p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
}

.focus-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mini-card {
    background-color: var(--white);
    padding: 25px;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border-left: 4px solid var(--accent-blue);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mini-card i {
    font-size: 24px;
    color: var(--navy-main);
}

.mini-card h3 {
    font-size: 18px;
    color: var(--navy-main);
}

.mini-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

/* ==========================================================================
   6. SECCIÓN DESTACADA - SECCIÓN IA (PORTADA)
   ========================================================================== */
.ia-clean-section {
    padding: 90px 20px;
    background-color: var(--bg-light); 
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.ia-clean-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr; 
    gap: 60px;
    align-items: center;
}

.ia-sub {
    color: var(--accent-blue);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 12px;
}

.ia-clean-text h2 {
    font-size: 36px;
    color: var(--navy-main);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.ia-clean-text p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.8;
}

.ia-clean-text strong {
    color: var(--navy-main);
    font-weight: 600;
}

.ia-clean-action {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.04);
    text-align: center;
}

.ia-clean-action p {
    font-size: 15px;
    color: var(--navy-light);
    font-weight: 600;
    margin-bottom: 15px;
}

.btn-clean-ia {
    background-color: var(--navy-main);
    color: var(--white);
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    transition: background-color 0.3s;
}

.btn-clean-ia:hover {
    background-color: var(--accent-blue);
}

/* ==========================================================================
   7. PÁGINA INTERNA DE SERVICIOS (ESTILO EDITORIAL MINIMALISTA)
   ========================================================================== */
.services-editorial-section {
    padding: 80px 20px;
    background-color: var(--white);
}

.container-editorial {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.editorial-block {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr; 
    gap: 60px;
    padding: 60px 40px;
    background-color: var(--white);
    border-radius: 8px;
    border-top: 1px solid rgba(11, 27, 61, 0.12); 
    align-items: flex-start;
}

.editorial-block:first-child {
    border-top: none;
    padding-top: 20px;
}

.editorial-block.alt-bg {
    background-color: #F9FAFC; /* El gris sutil de fondo */
    border-top: 1px solid rgba(11, 27, 61, 0.05);
}

.editorial-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.editorial-icon-num {
    font-size: 28px;
    color: var(--accent-blue);
    display: inline-block;
}

.editorial-header h2 {
    font-size: 30px;
    color: var(--navy-main);
    font-weight: 700;
    line-height: 1.2;
}

.editorial-content p {
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
    opacity: 0.9;
}

.editorial-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 16px;
    padding: 0;
}

.editorial-list li {
    font-size: 15px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.editorial-list li i {
    color: var(--accent-blue);
    font-size: 12px;
}

/* Enlace a la CChC */
.cchc-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed var(--accent-blue);
    transition: color 0.2s, border-color 0.2s;
}

.cchc-link:hover {
    color: var(--navy-light);
    border-bottom-style: solid;
}

.cchc-link i {
    font-size: 11px;
    margin-left: 2px;
}

/* ==========================================================================
   8. FOOTER BASE
   ========================================================================== */
.footer {
    background-color: var(--navy-main);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 20px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
}

/* ==========================================================================
   9. RESPONSIVO GLOBAL (MEDIA QUERIES INTEGRADOS)
   ========================================================================== */
@media (max-width: 768px) {
    /* Navbar móvil de Socrimar */
    .navbar {
        padding: 0 20px;
        height: 60px;
        display: flex;
        justify-content: flex-start;
        gap: 15px;
    }

    .nav-toggle {
        display: block;
        order: 1;
    }

    .logo {
        order: 2;
    }

    .logo-text {
        font-size: 18px;
    }

    /* Menú Deslizable (Sidebar Drawer) */
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 75%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        padding: 80px 0 20px 0;
        box-shadow: 5px 0 25px rgba(0,0,0,0.15);
        gap: 25px;
        display: flex;
        transition: left 0.4s ease;
        z-index: 999;
        align-items: flex-start;
    }

    .nav-menu.show {
        left: 0;
    }

    .nav-menu a {
        margin: 0;
        font-size: 18px;
        width: 100%;
        text-align: left;
        padding: 12px 30px;
        border-bottom: 1px solid rgba(0,0,0,0.03);
    }

    .btn-nav-action {
        width: 85% !important;
        margin: 10px 30px;
        text-align: center !important;
        justify-content: center;
    }

    /* Ajustes del Hero Principal */
    .hero-title {
        font-size: 26px;
    }
    
    .hero-description {
        font-size: 15px;
    }

    /* BUSCA ESTO DENTRO DEL @media (max-width: 768px) Y REEMPLÁZALO */
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 320px; /* Evita que los botones se vean gigantes a lo ancho en el celu */
        margin: 0 auto;  /* Centra el bloque contenedor de los botones */
    }

    .hero-buttons .btn-primary, 
    .hero-buttons .btn-secondary {
        width: 100%;
        justify-content: center; /* Centra el texto y el ícono de WhatsApp adentro del botón */
        text-align: center;
    }

    /* Ajustes Estructurales Portada */
    .focus-grid, .footer-container, .ia-clean-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .ia-clean-section {
        padding: 60px 20px;
    }

    .ia-clean-action {
        padding: 30px 20px;
    }

    /* Ajustes de Servicios Editorial en celular */
    .services-editorial-section {
        padding: 40px 15px;
    }
    
    .editorial-block {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 40px 20px;
    }

    .editorial-header h2 {
        font-size: 24px;
    }

    .editorial-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Asegura que el logo mantenga su facha premium al ser un link */
a.logo {
    text-decoration: none; /* Le quita el subrayado feo */
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

a.logo:hover {
    opacity: 0.9; /* Da un sutil efecto visual al pasar el mouse por encima */
}

/* Asegura que el link del teléfono en la marquesina se vea blanco y limpio */
.marquee-item .marquee-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-header {
  background-color: #ffffff;
  padding: 15px 40px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.header-logo {
  height: 45px; /* Ajusta el tamaño según prefieras */
  width: auto;
  margin-right: 12px;
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-title {
  font-size: 22px;
  font-weight: 800;
  color: #0c1b3d;
  letter-spacing: 1px;
  line-height: 1;
}
.brand-subtitle {
  font-size: 10px;
  font-weight: 600;
  color: #2a5c9a;
  letter-spacing: 3px;
  margin-top: 4px;
}
/* Estilos de navegación base */
.main-nav { display: flex; align-items: center; gap: 25px; }
.nav-item { text-decoration: none; color: #0c1b3d; font-weight: 600; }
.nav-item.active { color: #2a5c9a; }
.btn-cotizar {
  background-color: #0c1b3d;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 40px; /* Puedes subirlo a 45px o 50px si lo quieres ver más grande */
    width: auto;
    display: block;
}

.logo div {
    display: flex;
    flex-direction: column;
}