/* ═══════════════════════════════════════════════════════════════
   WEB FRONTEND — Estilos compartidos
   Carga después de style.css — corrige y complementa el tema
   ═══════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════
   1. NAVBAR — fondo blanco con links navy + acento azul tema
   ══════════════════════════════════════════════════════════════ */

/* Fondo y sombra del área de navegación */
.navbar-area,
.navbar-area.is-sticky {
    background-color: #fff !important;
    box-shadow: 0 2px 24px rgba(0, 0, 0, .09) !important;
}

/* Links del menú principal → navy oscuro (no negro puro, no verde) */
.main-nav nav .navbar-nav .nav-item > a {
    color: #1a2e44 !important;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: .15px;
    transition: color .2s ease !important;
}

/* Hover y activo → azul del tema */
.main-nav nav .navbar-nav .nav-item > a:hover,
.main-nav nav .navbar-nav .nav-item > a.active,
.navbar-area.is-sticky .main-nav nav .navbar-nav .nav-item > a:hover,
.navbar-area.is-sticky .main-nav nav .navbar-nav .nav-item > a.active {
    color: #1f12fd !important;
}

/* Dropdown links */
.main-nav nav .navbar-nav .nav-item .dropdown-menu .nav-item a {
    color: #1a2e44 !important;
    font-weight: 400;
}
.main-nav nav .navbar-nav .nav-item .dropdown-menu .nav-item a:hover,
.main-nav nav .navbar-nav .nav-item .dropdown-menu .nav-item a.active {
    color: #1f12fd !important;
}

/* Topbar — mantener estilo pero homogeneizar */
.topbar {
    background-color: #f8f9fb;
    border-bottom: 1px solid #e8ecf0;
}
.topbar-inner { border-bottom: none !important; }
.topbar-list li { color: #444 !important; font-size: 14px; }
.topbar-list li a { color: #444 !important; }
.topbar-list li a:hover { color: #1f12fd !important; }
.topbar-list li i { color: #1f12fd !important; }

/* ══════════════════════════════════════════════════════════════
   2. FOOTER — corregir .text00 (verde #21f109 → blanco legible)
   ══════════════════════════════════════════════════════════════ */

.footer-content-title .text00,
.footer-logo .text00 {
    color: rgba(255, 255, 255, .65) !important;
    font-size: 13px !important;
}

.footer-content-title p.text00 {
    font-size: 14px !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, .5) !important;
    margin-bottom: .6rem;
}

/* ══════════════════════════════════════════════════════════════
   3. PAGE HERO — corregir color de headings (override #062702)
   ══════════════════════════════════════════════════════════════ */
.page-hero {
    position: relative;
    overflow: hidden;
    min-height: 340px;
    display: flex;
    align-items: center;
    margin-top: 100px;
    padding: 5rem 0 7rem;
    background: linear-gradient(135deg, #07101c 0%, #0d2137 50%, #163550 100%);
    color: #fff;
}

/* Headings dentro del hero → SIEMPRE blancos */
.page-hero h1,
.page-hero h2,
.page-hero h3,
.page-hero h4,
.page-hero h5,
.page-hero h6 {
    color: #fff !important;
    font-family: poppins, sans-serif;
}

/* Links dentro del hero → semitransparente blanco */
.page-hero a {
    color: rgba(255, 255, 255, .6) !important;
}
.page-hero a:hover {
    color: #fff !important;
}

/* Dot pattern overlay */
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 26px 26px;
    pointer-events: none;
    z-index: 0;
}

/* Radial glow — top right */
.page-hero::after {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(31, 18, 253, .14) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

/* Circles decorativos */
.page-hero .hero-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.page-hero .hero-ring-1 {
    top: -80px; left: -80px;
    width: 320px; height: 320px;
    border: 1px solid rgba(255, 255, 255, .05);
}
.page-hero .hero-ring-2 {
    top: -20px; left: -20px;
    width: 200px; height: 200px;
    border: 1px solid rgba(255, 255, 255, .07);
}

/* Contenido sobre el fondo */
.page-hero .hero-inner { position: relative; z-index: 1; }

/* Wave SVG inferior */
.page-hero .hero-wave {
    position: absolute;
    bottom: -1px; left: 0;
    width: 100%; line-height: 0;
    z-index: 1;
}

/* ══════════════════════════════════════════════════════════════
   4. BREADCRUMB dentro del hero
   — style.css aplica justify-content:center y separador Flaticon.
     Overrides con alta especificidad + !important para ganar.
   ══════════════════════════════════════════════════════════════ */

/* Resetear todo: left-align por defecto */
.page-hero .hero-breadcrumb .breadcrumb {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;   /* override style.css center */
    background: transparent !important;
    padding: 0 !important;
    margin: 0 0 1rem 0 !important;
    list-style: none;
    gap: 0;
}

/* Variante centrada: para páginas CMS con layout centered */
.page-hero .hero-breadcrumb-center .breadcrumb {
    justify-content: center !important;
}

/* Items */
.page-hero .hero-breadcrumb .breadcrumb-item {
    font-size: .78rem !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, .55) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: flex;
    align-items: center;
}

/* Links */
.page-hero .hero-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, .55) !important;
    text-decoration: none !important;
    font-size: .78rem !important;
    letter-spacing: .3px;
    transition: color .2s;
}
.page-hero .hero-breadcrumb .breadcrumb-item a:hover {
    color: rgba(255, 255, 255, .95) !important;
}

/* Active */
.page-hero .hero-breadcrumb .breadcrumb-item.active {
    color: rgba(255, 255, 255, .88) !important;
    font-weight: 500 !important;
    font-size: .78rem !important;
}

/* Separator — override ícono Flaticon de style.css */
.page-hero .hero-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "/" !important;
    font-family: inherit !important;     /* cancelar Flaticon */
    font-size: .78rem !important;
    font-weight: 300;
    color: rgba(255, 255, 255, .3) !important;
    padding: 0 .45rem !important;
    padding-top: 0 !important;           /* cancelar padding-top de style.css */
}

/* ══════════════════════════════════════════════════════════════
   5. HERO — etiqueta, título, subtítulo, accent bar
   ══════════════════════════════════════════════════════════════ */
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #93c5fd;
    margin-bottom: .75rem;
}
.hero-tag::before {
    content: '';
    display: inline-block;
    width: 22px; height: 2px;
    background: linear-gradient(90deg, #60a5fa, #93c5fd);
    border-radius: 1px;
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem) !important;
    font-weight: 800 !important;
    line-height: 1.18 !important;
    letter-spacing: -.5px !important;
    margin-bottom: .85rem !important;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .3);
}

.hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, .68);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 0;
}

.hero-accent-bar {
    width: 52px; height: 3px;
    background: linear-gradient(90deg, #1f12fd, #60a5fa);
    border-radius: 2px;
    margin: .6rem 0 1.2rem;
}

/* ══════════════════════════════════════════════════════════════
   6. HERO STAT badges (glassmorphism)
   ══════════════════════════════════════════════════════════════ */
.hero-stat {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: .85rem 1.4rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, .07);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .1);
    min-width: 100px;
}
.hero-stat .stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff !important;
    line-height: 1;
}
.hero-stat .stat-label {
    font-size: .72rem;
    color: rgba(255, 255, 255, .6);
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-top: .25rem;
}

/* ══════════════════════════════════════════════════════════════
   7. CARDS — hover effects
   ══════════════════════════════════════════════════════════════ */

/* ── Blog cards (sin conflicto con style.css) ── */
.blog-card {
    transition: transform .3s ease, box-shadow .3s ease;
}
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, .13) !important;
}
.blog-card-img img {
    transition: transform .45s ease;
}
.blog-card:hover .blog-card-img img {
    transform: scale(1.06);
}

/* ── Service cards (svc-item — clase propia, sin conflicto con style.css) ── */
.svc-item {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .07);
    transition: transform .3s ease, box-shadow .3s ease;
    position: relative;
    border-top: 3px solid transparent;
    background-clip: padding-box;
}
.svc-item::before {
    /* línea superior de color — reemplaza la del tema */
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1f12fd, #60a5fa);
    border-radius: 14px 14px 0 0;
    opacity: 0;
    transition: opacity .3s ease;
    z-index: 1;
}
.svc-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 42px rgba(0, 0, 0, .12);
}
.svc-item:hover::before {
    opacity: 1;
}

/* Imagen thumbnail */
.svc-item-thumb {
    height: 220px;
    overflow: hidden;
    background: #f0f4f8;
    position: relative;
}
.svc-item-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}
.svc-item:hover .svc-item-thumb img {
    transform: scale(1.05);
}

/* Fallback icon (sin imagen) */
.svc-item-icon {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
}
.svc-item-icon i {
    font-size: 3.5rem;
    color: #cbd5e1;
    transition: color .3s, transform .3s;
}
.svc-item:hover .svc-item-icon i {
    color: #1f12fd;
    transform: scale(1.1);
}

/* Cuerpo */
.svc-item-body {
    padding: 1.4rem 1.5rem 1.6rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.svc-item-body h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a2e44;
    margin-bottom: .6rem;
    transition: color .2s;
}
.svc-item:hover .svc-item-body h5 {
    color: #1f12fd;
}
.svc-item-body p {
    font-size: .88rem;
    color: #6b7a8d;
    line-height: 1.65;
    margin-bottom: 1.2rem;
    flex-grow: 1;
}
.svc-item-body .svc-badge {
    display: inline-block;
    background: rgba(31, 18, 253, .08);
    color: #1f12fd;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    border-radius: 4px;
    padding: 2px 8px;
    margin-bottom: .6rem;
    width: fit-content;
}
.svc-item-body .svc-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .88rem;
    font-weight: 600;
    color: #1f12fd;
    text-decoration: none;
    transition: gap .2s, color .2s;
    margin-top: auto;
    width: fit-content;
}
.svc-item-body .svc-link:hover {
    color: #0d0abf;
    gap: .55rem;
}
