/* ============================================
   TRANSVERTICAL JAG — Hoja de estilos principal
   ============================================ */

:root {
  --blue-dark: #0f1a3d;
  --blue: #1b2f6b;
  --blue-light: #2f5aa8;
  --teal: #2f9fd8;
  --teal-dark: #1c7cae;
  --gold: #d7a13c;
  --gold-light: #f0c169;
  --ink: #131a2b;
  --gray: #57607a;
  --gray-light: #8891a8;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --bg-soft-2: #e9f1f8;
  --border: #dee6f0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(15, 26, 61, 0.1);
  --shadow-sm: 0 4px 14px rgba(15, 26, 61, 0.08);
  --wa-green: #3aa06c;
  --wa-green-dark: #2f8a5a;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  margin: 0 0 14px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--blue-dark);
}

h2.section-title {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

p { margin: 0 0 14px; color: var(--gray); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: rgba(43, 196, 212, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section {
  padding: 72px 0;
}

.section-soft { background: var(--bg-soft); }

.section-head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head p { margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn-whatsapp {
  background: var(--wa-green);
  color: #fff;
  box-shadow: 0 10px 24px rgba(58, 160, 108, 0.35);
}

.btn-whatsapp:hover { background: var(--wa-green-dark); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); }

.btn-outline {
  background: transparent;
  border-color: var(--blue);
  color: var(--blue);
}

.btn-outline:hover { background: var(--blue); color: #fff; }

.btn-block { width: 100%; }

.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--blue-dark);
}

.brand-logo {
  display: block;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  background: #fff;
  border: 2px solid var(--gold-light);
  box-shadow: var(--shadow-sm);
}

.brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.02rem; letter-spacing: 0.01em; }
.brand-text span { font-size: 0.72rem; color: var(--teal-dark); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

.main-nav ul { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.main-nav a.active,
.main-nav a:hover { color: var(--blue); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  background: var(--gold);
  border-radius: 3px;
}

.header-actions { display: flex; align-items: center; gap: 14px; }

.header-actions .btn-whatsapp {
  padding: 10px 18px;
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--blue-dark);
  border-radius: 2px;
  transition: 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue) 55%, var(--teal-dark));
}

.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center 20%;
  opacity: 0.34;
  mix-blend-mode: luminosity;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(13, 20, 48, 0.94) 20%, rgba(15, 26, 61, 0.75) 55%, rgba(28, 124, 174, 0.55));
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 110px 0 90px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  margin-bottom: 18px;
}

.hero h1 span { color: var(--gold-light); }

.hero-lead {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.hero-badge svg { width: 18px; height: 18px; color: var(--gold-light); flex: none; }

.hero-photo {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(6, 10, 26, 0.55);
  border: 6px solid rgba(255, 255, 255, 0.14);
  aspect-ratio: 4/5;
}

.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero-photo-tag {
  position: absolute;
  left: 16px; bottom: 16px; right: 16px;
  background: rgba(10, 16, 36, 0.72);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--blue-dark);
  color: #fff;
  padding: 18px 0;
}
.trust-bar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 34px;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.trust-bar .item { display: flex; align-items: center; gap: 10px; opacity: 0.92; }
.trust-bar svg { width: 20px; height: 20px; color: var(--gold-light); flex: none; }

/* ---------- Safety / alert section ---------- */
.safety {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 50px;
  align-items: center;
}

.safety-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.safety-photo img { aspect-ratio: 1/1.05; object-fit: cover; }

.safety-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(15,26,61,0) 40%, rgba(15,26,61,0.55));
}

.check-list { margin: 26px 0; }
.check-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
  font-weight: 600;
  color: var(--ink);
}
.check-list li:last-child { border-bottom: none; }
.check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  flex: none;
  border-radius: 50%;
  background: rgba(217, 68, 91, 0.12);
  color: #d9445b;
}
.check-icon svg { width: 20px; height: 20px; }

.quote-card {
  background: linear-gradient(135deg, var(--blue-dark), var(--teal-dark));
  color: #fff;
  border-radius: var(--radius);
  padding: 26px 28px;
  font-weight: 700;
  font-size: 1.08rem;
  box-shadow: var(--shadow);
}
.quote-card span {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.03em;
}

/* ---------- Category / services grid ---------- */
.cat-grid, .services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.cat-card, .service-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  color: #fff;
  background-color: var(--blue-dark);
  background-size: cover;
  background-position: center;
}
.cat-card::after, .service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(190deg, rgba(15, 26, 61, 0) 0%, rgba(15, 26, 61, 0.18) 45%, rgba(9, 16, 38, 0.82) 100%);
  pointer-events: none;
}
.cat-card:hover, .service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.cat-card > *, .service-card > * {
  position: relative;
  z-index: 1;
}

.cat-card h3, .service-card h3 { color: #fff; font-size: 1.15rem; margin-bottom: 8px; }
.cat-card p, .service-card p { color: rgba(255, 255, 255, 0.88); font-size: 0.94rem; margin-bottom: 0; }

.service-card ul { margin: 12px 0 0; }
.service-card ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--gray);
  padding: 5px 0;
}
.service-card ul li svg { width: 16px; height: 16px; margin-top: 4px; color: var(--teal-dark); flex: none; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--blue);
}
.stat-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ---------- About / technician ---------- */
.about-split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 50px;
  align-items: center;
}
.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-photo img { aspect-ratio: 3/4.6; object-fit: cover; }

.feature-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.feature-list li:last-child { border-bottom: none; }
.feature-icon {
  width: 42px; height: 42px; flex: none;
  border-radius: 12px;
  background: var(--bg-soft-2);
  color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-list h4 { margin: 0 0 4px; font-size: 1.02rem; }
.feature-list p { margin: 0; font-size: 0.92rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--blue-dark), var(--blue) 45%, var(--teal-dark));
  color: #fff;
  border-radius: 24px;
  padding: 52px 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: #fff; margin-bottom: 10px; }
.cta-banner p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 26px; }
.cta-banner .btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative;
  color: #fff;
  padding: 90px 0 60px;
  overflow: hidden;
  background: linear-gradient(120deg, var(--blue-dark), var(--blue) 60%, var(--teal-dark));
}
.page-hero img.hero-bg { opacity: 0.28; }
.page-hero .hero-overlay { background: linear-gradient(120deg, rgba(13,20,48,0.92), rgba(28,124,174,0.55)); }
.page-hero .inner { position: relative; z-index: 2; max-width: 720px; }
.breadcrumb {
  display: flex; gap: 8px; align-items: center;
  font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.75);
  margin-bottom: 16px;
}
.breadcrumb a:hover { color: #fff; }
.page-hero h1 { color: #fff; margin-bottom: 12px; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.page-hero p { color: rgba(255,255,255,0.85); font-size: 1.02rem; }

/* ---------- Detail rows (services page) ---------- */
.detail-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 46px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}
.detail-row:last-child { border-bottom: none; }
.detail-row.reverse { grid-template-columns: 1.1fr 0.9fr; }
.detail-row.reverse .detail-photo { order: 2; }
.detail-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.detail-photo img { aspect-ratio: 1/1; object-fit: cover; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tag-pill {
  background: var(--bg-soft-2);
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
}

.simple-list li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0; font-weight: 600; color: var(--ink);
}
.simple-list svg { width: 18px; height: 18px; margin-top: 3px; color: var(--teal-dark); flex: none; }

/* ---------- Emergency banner ---------- */
.emergency {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: center;
  background: var(--blue-dark);
  color: #fff;
  border-radius: 24px;
  padding: 44px;
}
.emergency img {
  border-radius: 18px;
  aspect-ratio: 1/1;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}
.emergency h2 { color: #fff; }
.emergency p { color: rgba(255,255,255,0.82); }
.emergency-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 8px 16px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 700;
  margin-bottom: 16px;
}
.emergency-badge svg { width: 16px; height: 16px; color: var(--gold-light); }

/* ---------- Footer ---------- */
.site-footer {
  background: #150c33;
  color: rgba(255, 255, 255, 0.78);
  padding: 60px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand .brand-logo { border-color: rgba(255,255,255,0.3); }
.footer-brand strong { color: #fff; font-size: 1.05rem; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; letter-spacing: 0.02em; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: #fff; }
.footer-contact li {
  display: flex; gap: 10px; align-items: flex-start;
  margin-bottom: 14px; font-size: 0.92rem;
}
.footer-contact svg { width: 18px; height: 18px; margin-top: 2px; color: var(--gold-light); flex: none; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-top: 22px; font-size: 0.82rem; color: rgba(255,255,255,0.55);
}

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--wa-green);
  color: #fff;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 12px 28px rgba(58, 160, 108, 0.45);
  animation: float-pulse 2.6s ease-in-out infinite;
}
.wa-float svg { width: 24px; height: 24px; flex: none; }
.wa-float:hover { background: var(--wa-green-dark); }

@keyframes float-pulse {
  0%, 100% { box-shadow: 0 12px 28px rgba(58, 160, 108, 0.45); }
  50% { box-shadow: 0 12px 34px rgba(58, 160, 108, 0.7); }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; padding: 90px 0 60px; }
  .hero-inner > div:first-child { text-align: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-badges { justify-content: center; }
  .hero-photo { max-width: 420px; margin: 0 auto; }
  .safety, .about-split, .detail-row, .detail-row.reverse, .emergency {
    grid-template-columns: 1fr !important;
  }
  .detail-row.reverse .detail-photo { order: 0; }
  .about-photo, .safety-photo, .detail-photo { max-width: 460px; margin: 0 auto; }
  .cat-grid, .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav, .header-actions .btn-whatsapp span.label { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 18px 24px;
  }
  .main-nav.open ul { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cat-grid, .services-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 40px 22px; }
  .emergency { padding: 30px 22px; }
  .trust-bar .container { justify-content: flex-start; text-align: left; }
}

@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .wa-float span.label { display: none; }
  .wa-float { padding: 14px; }
}
