/* ==========================================================
   Calimetro Perú — sitio web
   Paleta tomada del logo: azul #2C5ECB · rojo #FF3131 · grafito #322F30
   ========================================================== */
:root {
  --blue: #2c5ecb;
  --blue-dk: #1f47a3;
  --blue-soft: #eaf0fc;
  --red: #ff3131;
  --red-dk: #e01e1e;
  --navy: #0f1b3d;
  --navy-2: #16264f;
  --ink: #1d2433;
  --muted: #5d6679;
  --line: #e3e8f2;
  --soft: #f5f7fb;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(15, 27, 61, .08);
  --shadow-lg: 0 24px 60px rgba(15, 27, 61, .16);
  --font-h: 'League Spartan', 'Inter', system-ui, sans-serif;
}
html { scroll-behavior: smooth; overflow-x: clip; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--ink); background: #fff; overflow-x: clip; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-h); font-weight: 700; color: var(--navy); }
a { color: var(--blue); }
img { max-width: 100%; }
.text-white-75 { color: rgba(255, 255, 255, .78); }

/* ---------- Botones ---------- */
.btn { border-radius: 10px; font-weight: 600; }
.btn-brand { background: var(--red); border-color: var(--red); color: #fff; }
.btn-brand:hover, .btn-brand:focus { background: var(--red-dk); border-color: var(--red-dk); color: #fff; }
.btn-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-outline-navy { border: 1.5px solid var(--navy); color: var(--navy); background: transparent; }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.btn-wa { background: #25d366; border-color: #25d366; color: #fff; }
.btn-wa:hover { background: #1eb858; color: #fff; }
.btn i { vertical-align: -1px; }

/* ---------- Topbar ---------- */
.topbar { position: relative; background: var(--navy); color: #fff; font-size: .88rem; font-weight: 500; padding: 7px 44px 7px 16px; }
.topbar-tag { background: #fff; color: var(--navy); border-radius: 999px; padding: 2px 10px; font-weight: 800; font-size: .72rem; letter-spacing: .04em; white-space: nowrap; }
.topbar-btn { background: var(--red); color: #fff; text-decoration: none; border-radius: 6px; padding: 3px 10px; font-weight: 600; white-space: nowrap; }
.topbar-btn:hover { background: var(--red-dk); color: #fff; }
.topbar-close { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #fff; opacity: .7; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(15, 27, 61, .08); }
.site-header .navbar { padding: 10px 0; }
.navbar-brand img { height: 54px; width: auto; }
.site-header .nav-link { font-weight: 600; color: var(--ink); padding: 10px 14px !important; position: relative; }
.site-header .nav-link:hover, .site-header .nav-link.active { color: var(--blue); }
.site-header .nav-link.active::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 3px; border-radius: 3px; background: var(--red); }
.navbar-toggler { border: 0; font-size: 2rem; color: var(--navy); padding: 0 4px; }
.navbar-toggler:focus { box-shadow: none; }
.mega-menu { width: 620px; padding: 0; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; left: 50%; transform: translateX(-50%); margin-top: 10px !important; }
.mega-title { font-family: var(--font-h); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.mega-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .94rem; }
.mega-link i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: var(--blue-soft); color: var(--blue); }
.mega-link:hover { background: var(--soft); color: var(--blue); }
.mega-side { background: var(--soft); }
/* Mega-menú controlado por JS (site.js): .open en el <li>. El puente cubre el hueco
   entre el enlace y el panel para que el puntero no "pierda" el menú al bajar. */
.nav-item.mega.open > .dropdown-menu { display: block; }
.nav-item.mega.open::after { content: ''; position: absolute; left: -60px; right: -60px; top: 100%; height: 16px; }

.menu-movil .mm-link { display: block; padding: 12px 4px; font-family: var(--font-h); font-size: 1.25rem; font-weight: 700; color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--line); }
.menu-movil .mm-link.active { color: var(--red); }
.mm-sub { padding: 6px 0 6px 12px; border-bottom: 1px solid var(--line); }
.mm-sub a { display: block; padding: 7px 0; color: var(--muted); text-decoration: none; font-weight: 500; }
.mm-sub a i { color: var(--blue); margin-right: 6px; }

/* ---------- Tipografía de secciones ---------- */
.section { padding: 90px 0; }
.section-soft { background: var(--soft); }
.section-navy { background: radial-gradient(circle at 85% 10%, #22386f 0, var(--navy) 55%); color: #fff; }
.kicker { display: inline-block; font-family: var(--font-h); font-weight: 700; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.kicker-light { color: #fff; opacity: .9; }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800; line-height: 1.08; letter-spacing: -.01em; }
.section-sub { color: var(--muted); font-size: 1.08rem; max-width: 720px; }
.sub-title { font-size: 1.5rem; color: var(--blue); }
.hl-blue { color: var(--blue); }
.hl-red { color: var(--red); }
.pill-blue { background: var(--blue); color: #fff; padding: 0 .35em; border-radius: 12px; box-shadow: 0 6px 18px rgba(44, 94, 203, .3); white-space: nowrap; }
.display-title { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 900; color: #fff; text-transform: uppercase; line-height: .98; }

/* ---------- Hero portada ---------- */
.hero { position: relative; min-height: min(760px, calc(100vh - 110px)); display: flex; align-items: center; background: var(--navy); overflow: hidden; color: #fff; }
.hero-bg { position: absolute !important; inset: 0; z-index: 0; }
.hero-bg-img { width: 100%; height: 100%; background-size: cover; background-position: center; transform: scale(1.06); transition: transform 7s ease; }
.hero-bg .swiper-slide-active .hero-bg-img { transform: scale(1); }
.hero-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10, 18, 42, .95) 0%, rgba(10, 18, 42, .82) 42%, rgba(10, 18, 42, .35) 100%); }
.hero-content { position: relative; z-index: 2; padding-top: 70px; padding-bottom: 90px; }
.hero-text { overflow: hidden; }
.hero-title { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 900; color: #fff; text-transform: uppercase; line-height: .95; letter-spacing: -.01em; margin-bottom: 26px; }
.hero-list { list-style: none; padding: 0; margin: 0 0 30px; }
.hero-list li { position: relative; padding-left: 26px; margin-bottom: 7px; font-size: 1.08rem; font-weight: 500; }
.hero-list li::before { content: ''; position: absolute; left: 0; top: .5em; width: 11px; height: 11px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(255, 49, 49, .25); }
.hero-list-inline { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-list-inline li { padding: 6px 14px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; margin: 0; font-weight: 700; }
.hero-list-inline li::before { display: none; }
.hero-cards { overflow: visible !important; clip-path: inset(-60px -100vw -60px 0); }
.hero-text .swiper-slide { opacity: 0 !important; transition-property: opacity; }
.hero-text .swiper-slide-active { opacity: 1 !important; }
.hero-card { display: block; position: relative; height: 400px; border-radius: 22px; overflow: hidden; background: #fff; border: 6px solid rgba(255, 255, 255, .35); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); text-decoration: none; transition: transform .3s, opacity .3s; }
.hero-card img { width: 100%; height: 100%; object-fit: contain; padding: 24px 24px 70px; }
.hero-card-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px; background: linear-gradient(0deg, rgba(10, 18, 42, .92), rgba(10, 18, 42, .6)); color: #fff; font-family: var(--font-h); font-size: 1.35rem; font-weight: 700; }
.hero-card-label i { color: var(--red); }
.hero-cards .swiper-slide:not(.swiper-slide-active) { opacity: .55; transform: scale(.9); }
.hero-nav { position: absolute; left: 12px; right: 12px; bottom: 26px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.hero-nav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .1); color: #fff; font-size: 1.1rem; }
.hero-nav button:hover { background: var(--red); border-color: var(--red); }
.hero-pagination { width: auto !important; display: flex; gap: 6px; }
.hero-pagination .swiper-pagination-bullet { background: #fff; opacity: .5; width: 10px; height: 10px; margin: 0 !important; transition: width .3s; }
.hero-pagination .swiper-pagination-bullet-active { opacity: 1; width: 30px; border-radius: 6px; background: var(--red); }

/* ---------- Page hero (páginas internas) ---------- */
.page-hero { position: relative; padding: 90px 0 80px; background: var(--navy); color: #fff; overflow: hidden; }
.page-hero .ph-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero.ph-multi .ph-bg { opacity: 0; animation: phFade 12s infinite; }
@keyframes phFade { 0% { opacity: 0; } 8% { opacity: 1; } 50% { opacity: 1; } 58% { opacity: 0; } 100% { opacity: 0; } }
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10, 18, 42, .92), rgba(10, 18, 42, .55)); }
.page-hero > .container { z-index: 2; }
.page-hero .lead-hero { max-width: 680px; font-size: 1.12rem; color: rgba(255, 255, 255, .85); margin: 18px 0 0; }
.migas { font-size: .88rem; margin-bottom: 18px; color: rgba(255, 255, 255, .7); }
.migas a { color: #fff; text-decoration: none; }
.migas i { font-size: .7rem; margin: 0 8px; }

/* ---------- Valores ---------- */
.valores-swiper { padding-bottom: 40px !important; }
.valor-card { height: 100%; min-height: 270px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow); }
.valor-card h3 { font-size: 1.3rem; text-transform: uppercase; color: var(--blue); margin: 18px 0 10px; }
.valor-card p { color: var(--muted); margin: 0; }
.valor-icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; background: linear-gradient(135deg, var(--blue), var(--blue-dk)); color: #fff; }
.valores-swiper .swiper-slide { height: auto; }
.valores-pagination { text-align: center; position: absolute; bottom: 0; left: 0; right: 0; }
.valores-pagination .swiper-pagination-bullet-active, .equipos-swiper .swiper-pagination-bullet-active { background: var(--blue); }

/* ---------- Acreditación ---------- */
.acred-box { display: flex; align-items: center; gap: 36px; max-width: 900px; margin: 0 auto; background: #fff; border-radius: var(--radius); padding: 30px 40px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.acred-logo img { width: 170px; }
.acred-box h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; text-transform: uppercase; }
.badge-acred { display: inline-flex; align-items: center; gap: 8px; background: var(--blue-soft); color: var(--blue-dk); font-weight: 700; font-size: .9rem; border-radius: 999px; padding: 6px 14px; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-weight: 500; font-size: .95rem; transition: .2s; }
.chip i { color: var(--red); }
.ico-img { display: inline-block; flex: 0 0 auto; width: 1.25em; height: 1.25em; background: var(--red); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.badge-acred { text-decoration: none; }
a.badge-acred:hover { background: var(--blue); color: #fff; }
.chip:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

/* ---------- Lab cards ---------- */
.lab-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: .25s; }
.lab-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.lab-card-img { height: 210px; background: linear-gradient(180deg, #fff, var(--soft)); display: grid; place-items: center; }
.lab-card-img img { max-height: 180px; object-fit: contain; transition: transform .4s; }
.lab-card:hover .lab-card-img img { transform: scale(1.06); }
.lab-card-body { position: relative; padding: 34px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.lab-card-icon { position: absolute; top: -26px; left: 24px; width: 52px; height: 52px; border-radius: 14px; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 1.4rem; box-shadow: 0 10px 20px rgba(255, 49, 49, .3); }
.lab-card h3 { font-size: 1.35rem; margin-bottom: 8px; }
.lab-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.lab-card-more { font-weight: 700; color: var(--blue); font-size: .92rem; }
.lab-card:hover .lab-card-more i { transform: translateX(4px); }
.lab-card-more i { display: inline-block; transition: .2s; }

/* ---------- Carrusel de equipos ---------- */
.equipos-band { background: #eef1f6; padding: 40px 0; }
.equipos-swiper { position: relative; padding: 0 50px !important; }
.equipos-swiper .swiper-slide { height: 200px; display: grid; place-items: center; }
.equipos-swiper img { max-height: 190px; mix-blend-mode: multiply; transition: transform .3s; }
.equipos-swiper img:hover { transform: scale(1.08); }
.eq-prev, .eq-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.eq-prev { left: 0; } .eq-next { right: 0; }

/* ---------- Bloques de servicio ---------- */
.svc-block { border-radius: 24px; padding: 40px; position: relative; overflow: hidden; }
.svc-block h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.svc-dark { background: linear-gradient(120deg, rgba(15, 27, 61, .96), rgba(31, 71, 163, .88)), var(--bg) center / cover; color: #fff; }
.svc-dark h2 { color: #fff; }
.svc-dark p { color: rgba(255, 255, 255, .85); }
.svc-light { background: var(--soft); border: 1px solid var(--line); }
.svc-benefits { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 28px; }
.svc-benefits span { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px; padding: 10px 14px; font-weight: 600; font-size: .92rem; }
.svc-benefits i { color: var(--red); font-size: 1.1rem; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; background: var(--navy); color: #fff; padding: 3px 9px; border-radius: 6px; }
.gas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gas-grid span { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 4px; font-family: var(--font-h); font-weight: 800; font-size: 1.15rem; color: var(--blue); }

/* ---------- Banda certificado ---------- */
.cert-band { padding: 90px 0; background: linear-gradient(135deg, var(--navy) 0%, #1a2f68 60%, var(--blue-dk) 100%); position: relative; overflow: hidden; }
.cert-band::after { content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255, 49, 49, .12); }
.cert-steps { list-style: none; padding: 0; margin: 0; color: #fff; }
.cert-steps li { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.cert-steps span { flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--red); display: grid; place-items: center; font-weight: 800; }
.cert-card { position: relative; z-index: 1; background: #fff; border-radius: 22px; padding: 32px; box-shadow: var(--shadow-lg); }
.cert-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.cert-card-head > i { font-size: 2.2rem; width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.cert-card-head strong { display: block; font-family: var(--font-h); font-size: 1.3rem; color: var(--navy); }
.cert-card-head small { color: var(--muted); }
.cert-card .form-control { font-family: ui-monospace, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.cert-card .form-control::placeholder { letter-spacing: .08em; }
.cert-portal { display: block; text-align: center; margin-top: 14px; font-weight: 600; text-decoration: none; font-size: .92rem; }

/* ---------- Sectores ---------- */
.sector-card { height: 100%; border-radius: var(--radius); padding: 30px 26px; background: #fff; border: 1px solid var(--line); transition: .25s; position: relative; overflow: hidden; }
.sector-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--red); transform: scaleY(0); transform-origin: bottom; transition: .3s; }
.sector-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.sector-card:hover::before { transform: scaleY(1); }
.sector-card > i { font-size: 2.3rem; color: var(--blue); }
.sector-card h3 { font-size: 1.3rem; margin: 14px 0 8px; }
.sector-card p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Por qué escogernos ---------- */
.why-photo { position: relative; margin-top: 28px; }
.why-photo img { width: 100%; height: 300px; object-fit: cover; border-radius: 22px; }
.why-badge { position: absolute; left: 18px; bottom: -22px; display: flex; align-items: center; gap: 12px; background: #fff; color: var(--navy); border-radius: 14px; padding: 12px 18px; box-shadow: var(--shadow-lg); }
.why-badge i { font-size: 1.8rem; color: var(--red); }
.why-badge strong { display: block; font-family: var(--font-h); }
.why-badge small { color: var(--muted); }
.why-item { display: flex; gap: 16px; height: 100%; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; padding: 22px; transition: .25s; }
.why-item:hover { background: rgba(255, 255, 255, .11); }
.why-item > i { flex: 0 0 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--red); font-size: 1.3rem; }
.why-item h3 { color: #fff; font-size: 1.15rem; margin-bottom: 4px; }
.why-item p { color: rgba(255, 255, 255, .72); font-size: .92rem; margin: 0; }

/* ---------- CTA ---------- */
.cta-band { padding: 0 0 90px; }
.section-navy + .cta-band, .cert-band + .cta-band, .svc-row + .cta-band { padding-top: 90px; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; border-radius: 26px; padding: 44px 48px; background: linear-gradient(120deg, var(--red) 0%, #ff5a3c 100%); color: #fff; box-shadow: 0 20px 50px rgba(255, 49, 49, .28); }
.cta-inner h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; margin-bottom: 6px; }
.cta-inner p { margin: 0; opacity: .92; max-width: 560px; }
.cta-inner .btn-light { color: var(--red); }

/* ---------- Páginas internas ---------- */
.lead-text { font-size: 1.12rem; color: var(--muted); }
.img-frame { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); }
.img-frame img { width: 100%; height: 100%; object-fit: cover; }
.mv-card { height: 100%; border-radius: var(--radius); padding: 34px; color: #fff; }
.mv-card h3 { color: #fff; font-size: 1.6rem; text-transform: uppercase; }
.mv-card > i { font-size: 2.4rem; opacity: .9; }
.mv-blue { background: linear-gradient(135deg, var(--blue), var(--blue-dk)); }
.mv-navy { background: linear-gradient(135deg, var(--navy-2), var(--navy)); }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.check-list li::before { content: '\F26A'; font-family: 'bootstrap-icons'; position: absolute; left: 0; top: 0; color: var(--red); }

.alcance-table { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.alcance-table th { background: var(--navy); color: #fff; font-family: var(--font-h); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .85rem; padding: 14px 18px; }
.alcance-table td { padding: 14px 18px; border-top: 1px solid var(--line); vertical-align: top; }
.alcance-table td:first-child { font-weight: 600; }
.alcance-table td:last-child { color: var(--blue-dk); font-weight: 700; }
.alcance-table tr:nth-child(even) td { background: var(--soft); }
.lab-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.lab-gallery div { aspect-ratio: 1; background: #fff; border: 1px solid var(--line); border-radius: 14px; display: grid; place-items: center; padding: 10px; }
.lab-gallery img { max-height: 100%; object-fit: contain; }
.lab-aside { position: sticky; top: 100px; }
.lab-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 600; }
.lab-nav a i { color: var(--blue); }
.lab-nav a:hover { background: var(--soft); }
.lab-nav a.active { background: var(--navy); color: #fff; }
.lab-nav a.active i { color: var(--red); }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }

.svc-row { padding: 80px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.svc-row:last-of-type { border-bottom: 0; }
.tipo-card { height: 100%; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff; }
.tipo-card > i { font-size: 2rem; color: var(--red); }
.tipo-card h3 { font-size: 1.35rem; margin: 12px 0 8px; }

.prod-card { height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .25s; }
.prod-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.prod-img { aspect-ratio: 1; display: grid; place-items: center; padding: 20px; background: #fff; }
.prod-img img { max-height: 100%; object-fit: contain; }
.prod-body { padding: 16px 20px 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.prod-body h3 { font-size: 1.12rem; margin: 0; flex: 1; }
.prod-cat { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--red); }
.filtros { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.filtros button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 18px; font-weight: 600; color: var(--ink); }
.filtros button.active, .filtros button:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

.contact-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-item > i { flex: 0 0 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-size: 1.3rem; }
.contact-item strong { display: block; font-family: var(--font-h); color: var(--navy); font-size: 1.05rem; }
.contact-item a { text-decoration: none; }
.form-card { background: #fff; border-radius: 24px; padding: 36px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.form-control, .form-select { border-radius: 10px; padding: .7rem .9rem; border-color: #d6dce8; }
.form-control:focus, .form-select:focus { border-color: var(--blue); box-shadow: 0 0 0 .2rem rgba(44, 94, 203, .15); }
.map-frame { border: 0; width: 100%; height: 380px; border-radius: 22px; display: block; }

.verif-result { border-radius: 14px; padding: 14px 18px; }

/* ---------- Footer ---------- */
.site-footer { background: #0a1330; color: rgba(255, 255, 255, .72); padding: 80px 0 0; font-size: .95rem; }
.footer-logo { height: 58px; width: auto; }
.site-footer h6 { color: #fff; font-family: var(--font-h); font-size: 1.1rem; margin-bottom: 18px; }
.footer-links li { margin-bottom: 9px; }
.footer-links a, .footer-contact a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; }
.footer-contact i { color: var(--red); }
.footer-acred { display: flex; align-items: center; gap: 14px; background: #fff; color: var(--navy); border-radius: 14px; padding: 12px 16px; max-width: 340px; font-size: .85rem; line-height: 1.35; }
.footer-acred img { width: 64px; }
.footer-social { display: flex; gap: 8px; margin-top: 16px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }
.footer-social a:hover { background: var(--red); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 50px; padding: 22px 0; font-size: .85rem; }
.dev-credit { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--red); }
.dev-credit:hover { color: var(--red); }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 1040; display: flex; align-items: center; gap: 8px; background: #25d366; color: #fff; text-decoration: none; border-radius: 999px; padding: 12px 18px 12px 14px; font-weight: 700; box-shadow: 0 10px 30px rgba(37, 211, 102, .45); }
.wa-float i { font-size: 1.5rem; }
.wa-float:hover { color: #fff; background: #1eb858; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .navbar-brand img { height: 46px; }
}
@media (max-width: 991.98px) {
  .section, .cert-band { padding: 64px 0; }
  .hero { min-height: 600px; }
  .hero-shade { background: linear-gradient(180deg, rgba(10, 18, 42, .85), rgba(10, 18, 42, .92)); }
  .acred-box { flex-direction: column; text-align: center; padding: 28px 22px; gap: 18px; }
  .svc-block { padding: 30px 24px; }
  .cta-inner { padding: 34px 26px; }
  .lab-aside { position: static; }
  .svc-row { padding: 60px 0; }
}
@media (max-width: 991.98px) {
  /* En móvil las animaciones laterales desbordaban el ancho: se vuelven verticales */
  [data-aos=fade-left], [data-aos=fade-right] { transform: translate3d(0, 40px, 0); }
}
@media (max-width: 575.98px) {
  .row.g-5 { --bs-gutter-x: 1.5rem; }
  .topbar { font-size: .8rem; }
  .hero-content { padding-top: 50px; padding-bottom: 100px; }
  .hero-list li { font-size: .98rem; }
  .gas-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .gas-grid span { font-size: 1rem; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; }
  .form-card { padding: 24px 18px; }
  .equipos-swiper { padding: 0 40px !important; }
  .pill-blue { white-space: normal; }
  .page-hero { padding: 60px 0 56px; }
}

/* ---------- Aviso emergente (partials/aviso.php) ---------- */
.aviso-modal .modal-content { position: relative; border: 0; border-radius: 22px; overflow: hidden; background: linear-gradient(180deg, #fff 0%, #f3f6fc 100%); box-shadow: 0 30px 80px rgba(10, 18, 42, .45); }
.aviso-modal .modal-content::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--blue) 0 70%, var(--red) 70% 100%); }
.aviso-close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; display: grid; place-items: center; }
.aviso-close:hover { background: var(--red); }
.aviso-head { display: flex; align-items: center; gap: 24px; padding: 34px 40px 6px; }
.aviso-logo { height: 62px; width: auto; flex: 0 0 auto; }
.aviso-titles { flex: 1; text-align: center; border-left: 2px solid var(--line); padding-left: 24px; }
.aviso-saludo { font-family: var(--font-h); font-weight: 800; font-size: clamp(1.6rem, 3.2vw, 2.3rem); text-transform: uppercase; color: var(--navy); line-height: 1; }
.aviso-titulo { font-size: clamp(1.05rem, 2.2vw, 1.45rem); color: var(--red); margin: 8px 0 0; font-weight: 700; }
.aviso-texto { text-align: center; color: var(--ink); font-size: 1.05rem; font-weight: 500; max-width: 600px; margin: 16px auto 18px; padding: 0 24px; }
.aviso-banda { display: flex; align-items: center; justify-content: center; gap: 12px; background: linear-gradient(90deg, var(--navy), var(--blue-dk)); color: #fff; font-weight: 600; padding: 14px 24px; text-align: center; font-size: .98rem; }
.aviso-banda i { font-size: 1.5rem; color: var(--red); background: #fff; border-radius: 8px; width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; }

.aviso-ilus { display: grid; grid-template-columns: 1.15fr .9fr .8fr; align-items: center; gap: 18px; padding: 26px 40px 14px; position: relative; }
.av-line { display: block; height: 6px; border-radius: 3px; background: #dfe5f0; margin: 7px 0; }
.av-line.w40 { width: 40%; } .av-line.w50 { width: 50%; } .av-line.w60 { width: 60%; } .av-line.w70 { width: 70%; }
.av-line.w80 { width: 80%; } .av-line.w85 { width: 85%; } .av-line.w90 { width: 90%; }
.av-cert { background: #fff; border-radius: 10px; padding: 16px 18px; box-shadow: 0 14px 30px rgba(15, 27, 61, .14); transform: rotate(-3deg); border: 1px solid var(--line); }
.av-cert-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.av-cert-top img { height: 26px; }
.av-cert-qr { width: 34px; height: 34px; border: 2px solid var(--red); border-radius: 6px; display: grid; place-items: center; font-size: 1.2rem; color: var(--navy); box-shadow: 0 0 0 4px rgba(255, 49, 49, .15); }
.av-cert-title { font-family: var(--font-h); font-weight: 800; text-transform: uppercase; font-size: .78rem; color: var(--navy); text-align: center; margin-bottom: 8px; letter-spacing: .04em; }
.av-cert-foot { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.av-sello { color: var(--blue); font-size: 1.5rem; }
.av-zoom { text-align: center; position: relative; }
.av-zoom::before { content: ''; position: absolute; left: -26px; top: 50%; width: 30px; height: 2px; background: repeating-linear-gradient(90deg, var(--red) 0 6px, transparent 6px 10px); }
.av-qr { display: inline-grid; place-items: center; background: #fff; padding: 12px; border-radius: 14px; border: 3px solid var(--blue); box-shadow: 0 14px 30px rgba(44, 94, 203, .25); }
.av-qr img, .av-qr canvas { width: 132px !important; height: 132px !important; display: block; }
.av-zoom small { display: block; margin-top: 8px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; }
.av-phone { justify-self: center; width: 128px; background: var(--navy); border-radius: 24px; padding: 10px 8px; box-shadow: 0 18px 36px rgba(10, 18, 42, .35); transform: rotate(4deg); }
.av-phone-screen { background: #fff; border-radius: 16px; padding: 12px 10px 14px; text-align: center; }
.av-phone-bar { width: 40px; height: 5px; border-radius: 3px; background: #dfe5f0; margin: 0 auto 12px; }
.av-phone-ok { width: 54px; height: 54px; margin: 0 auto 8px; border-radius: 50%; background: #1fbf64; color: #fff; display: grid; place-items: center; font-size: 1.9rem; box-shadow: 0 0 0 6px rgba(31, 191, 100, .18); }
.av-phone-txt { font-size: .78rem; color: var(--muted); line-height: 1.25; margin-bottom: 6px; }
.av-phone-txt strong { color: #1fbf64; font-size: .95rem; }
.av-phone-screen .av-line { margin-left: auto; margin-right: auto; }

.aviso-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 40px 26px; }
.aviso-nomostrar { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; cursor: pointer; }
.aviso-nomostrar input { width: 17px; height: 17px; accent-color: var(--blue); }
.aviso-modal.fade .modal-dialog { transform: translateY(24px) scale(.97); }
.aviso-modal.show .modal-dialog { transform: none; }

.aviso-ilus.sin-qr { grid-template-columns: 1.2fr .8fr; max-width: 560px; margin: 0 auto; }
.aviso-imagen .modal-content { background: #fff; }
.aviso-imagen .modal-content::before { display: none; }
.aviso-flyer { display: block; width: 100%; height: auto; max-height: 78vh; object-fit: contain; background: #fff; }
.aviso-imagen .aviso-foot { padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 767.98px) {
  .aviso-head { flex-direction: column; gap: 12px; padding: 30px 20px 0; }
  .aviso-titles { border-left: 0; padding-left: 0; }
  .aviso-logo { height: 48px; }
  .aviso-ilus { grid-template-columns: 1fr 1fr; padding: 20px 20px 8px; gap: 14px; }
  .av-phone { display: none; }
  .av-qr img, .av-qr canvas { width: 104px !important; height: 104px !important; }
  .aviso-foot { padding: 12px 20px 22px; justify-content: center; }
  .aviso-foot .d-flex { width: 100%; }
  .aviso-foot .btn { flex: 1; }
}
