/* ============================================================
   SDRIMSAC— Facturación Electrónica
   Diseño Corporativo Discreto — Blanco + Azul Oscuro
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap');

/* === VARIABLES === */
:root {
    --azul:        #1a3a6e;
    --azul-medio:  #2255a4;
    --azul-claro:  #3a7bd5;
    --amarillo:    #f5a623;
    --blanco:      #ffffff;
    --gris-claro:  #f4f6fa;
    --gris-medio:  #e2e8f0;
    --gris-texto:  #5a6a85;
    --oscuro:      #1c2a3e;
    --sombra:      0 4px 24px rgba(26, 58, 110, 0.10);
    --sombra-md:   0 8px 40px rgba(26, 58, 110, 0.14);
    --radio:       12px;
    --radio-lg:    18px;
    --fuente:      'Inter', sans-serif;
    --titulo:      'Poppins', sans-serif;
    --trans:       0.28s ease;
}

/* === RESET === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--fuente);
    background: var(--blanco);
    color: var(--oscuro);
    line-height: 1.6;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
    background: var(--azul);
    padding: 8px 56px;
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 13px;
    color: rgba(255,255,255,0.75);
}
.topbar span {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color var(--trans);
}
.topbar span:hover { color: #fff; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--blanco);
    border-bottom: 1px solid var(--gris-medio);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 56px;
    height: 70px;
    box-shadow: 0 2px 12px rgba(26, 58, 110, 0.07);
}
.logo {
    font-family: var(--titulo);
    font-size: 19px;
    font-weight: 800;
    color: var(--azul);
    letter-spacing: 0.5px;
}

/* Contenedor del logo */
.logo {
    background: transparent;   /* Quita fondo blanco */
    padding: 0;                /* Quita espacio interno */
    margin: 0;
}

/* Enlace del logo */
.logo a {
    display: flex;
    align-items: center;
    height: auto;              /* IMPORTANTE */
}

/* Imagen del logo */
.logo img {
    height: 95px;
}
.navbar { height: 100px; }


.menu { list-style: none; display: flex; align-items: center; }
.menu a {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--oscuro);
    border-radius: 8px;
    transition: all var(--trans);
    position: relative;
}
.menu a::after {
    content: '';
    position: absolute;
    bottom: 3px; left: 16px; right: 16px;
    height: 2px;
    background: var(--azul);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform var(--trans);
}
.menu a:hover { color: var(--azul); }
.menu a:hover::after { transform: scaleX(1); }
/* Dropdown / Submenu */
.menu li { position: relative; }
.menu .dropdown > a::after { content: ' ▾'; font-size: 12px; margin-left:6px; opacity:0.85; }
.submenu { list-style: none; display: none; position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(-6px); transform-origin: top center; margin: 0; padding: 6px 0; background: var(--blanco); border: 1px solid var(--gris-medio); border-radius: 10px; min-width: 200px; box-shadow: 0 12px 40px rgba(11,26,53,0.12); z-index: 2000; white-space: nowrap; }
.submenu li { list-style: none; margin: 0; padding: 0; }
.submenu a { display: block; padding: 10px 18px; color: var(--oscuro); font-weight: 600; transition: background 160ms ease, color 160ms ease; }
.submenu a:hover { background: var(--gris-claro); color: var(--azul); }
.dropdown.hover-open > .submenu { display: block; }
.dropdown.open > .submenu { display: block; }
.submenu { opacity: 0; transition: opacity 180ms ease, transform 180ms ease; }
.dropdown.open > .submenu, .dropdown.hover-open > .submenu { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Second-level submenu (submenu dentro de submenu) */
.sub-submenu {
    display: none;
    position: absolute;
    top: 0;
    left: calc(100% + 6px);
    min-width: 220px;
    background: var(--blanco);
    border: 1px solid var(--gris-medio);
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(11,26,53,0.12);
    padding: 6px 0;
    z-index: 2500;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 160ms ease, transform 160ms ease;
}
.dropdown-sub { position: relative; }
/* Show sub-submenu only when the Facturación link is hovered or focused (not when the whole Servicios menu is hovered) */
.dropdown-sub > a:hover + .sub-submenu,
.dropdown-sub > a:focus + .sub-submenu { display: block; opacity: 1; transform: translateY(0); }
.sub-submenu li { margin: 0; padding: 0; list-style: none; }
.sub-submenu a { padding: 7px 14px; display:block; color: var(--oscuro); font-weight:600; }
.sub-submenu a:hover { background: var(--gris-claro); color: var(--azul); }

/* Show sub-submenu when parent has .open (used for page targets) */
.dropdown-sub.open > .sub-submenu,
.dropdown-sub.hover-open > .sub-submenu { display: block; opacity: 1; transform: translateY(0); }

.icons a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--azul);
    color: #fff;
    padding: 10px 22px;
    border-radius: var(--radio);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--titulo);
    transition: all var(--trans);
    box-shadow: 0 4px 14px rgba(26, 58, 110, 0.22);
}
.icons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: 14px;
    flex-shrink: 0;
    flex-wrap: nowrap;
}
.icons > * { flex: 0 0 auto; }
.account-icon .account-text {
    white-space: nowrap;
}
.cart-icon {
    position: relative;
}
.cart-count {
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(255,255,255,0.22);
}
.icons a:hover {
    background: var(--azul-medio);
    transform: translateY(-1px);
    box-shadow: 0 7px 22px rgba(26, 58, 110, 0.3);
}

/* ============================================================
   HERO — fondo azul oscuro como la imagen de referencia
   ============================================================ */
.hero {
    position: relative;
    min-height: 52vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #3961aa 0%, #1a3a6e 55%, #0e2248 100%);
}
.hero-bg {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    width: 80vw;
    height: auto;
    max-width: 900px;
    object-fit: contain;
    opacity: 0.09;
    z-index: 0;
}
.hero-overlay {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 30% 50%, rgba(58,123,213,0.22) 0%, transparent 65%),
        radial-gradient(ellipse 40% 40% at 75% 80%, rgba(11,26,53,0.5) 0%, transparent 60%);
    z-index: 1;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 28px 28px;
    z-index: 1;
}
.hero-content {
    position: relative; z-index: 2;
    display: flex; flex-direction: column;
    align-items: center; text-align: center;
    padding: 0 24px;
    max-width: 700px; width: 100%;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 7px 20px; border-radius: 50px;
    margin-bottom: 26px;
    animation: fadeUp 0.7s ease both;
}
.hero-logo-area {
    display: flex; align-items: center;
    justify-content: center; gap: 22px;
    margin-bottom: 22px;
    animation: fadeUp 0.7s 0.08s ease both;
}
.hero-logo-text {
    font-family: var(--titulo);
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
    line-height: 1.05;
}
.hero-logo-text span { color: var(--amarillo); }
.hero-sunat-badge {
    display: inline-flex; flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 10px;
    padding: 12px 14px; gap: 4px;
    font-size: 10px; color: rgba(255,255,255,0.7);
    font-weight: 600; letter-spacing: 1px;
    flex-shrink: 0;
}
.hero-sunat-badge strong { color: #fff; font-size: 12px; }
.hero-tagline {
    font-family: var(--titulo);
    font-size: clamp(16px, 2.5vw, 26px);
    font-weight: 600;
    color: var(--amarillo);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
    animation: fadeUp 0.7s 0.15s ease both;
}
.hero p {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    max-width: 540px; line-height: 1.8;
    margin-bottom: 36px;
    animation: fadeUp 0.7s 0.2s ease both;
}
.hero-btns {
    display: flex; gap: 12px;
    flex-wrap: wrap; justify-content: center;
    animation: fadeUp 0.7s 0.25s ease both;
}
.btn-hero-primary {
    background: var(--amarillo);
    color: var(--oscuro);
    padding: 14px 32px;
    border-radius: var(--radio);
    font-size: 15px; font-weight: 700;
    font-family: var(--titulo);
    transition: all var(--trans);
    box-shadow: 0 6px 20px rgba(245,166,35,0.35);
    border: none; cursor: pointer;
}
.btn-hero-primary:hover {
    background: #e89619;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(245,166,35,0.45);
}
.btn-hero-secondary {
    background: transparent;
    color: #fff;
    padding: 14px 32px;
    border-radius: var(--radio);
    font-size: 15px; font-weight: 600;
    border: 1px solid rgba(255,255,255,0.28);
    transition: all var(--trans);
}
.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.55);
}
.hero-stats {
    display: flex; gap: 48px;
    margin-top: 28px; padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.1);
    animation: fadeUp 0.7s 0.3s ease both;
}
.stat { text-align: center; }
.stat strong {
    display: block; font-size: 32px; font-weight: 800;
    font-family: var(--titulo); color: var(--amarillo);
}
.stat span { font-size: 13px; color: rgba(255,255,255,0.55); }

/* ============================================================
   PARTNERS BAR
   ============================================================ */
.partners-bar {
    background: var(--gris-claro);
    border-bottom: 1px solid var(--gris-medio);
    padding: 18px 56px;
    display: flex; align-items: center;
    gap: 32px; flex-wrap: wrap;
}
.partners-bar p {
    font-size: 10px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--gris-texto); white-space: nowrap;
}
.partners-logos { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.partners-logos span {
    font-size: 13px; font-weight: 700;
    color: var(--azul); opacity: 0.4;
    letter-spacing: 0.5px; cursor: default;
    font-family: var(--titulo);
    transition: opacity var(--trans);
}
.partners-logos span:hover { opacity: 1; }

/* ============================================================
   PAGE BANNER — páginas internas
   ============================================================ */
.page-banner {
    position: relative; height: 240px; overflow: hidden;
    background: linear-gradient(135deg, #0b1a35, #1a3a6e);
}
.page-banner img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.12;
}
.page-banner-overlay {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center; padding: 24px;
}
.page-banner-overlay h1 {
    font-family: var(--titulo);
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 700; color: #fff; margin-bottom: 8px;
}
.page-banner-overlay p { font-size: 15px; color: rgba(255,255,255,0.6); }

/* ============================================================
   SECCIÓN CONTENIDO GENERAL
   ============================================================ */
.contenido {
    padding: 60px 56px;
    max-width: 1200px; margin: 0 auto;
}
.contenido h1,
.contenido h2 {
    font-family: var(--titulo);
    font-size: clamp(20px, 2.8vw, 34px);
    font-weight: 700; color: var(--azul);
    margin-bottom: 12px; margin-top: 28px;
    position: relative; padding-bottom: 12px;
}
.contenido h1:first-child,
.contenido h2:first-child { margin-top: 0; }
.contenido h1::after,
.contenido h2::after {
    content: '';
    position: absolute; bottom: 0; left: 0;
    width: 40px; height: 3px;
    background: var(--amarillo); border-radius: 2px;
}
.contenido p {
    font-size: 15px; color: var(--gris-texto);
    line-height: 1.8; max-width: 680px;
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features-section {
    padding: 80px 56px;
    max-width: 1200px; margin: 0 auto;
}
.features-section h2, .section-title {
    font-family: var(--titulo);
    font-size: clamp(22px, 3vw, 36px);
    font-weight: 700; color: var(--azul);
    text-align: center; margin-bottom: 10px;
}
.section-sub { text-align: center; color: var(--gris-texto); font-size: 15px; margin-bottom: 44px; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
    gap: 18px;
}
.feature-card {
    background: var(--blanco);
    border: 1px solid var(--gris-medio);
    border-radius: var(--radio-lg);
    padding: 30px 26px;
    transition: all var(--trans);
    position: relative; overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--azul), var(--azul-claro));
    opacity: 0; transition: opacity var(--trans);
}
.feature-card:hover {
    border-color: rgba(26,58,110,0.18);
    transform: translateY(-4px);
    box-shadow: var(--sombra-md);
}
.feature-card:hover::before { opacity: 1; }
.feature-card > span { font-size: 36px; display: block; margin-bottom: 14px; }
.feature-card h3 {
    font-family: var(--titulo);
    font-size: 16px; font-weight: 700;
    color: var(--azul); margin-bottom: 9px;
}
.feature-card p { font-size: 14px; color: var(--gris-texto); line-height: 1.7; }

/* ============================================================
   SHOWCASE
   ============================================================ */
.showcase-section { padding: 80px 56px; background: var(--gris-claro); }
.showcase-inner {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 64px; align-items: center;
}
.showcase-inner.reverse { direction: rtl; }
.showcase-inner.reverse > * { direction: ltr; }
.showcase-text h2 {
    font-family: var(--titulo);
    font-size: clamp(22px, 2.8vw, 36px);
    font-weight: 700; color: var(--azul);
    line-height: 1.25; margin-bottom: 14px;
    position: relative; padding-bottom: 14px;
}
.showcase-text h2::after {
    content: '';
    position: absolute; bottom: 0; left: 0;
    width: 40px; height: 3px;
    background: var(--amarillo); border-radius: 2px;
}
.showcase-text p { font-size: 15px; color: var(--gris-texto); line-height: 1.8; margin-bottom: 20px; }
.showcase-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.showcase-list li {
    font-size: 15px; color: var(--oscuro);
    display: flex; align-items: flex-start; gap: 10px;
}
.showcase-list li::before {
    content: '✓';
    flex-shrink: 0;
    width: 20px; height: 20px;
    background: rgba(26,58,110,0.08);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 800; color: var(--azul);
    margin-top: 2px;
}
.showcase-img {
    border-radius: var(--radio-lg);
    overflow: hidden;
    box-shadow: var(--sombra-md);
    border: 1px solid var(--gris-medio);
}
.showcase-img img {
    width: 100%; height: 360px;
    object-fit: cover; transition: transform 0.55s ease;
}
.showcase-img:hover img { transform: scale(1.03); }

/* Botón azul compartido */
.btn-azul {
    display: inline-block;
    background: var(--azul); color: #fff;
    padding: 13px 32px; border-radius: var(--radio);
    font-size: 15px; font-weight: 700;
    font-family: var(--titulo);
    transition: all var(--trans);
    box-shadow: 0 5px 18px rgba(26,58,110,0.22);
}
.btn-azul:hover {
    background: var(--azul-medio);
    transform: translateY(-2px);
    box-shadow: 0 9px 26px rgba(26,58,110,0.3);
}

/* ============================================================
   CTA
   ============================================================ */
.cta-section { padding: 80px 56px; background: var(--gris-claro); text-align: center; }
.cta-inner { max-width: 660px; margin: 0 auto; }
.cta-section h2 {
    font-family: var(--titulo);
    font-size: clamp(24px, 3.5vw, 40px);
    font-weight: 700; color: var(--azul); margin-bottom: 12px;
}
.cta-section p { font-size: 16px; color: var(--gris-texto); margin-bottom: 28px; line-height: 1.7; }

/* ============================================================
   FORMULARIOS
   ============================================================ */
.form-section {
    display: flex; justify-content: center;
    padding: 64px 24px; background: var(--gris-claro);
}
.formulario {
    background: var(--blanco);
    border: 1px solid var(--gris-medio);
    border-radius: var(--radio-lg);
    padding: 44px 38px;
    width: 100%; max-width: 450px;
    box-shadow: var(--sombra-md);
}
.formulario h2 {
    font-family: var(--titulo);
    font-size: 24px; font-weight: 700;
    text-align: center; color: var(--azul);
    margin-bottom: 28px; padding-bottom: 16px;
    border-bottom: 1px solid var(--gris-medio);
}
.formulario input,
.formulario textarea {
    width: 100%;
    background: var(--gris-claro);
    border: 1px solid var(--gris-medio);
    border-radius: var(--radio);
    padding: 13px 15px;
    color: var(--oscuro);
    font-size: 14px; font-family: var(--fuente);
    margin-bottom: 13px; outline: none;
    transition: border-color var(--trans), box-shadow var(--trans);
}
.formulario .doc-row {
    display: flex;
    gap: 8px;
    margin-bottom: 13px;
}
.formulario .doc-row input {
    margin-bottom: 0;
}
.formulario .doc-row button {
    width: auto;
    min-width: 46px;
    padding: 0 14px;
    border-radius: var(--radio);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.formulario input::placeholder,
.formulario textarea::placeholder { color: #b0bccf; }
.formulario input:focus,
.formulario textarea:focus {
    border-color: var(--azul-claro);
    background: var(--blanco);
    box-shadow: 0 0 0 3px rgba(58,123,213,0.1);
}
.formulario textarea { min-height: 120px; resize: vertical; }
.formulario button {
    width: 100%; background: var(--azul); color: #fff;
    border: none; border-radius: var(--radio);
    padding: 14px; font-size: 15px; font-weight: 700;
    font-family: var(--titulo); cursor: pointer;
    transition: all var(--trans);
    box-shadow: 0 5px 18px rgba(26,58,110,0.22);
}
.formulario button:hover {
    background: var(--azul-medio);
    transform: translateY(-1px);
    box-shadow: 0 9px 26px rgba(26,58,110,0.3);
}
.formulario .error {
    color: #c53030; font-size: 13px; text-align: center;
    margin-top: 10px; background: #fff5f5;
    border: 1px solid #fed7d7; border-radius: 8px; padding: 9px;
}
.formulario .legal {
    font-size: 12px; color: #b0bccf; line-height: 1.6;
    margin-bottom: 13px; padding: 10px;
    background: var(--gris-claro); border-radius: 8px;
}

/* AUTH SPLIT */
.auth-section { display: grid; grid-template-columns: 1fr 1fr; min-height: 80vh; }
.auth-image { position: relative; overflow: hidden; background: linear-gradient(135deg, #0b1a35, #1a3a6e); }
.auth-image img { width: 100%; height: 100%; object-fit: cover; opacity: 0.15; }
.auth-image-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 52px; }
.auth-image-overlay h2 { font-family: var(--titulo); font-size: 28px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.auth-image-overlay p { color: rgba(255,255,255,0.6); font-size: 14px; margin-bottom: 26px; line-height: 1.7; }
.auth-image-overlay ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.auth-image-overlay ul li { font-size: 14px; color: rgba(255,255,255,0.65); }
.auth-form { display: flex; flex-direction: column; justify-content: center; padding: 44px 36px; background: var(--gris-claro); }
.auth-form .form-section { padding: 0; background: transparent; }

/* ============================================================
   CARDS / PRODUCTOS
   ============================================================ */
.productos-section { padding: 60px 56px; max-width: 1200px; margin: 0 auto; }
.productos-section h2 {
    font-family: var(--titulo);
    font-size: clamp(20px, 2.8vw, 34px);
    font-weight: 700; color: var(--azul);
    text-align: center; margin-bottom: 44px;
    padding-bottom: 14px; position: relative;
}
.productos-section h2::after {
    content: '';
    position: absolute; bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 48px; height: 3px;
    background: var(--amarillo); border-radius: 2px;
}
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
    gap: 18px;
}
.card {
    background: var(--blanco);
    border: 1px solid var(--gris-medio);
    border-radius: var(--radio-lg);
    overflow: hidden;
    transition: all var(--trans);
}
.card:hover { border-color: rgba(26,58,110,0.18); transform: translateY(-4px); box-shadow: var(--sombra-md); }
.card h3 { padding: 22px 20px 7px; font-family: var(--titulo); font-size: 16px; font-weight: 700; color: var(--azul); }
.card p  { padding: 0 20px 20px; font-size: 14px; color: var(--gris-texto); }
.card.card-visual h3 { padding-top: 16px; }
.card.card-visual img { width: 100%; height: 185px; object-fit: cover; transition: transform 0.5s ease; }
.card.card-visual:hover img { transform: scale(1.05); }
.card-body { padding: 16px 20px 22px; }
.card-body h3 { padding: 0; margin-bottom: 7px; }
.card-body p  { padding: 0; margin-bottom: 13px; }
.btn-card { display: inline-block; font-size: 13px; font-weight: 600; color: var(--azul); transition: all var(--trans); }

/* ============================================================
   BLOG
   ============================================================ */
.blog-section { padding: 0 56px 80px; max-width: 1200px; margin: 0 auto; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(295px, 1fr)); gap: 18px; }
.blog-card { background: var(--blanco); border: 1px solid var(--gris-medio); border-radius: var(--radio-lg); overflow: hidden; transition: all var(--trans); }
.blog-card:hover { border-color: rgba(26,58,110,0.18); transform: translateY(-4px); box-shadow: var(--sombra-md); }
.blog-card img { width: 100%; height: 190px; object-fit: cover; transition: transform 0.5s; }
.blog-card:hover img { transform: scale(1.04); }
.blog-card-body { padding: 18px 20px 24px; }
.blog-tag {
    display: inline-block; font-size: 10px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--azul); background: rgba(26,58,110,0.07);
    border: 1px solid rgba(26,58,110,0.13);
    padding: 4px 11px; border-radius: 50px; margin-bottom: 9px;
}
.blog-card h3 { font-family: var(--titulo); font-size: 15px; font-weight: 700; color: var(--oscuro); margin-bottom: 8px; line-height: 1.4; }
.blog-card p   { font-size: 13px; color: var(--gris-texto); line-height: 1.7; margin-bottom: 12px; }
.blog-link { font-size: 13px; font-weight: 600; color: var(--azul); }

/* ============================================================
   HERRAMIENTAS
   ============================================================ */
.herramientas-section { padding: 0 56px 80px; max-width: 1200px; margin: 0 auto; }
.herramientas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(295px, 1fr)); gap: 18px; }
.herramienta-card { background: var(--blanco); border: 1px solid var(--gris-medio); border-radius: var(--radio-lg); overflow: hidden; transition: all var(--trans); }
.herramienta-card:hover { border-color: rgba(26,58,110,0.18); transform: translateY(-4px); box-shadow: var(--sombra-md); }
.herramienta-card img { width: 100%; height: 165px; object-fit: cover; transition: transform 0.5s; }
.herramienta-card:hover img { transform: scale(1.04); }
.herramienta-body { padding: 18px 20px 24px; }
.herr-tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--azul); background: rgba(26,58,110,0.07); border: 1px solid rgba(26,58,110,0.13); padding: 4px 11px; border-radius: 50px; margin-bottom: 9px; }
.herramienta-body h3 { font-family: var(--titulo); font-size: 15px; font-weight: 700; color: var(--oscuro); margin-bottom: 7px; }
.herramienta-body p  { font-size: 13px; color: var(--gris-texto); line-height: 1.7; margin-bottom: 14px; }
.btn-herramienta { display: inline-block; background: var(--azul); color: #fff; padding: 9px 18px; border-radius: 9px; font-size: 13px; font-weight: 600; transition: all var(--trans); border: none; cursor: pointer; }
.btn-herramienta:hover { background: var(--azul-medio); }

/* ============================================================
   MANUALES
   ============================================================ */
.manuales-section { padding: 0 56px 80px; max-width: 880px; margin: 0 auto; }
.manuales-grid { display: flex; flex-direction: column; gap: 11px; }
.manual-card {
    background: var(--blanco); border: 1px solid var(--gris-medio);
    border-left: 4px solid var(--azul);
    border-radius: var(--radio); padding: 20px 24px;
    display: flex; align-items: center; gap: 18px;
    transition: all var(--trans);
}
.manual-card:hover { border-left-color: var(--amarillo); transform: translateX(4px); box-shadow: var(--sombra); }
.manual-icon { font-size: 30px; flex-shrink: 0; }
.manual-body h3 { font-family: var(--titulo); font-size: 15px; font-weight: 700; color: var(--azul); margin-bottom: 4px; }
.manual-body p  { font-size: 13px; color: var(--gris-texto); margin-bottom: 6px; }
.manual-link { font-size: 13px; font-weight: 600; color: var(--azul); }

/* ============================================================
   SERVICIOS
   ============================================================ */
.servicios-section { padding: 0 56px 72px; max-width: 1200px; margin: 0 auto; }
.servicios-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(295px, 1fr)); gap: 18px; }
.servicio-card { background: var(--blanco); border: 1px solid var(--gris-medio); border-radius: var(--radio-lg); overflow: hidden; transition: all var(--trans); }
.servicio-card:hover { border-color: rgba(26,58,110,0.2); transform: translateY(-4px); box-shadow: var(--sombra-md); }
.servicio-card img { width: 100%; height: 190px; object-fit: cover; transition: transform 0.5s; }
.servicio-card:hover img { transform: scale(1.03); }
.servicio-body { padding: 22px 24px 26px; }
.servicio-tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--azul); background: rgba(26,58,110,0.07); border: 1px solid rgba(26,58,110,0.13); padding: 4px 11px; border-radius: 50px; margin-bottom: 11px; }
.servicio-body h3 { font-family: var(--titulo); font-size: 17px; font-weight: 700; color: var(--azul); margin-bottom: 9px; }
.servicio-body p  { font-size: 14px; color: var(--gris-texto); line-height: 1.7; margin-bottom: 12px; }
.servicio-body ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.servicio-body ul li { font-size: 13px; color: var(--gris-texto); }

/* ============================================================
   CONTACTO INFO
   ============================================================ */
.contacto-info-section { padding: 0 56px 80px; max-width: 1200px; margin: 0 auto; }
.contacto-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.info-card {
    background: var(--blanco); border: 1px solid var(--gris-medio);
    border-radius: var(--radio-lg); padding: 28px 20px;
    text-align: center; transition: all var(--trans);
}
.info-card:hover { border-color: rgba(26,58,110,0.2); transform: translateY(-3px); box-shadow: var(--sombra-md); }
.info-icon { font-size: 32px; margin-bottom: 11px; display: block; }
.info-card h4 { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--azul); margin-bottom: 7px; font-family: var(--titulo); }
.info-card p { font-size: 13px; color: var(--gris-texto); line-height: 1.7; }
.info-card p:first-of-type { color: var(--oscuro); font-weight: 600; }


/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--oscuro); padding: 60px 56px 26px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; max-width: 1200px; margin: 0 auto 44px; }
.footer-logo { font-family: var(--titulo); font-size: 17px; font-weight: 800; color: #fff; letter-spacing: 0.5px; margin-bottom: 12px; display: block; }
.footer-brand p { color: rgba(255,255,255,0.45); font-size: 13px; line-height: 1.8; max-width: 265px; margin-bottom: 16px; }
.footer-social { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-social a { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.6); padding: 7px 15px; border-radius: 50px; font-size: 12px; font-weight: 500; transition: all var(--trans); }
.footer-social a:hover { background: var(--amarillo); color: var(--oscuro); border-color: var(--amarillo); }
.footer-col h4 { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--amarillo); margin-bottom: 15px; font-family: var(--titulo); }
.footer-col a { display: block; color: rgba(255,255,255,0.45); font-size: 13px; margin-bottom: 10px; transition: color var(--trans); }
.footer-col a:hover { color: #fff; }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.07); text-align: center; font-size: 13px; color: rgba(255,255,255,0.3); }

/* ============================================================
   ANIMACIÓN
   ============================================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .navbar { padding: 0 20px; }
    .menu a { padding: 8px 10px; }
    .icons { gap: 8px; }
    .icons a { padding: 9px 14px; }
    .account-icon .account-text { display: none; }
    .showcase-inner { grid-template-columns: 1fr; gap: 32px; }
    .showcase-inner.reverse { direction: ltr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .auth-section { grid-template-columns: 1fr; }
    .auth-image { display: none; }
}
@media (max-width: 768px) {
    .navbar { padding: 0 18px; }
    .menu  { display: none; }
    .icons { margin-left: 8px; gap: 6px; }
    .icons a { padding: 8px 10px; }
    /* On small screens we hide desktop submenu; implement a mobile menu separately if needed */
    .topbar { padding: 7px 18px; }
    .partners-bar { padding: 14px 18px; }
    .hero-stats { gap: 22px; flex-wrap: wrap; }
    .hero-logo-area { flex-direction: column; }
    .contenido, .features-section, .productos-section,
    .servicios-section, .blog-section, .herramientas-section,
    .manuales-section, .contacto-info-section { padding-left: 18px; padding-right: 18px; }
    .showcase-section, .cta-section { padding-left: 18px; padding-right: 18px; }
    .footer { padding: 44px 18px 22px; }
    .footer-grid { grid-template-columns: 1fr; gap: 22px; }
}

/* === ICONOS SOCIALES CTA FINAL === */
.cta-social {
  margin-top: 44px;
  display: flex;
  gap: 38px;
  justify-content: center;
  align-items: center;
}
.cta-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 12px #0001;
  border: 2.5px solid #e6e6e6;
  font-size: 2.45em;
  transition: box-shadow .22s, transform .18s, color .18s, background .18s;
  margin: 0 2px;
  cursor: pointer;
  position: relative;
}
.cta-social-icon:hover {
  box-shadow: 0 6px 24px #0002;
  transform: translateY(-6px) scale(1.09) rotate(-3deg);
  background: #f5f8ff;
}
.cta-fb i { color: #1877f3; }
.cta-tiktok i { color: #000; }
.cta-location i { color: #e53935; }
@media (max-width: 600px) {
  .cta-social-icon { width: 48px; height: 48px; font-size: 1.7em; }
  .cta-social { gap: 18px !important; }
}
