/* ==========================================================================
   PLOMEROS EN DRENAJES Y DESAZOLVE - SISTEMA RESPONSIVO MOBILE-FIRST & DESKTOP
   Optimizado para Móvil (320px-480px), Tablet (768px), Laptop (1024px) y Widescreen
   Ruta de Pruebas: https://desarrollo-web.ddns.net/plomeros-endre/
   ========================================================================== */

:root {
  --bg-dark: #0a2246;
  --bg-navy: #0f2952;
  --bg-navy-mid: #163e7a;
  --bg-surface: #f8fafc;
  --bg-alt: #eef3f9;
  --bg-card: #ffffff;

  /* Identidad Plomeros */
  --primary: #1d4ed8;
  --primary-dark: #1e3a8a;
  --primary-light: #0284c7;
  --accent-cyan: #38bdf8;
  --accent-gold: #f59e0b;
  --urgent: #ea580c;
  --urgent-dark: #c2410c;
  --whatsapp: #16a34a;
  --whatsapp-dark: #15803d;

  /* Texto de Alto Contraste */
  --text-main: #0f172a;
  --text-body: #1e293b;
  --text-muted: #475569;
  --border-color: #cbd5e1;

  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 24px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 18px 38px rgba(15, 41, 82, 0.14);
  --shadow-wa: 0 6px 16px rgba(22, 163, 74, 0.25);
  --shadow-urgent: 0 6px 16px rgba(234, 88, 12, 0.25);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.22s ease;
  --container: 1400px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-body);
  background-color: var(--bg-surface);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  padding-top: 60px; /* Espacio para el menú superior siempre fijo en móvil/tablet */
  padding-bottom: 72px; /* Espacio para la barra fija inferior en móvil */
}

@media (min-width: 992px) {
  body {
    padding-top: 68px; /* Espacio para el menú superior siempre fijo en escritorio */
    padding-bottom: 0;
  }
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2.5rem;
  }
}

/* ==========================================================================
   ANIMACIONES KEYFRAMES PARA DIAGRAMAS SVG Y ELEMENTOS UI
   ========================================================================== */
@keyframes pulseSoftWa {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(22, 163, 74, 0); }
}

@keyframes pulseSoftUrgent {
  0%, 100% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(234, 88, 12, 0); }
}

@keyframes svgSpin360 { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes svgSpinReverse { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
@keyframes svgJetFlow { 0% { stroke-dashoffset: 120; } 100% { stroke-dashoffset: 0; } }
@keyframes svgSuctionUp { 0% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 120; } }
@keyframes svgBubbleRise {
  0% { transform: translateY(25px) scale(0.7); opacity: 0; }
  40% { opacity: 0.9; }
  100% { transform: translateY(-45px) scale(1.25); opacity: 0; }
}
@keyframes svgWaveMove { 0%, 100% { transform: translateX(0px); } 50% { transform: translateX(-32px); } }
@keyframes svgBeaconFlash { 0%, 100% { opacity: 0.35; transform: scale(0.92); } 50% { opacity: 1; transform: scale(1.2); } }
@keyframes svgGaugeNeedle { 0%, 100% { transform: rotate(-28deg); } 50% { transform: rotate(34deg); } }
@keyframes svgSonarExpand { 0% { transform: scale(0.4); opacity: 0.9; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes svgVanDrive {
  0%, 100% { transform: translateX(-18px) translateY(0px); }
  50% { transform: translateX(22px) translateY(0px); }
}
@keyframes svgPinBounce { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-10px); } }
@keyframes svgWrenchRock { 0%, 100% { transform: rotate(-18deg); } 50% { transform: rotate(18deg); } }
@keyframes svgDropFall {
  0% { transform: translateY(-15px) scale(0.8); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: translateY(45px) scale(1.1); opacity: 0; }
}
@keyframes svgParticleBurst {
  0% { transform: translate(0px, 0px) scale(0.9); opacity: 0.95; }
  70% { transform: translate(26px, -6px) scale(0.55); opacity: 0.55; }
  100% { transform: translate(40px, 2px) scale(0.2); opacity: 0; }
}
@keyframes svgParticleBurstDown {
  0% { transform: translate(0px, 0px) scale(0.9); opacity: 0.95; }
  70% { transform: translate(28px, 8px) scale(0.55); opacity: 0.55; }
  100% { transform: translate(42px, 14px) scale(0.2); opacity: 0; }
}
@keyframes svgBlockagePulse {
  0%, 100% { opacity: 0.9; transform: translateX(0px); }
  50% { opacity: 0.55; transform: translateX(3px); }
}
@keyframes svgCablePulse { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-4px); } }

.svg-spin { transform-origin: 0px 0px; animation: svgSpin360 3s linear infinite; }
.svg-spin-fast { transform-origin: 0px 0px; animation: svgSpin360 1.2s linear infinite; }
.svg-spin-reverse { transform-origin: 0px 0px; animation: svgSpinReverse 3.5s linear infinite; }
.svg-jet-stream { stroke-dasharray: 18 12; animation: svgJetFlow 0.75s linear infinite; }
.svg-suction-stream { stroke-dasharray: 16 12; animation: svgSuctionUp 0.8s linear infinite; }
.svg-bubble-1 { transform-origin: 0px 0px; animation: svgBubbleRise 2.6s ease-in-out infinite; }
.svg-bubble-2 { transform-origin: 0px 0px; animation: svgBubbleRise 3.2s ease-in-out 0.9s infinite; }
.svg-bubble-3 { transform-origin: 0px 0px; animation: svgBubbleRise 2.9s ease-in-out 1.6s infinite; }
.svg-wave-loop { animation: svgWaveMove 3.6s ease-in-out infinite; }
.svg-beacon { transform-origin: 0px 0px; animation: svgBeaconFlash 0.9s ease-in-out infinite; }
.svg-needle { transform-origin: 0px 0px; animation: svgGaugeNeedle 2.4s ease-in-out infinite; }
.svg-sonar-1 { transform-origin: 0px 0px; animation: svgSonarExpand 2.4s ease-out infinite; }
.svg-sonar-2 { transform-origin: 0px 0px; animation: svgSonarExpand 2.4s ease-out 1.2s infinite; }
.svg-van-loop { animation: svgVanDrive 4s ease-in-out infinite; }
.svg-pin-1 { transform-origin: 0px 0px; animation: svgPinBounce 2s ease-in-out infinite; }
.svg-pin-2 { transform-origin: 0px 0px; animation: svgPinBounce 2.3s ease-in-out 0.6s infinite; }
.svg-pin-3 { transform-origin: 0px 0px; animation: svgPinBounce 2.1s ease-in-out 1.2s infinite; }
.svg-wrench { transform-origin: 0px 0px; animation: svgWrenchRock 2.2s ease-in-out infinite; }
.svg-drop-1 { animation: svgDropFall 1.8s ease-in infinite; }
.svg-drop-2 { animation: svgDropFall 1.8s ease-in 0.9s infinite; }
.svg-particle { transform-origin: 0px 0px; animation: svgParticleBurst 1.35s ease-out infinite; }
.svg-particle-alt { transform-origin: 0px 0px; animation: svgParticleBurstDown 1.6s ease-out 0.45s infinite; }
.svg-blockage-fade { transform-origin: 0px 0px; animation: svgBlockagePulse 1.6s ease-in-out infinite; }
.svg-cable-osc { animation: svgCablePulse 0.6s ease-in-out infinite; }

.pulse-wa { animation: pulseSoftWa 2.5s infinite; }
.pulse-urgent { animation: pulseSoftUrgent 2.5s infinite; }

/* ==========================================================================
   HEADER Y NAVEGACIÓN (RESPONSIVO PERFECTO EN MÓVIL, TABLET Y DESKTOP)
   ========================================================================== */
.top-emergency-bar,
.seo-toc-bar,
.breadcrumb-bar:has(li:only-child) {
  display: none !important;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid #1d4ed8;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
  width: 100%;
}

.site-header .container {
  max-width: 100%;
  padding: 0 0.85rem;
}

@media (min-width: 768px) {
  .site-header .container {
    padding: 0 1.75rem;
  }
}

@media (min-width: 1200px) {
  .site-header .container {
    padding: 0 3rem;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  gap: 0.5rem;
}

@media (min-width: 992px) {
  .header-inner {
    height: 66px;
  }
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #0f2952 !important;
  font-weight: 900;
  font-size: 0.92rem;
  line-height: 1.15;
  flex-shrink: 1;
  min-width: 0;
}

@media (min-width: 480px) {
  .brand-logo {
    font-size: 1rem;
  }
}

.brand-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
  background: #ffffff;
  padding: 2px;
  border: 1px solid #cbd5e1;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .brand-logo img {
    width: 42px;
    height: 42px;
  }
}

.brand-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text span {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  color: #ea580c;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Menú de Escritorio (Visible a partir de 1024px para que jamás se encime) */
.main-nav {
  display: none;
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 0.15rem;
  }
}

.nav-item {
  position: relative;
  list-style: none;
}

.nav-link {
  color: #0f172a !important;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  white-space: nowrap;
  transition: var(--transition);
  cursor: pointer;
}

.nav-link:hover,
.nav-link.active,
.nav-item:hover > .nav-link {
  color: #ffffff !important;
  background: #1d4ed8;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 265px;
  max-height: 70vh;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-top: 3px solid #1d4ed8;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 0.5rem;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 1100;
}

.nav-dropdown.dropdown-wide {
  min-width: 480px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  left: -100px;
}

.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown,
.nav-item.open > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.68rem;
  color: #1e293b !important;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 6px;
}

.nav-dropdown a:hover {
  background: #eff6ff;
  color: #1d4ed8 !important;
}

/* Botones del Header: En móvil (< 640px) ocultamos los botones largos porque ya están en la barra fija inferior, dejando limpio el header con el logo y el botón de menú */
.header-cta-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.header-cta-group .btn {
  display: none;
  white-space: nowrap;
  padding: 0.45rem 0.8rem;
  font-size: 0.8rem;
}

@media (min-width: 640px) {
  .header-cta-group .btn {
    display: inline-flex;
  }
}

.menu-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #1d4ed8;
  border: none;
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
  font-size: 1.25rem;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .menu-toggle-btn {
    display: none;
  }
}

/* Mobile & Tablet Navigation Drawer */
.mobile-nav-drawer {
  display: none;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  border-bottom: 3px solid #1d4ed8;
  padding: 0.9rem 1rem 1.25rem;
  max-height: calc(100vh - 58px);
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  display: block;
}

.mobile-nav-section-title {
  color: #1d4ed8;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0.75rem 0 0.35rem;
}

.mobile-nav-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  list-style: none;
  margin-bottom: 0.65rem;
}

@media (min-width: 480px) {
  .mobile-nav-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .mobile-nav-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mobile-nav-grid a {
  display: block;
  padding: 0.55rem 0.75rem;
  color: #1e293b !important;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.mobile-nav-grid a:hover {
  background: #1d4ed8;
  color: #ffffff !important;
}

/* Breadcrumbs Responsivos */
.breadcrumb-bar {
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.35rem 0;
  font-size: 0.76rem;
  color: #475569;
}

.breadcrumb-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.breadcrumb-list li + li::before {
  content: '/';
  color: #94a3b8;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  line-height: 1.2;
}

.btn-wa {
  background: #16a34a;
  color: #ffffff !important;
  box-shadow: var(--shadow-wa);
}

.btn-wa:hover { background: #15803d; }

.btn-urgent {
  background: #ea580c;
  color: #ffffff !important;
  box-shadow: var(--shadow-urgent);
}

.btn-urgent:hover { background: #c2410c; }

.btn-primary {
  background: #1d4ed8;
  color: #ffffff !important;
}

.btn-primary:hover { background: #1e3a8a; }

.btn-sm {
  padding: 0.5rem 0.85rem;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 0.85rem 1.35rem;
  font-size: 0.92rem;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   PORTADAS / HERO SECTION (RESPONSIVO MÓVIL, TABLET Y DESKTOP ANCHO COMPLETO)
   ========================================================================== */
.hero-section {
  --hero-bg: url('/plomeros-endre/img/plumbing-banner-sfuyir.jpg');
  --hero-accent: #f59e0b;
  --hero-tint-1: rgba(11, 33, 71, 0.88);
  --hero-tint-2: rgba(18, 56, 115, 0.72);
  --hero-tint-3: rgba(11, 33, 71, 0.45);
  position: relative;
  width: 100%;
  background-color: #0f2952;
  background-image:
    linear-gradient(105deg, var(--hero-tint-1) 0%, var(--hero-tint-2) 55%, var(--hero-tint-3) 100%),
    var(--hero-bg);
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 1.75rem 0 2.25rem;
  overflow: hidden;
  border-bottom: 4px solid var(--hero-accent);
}

.hero-bg-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-bg-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, var(--hero-tint-1) 0%, var(--hero-tint-2) 55%, var(--hero-tint-3) 100%);
}

@media (min-width: 768px) {
  .hero-section {
    padding: 2.75rem 0 3.25rem;
  }
}

@media (min-width: 1024px) {
  .hero-section {
    min-height: 560px;
    display: flex;
    align-items: center;
    padding: 3.5rem 0;
  }
}

.hero-theme-desazolve {
  --hero-accent: #0284c7;
  --hero-tint-1: rgba(8, 37, 68, 0.93);
  --hero-tint-2: rgba(12, 74, 110, 0.78);
  --hero-tint-3: rgba(7, 42, 74, 0.50);
}

.hero-theme-plomeria {
  --hero-accent: #ea580c;
  --hero-tint-1: rgba(19, 34, 64, 0.93);
  --hero-tint-2: rgba(30, 58, 118, 0.78);
  --hero-tint-3: rgba(23, 37, 84, 0.50);
}

.hero-theme-zonas {
  --hero-accent: #16a34a;
  --hero-tint-1: rgba(10, 38, 54, 0.93);
  --hero-tint-2: rgba(15, 62, 82, 0.76);
  --hero-tint-3: rgba(10, 38, 54, 0.48);
}

.hero-theme-blog {
  --hero-accent: #d97706;
  --hero-tint-1: rgba(17, 24, 39, 0.93);
  --hero-tint-2: rgba(30, 41, 59, 0.78);
  --hero-tint-3: rgba(15, 23, 42, 0.52);
}

.hero-theme-contacto {
  --hero-accent: #16a34a;
  --hero-tint-1: rgba(6, 38, 32, 0.93);
  --hero-tint-2: rgba(13, 68, 56, 0.78);
  --hero-tint-3: rgba(6, 38, 32, 0.50);
}

.hero-bg-grid,
.hero-orb,
.hero-trust-pills {
  display: none !important;
}

.hero-section > .container.hero-grid {
  width: 100%;
  max-width: 100%;
  padding: 0 1rem;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 640px) {
  .hero-section > .container.hero-grid {
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .hero-section > .container.hero-grid {
    padding: 0 clamp(2rem, 4.5vw, 5rem);
    grid-template-columns: minmax(0, 1.3fr) minmax(350px, 430px);
    justify-content: space-between;
    gap: 3rem;
  }
}

.hero-content {
  width: 100%;
  max-width: 860px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(15, 23, 42, 0.75);
  border-left: 4px solid var(--hero-accent);
  color: #fde68a;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

@media (min-width: 640px) {
  .hero-kicker {
    font-size: 0.78rem;
    padding: 0.35rem 0.9rem;
  }
}

.hero-title {
  font-size: clamp(1.5rem, 4.8vw, 2.5rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.hero-title .highlight-cyan,
.hero-title .highlight-wa {
  color: #fbbf24;
  background: none;
  -webkit-text-fill-color: initial;
  text-shadow: none;
}

.hero-subtitle {
  font-size: 0.93rem;
  color: #f8fafc;
  margin-bottom: 1.15rem;
  max-width: 740px;
  line-height: 1.55;
}

@media (min-width: 640px) {
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.35rem;
  }
}

.hero-subtitle strong {
  color: #ffffff;
}

/* Fila visual y de botones en portada: apilada limpiamente en móvil, en fila en desktop */
.hero-visual-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .hero-visual-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
  }
}

.hero-featured-thumb {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-left: 4px solid var(--hero-accent);
  padding: 0.45rem 0.8rem 0.45rem 0.45rem;
  border-radius: 10px;
  width: 100%;
}

@media (min-width: 640px) {
  .hero-featured-thumb {
    width: auto;
    max-width: 340px;
  }
}

.hero-featured-thumb img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.hero-featured-caption {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.hero-featured-caption span {
  font-size: 0.68rem;
  font-weight: 800;
  color: #fbbf24;
  text-transform: uppercase;
}

.hero-featured-caption strong {
  font-size: 0.84rem;
  color: #ffffff;
  line-height: 1.22;
}

.hero-cta-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  width: 100%;
}

@media (min-width: 480px) {
  .hero-cta-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 640px) {
  .hero-cta-row {
    display: flex;
    width: auto;
    gap: 0.75rem;
  }
}

/* Estadísticas en portada: cuadrícula 2x2 ordenada en móvil, 4 columnas en tablet/desktop */
.floating-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  max-width: 740px;
}

@media (min-width: 640px) {
  .floating-stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.stat-float-card {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
}

@media (min-width: 640px) {
  .stat-float-card {
    background: transparent;
    border: none;
    padding: 0;
  }
}

.stat-number {
  font-size: 1.05rem;
  font-weight: 900;
  color: #fbbf24;
  line-height: 1.15;
}

@media (min-width: 640px) {
  .stat-number {
    font-size: 1.15rem;
  }
}

.stat-label {
  font-size: 0.73rem;
  color: #f8fafc;
  font-weight: 600;
}

/* ==========================================================================
   FORMULARIO DE WHATSAPP RESPONSIVO (100% ANCHO EN MÓVIL, 430PX EN DESKTOP)
   ========================================================================== */
.wa-form-card {
  background: #ffffff;
  color: var(--text-main);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.1rem;
  box-shadow: 0 14px 34px rgba(7, 19, 38, 0.28);
  border: 1px solid #cbd5e1;
  border-top: 5px solid #16a34a;
  position: relative;
  width: 100%;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .wa-form-card {
    padding: 1.4rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-section .wa-form-card {
    max-width: 430px;
    margin-left: auto;
    margin-right: 0;
  }
}

.hero-section .wa-form-card .form-group:nth-of-type(5),
.hero-section .wa-form-footer-note {
  display: none;
}

.wa-form-badge-float {
  position: absolute;
  top: -12px;
  right: 12px;
  background: #16a34a;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.wa-form-header {
  margin-bottom: 0.85rem;
}

.wa-form-header h2,
.wa-form-header h3 {
  font-size: 1.1rem;
  font-weight: 900;
  color: #0f2952;
  line-height: 1.25;
  margin-bottom: 0.2rem;
}

@media (min-width: 640px) {
  .wa-form-header h2,
  .wa-form-header h3 {
    font-size: 1.18rem;
  }
}

.wa-form-header p {
  font-size: 0.8rem;
  color: #475569;
}

.form-group {
  margin-bottom: 0.65rem;
}

.form-label {
  display: block;
  font-size: 0.77rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.22rem;
}

.form-control {
  width: 100%;
  padding: 0.58rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-family: inherit;
  font-size: 0.88rem;
  color: #0f172a;
}

.form-control:focus {
  outline: none;
  border-color: #1d4ed8;
  background: #ffffff;
}

/* En móvil (< 480px) los campos van en 1 sola columna para que no se corten; en >= 480px van en 2 columnas */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

@media (min-width: 480px) {
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.urgency-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
}

.urgency-pill-label {
  cursor: pointer;
}

.urgency-pill-label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.urgency-pill-box {
  display: block;
  text-align: center;
  padding: 0.42rem 0.2rem;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #1e293b;
  white-space: nowrap;
}

@media (min-width: 480px) {
  .urgency-pill-box {
    font-size: 0.76rem;
    padding: 0.42rem 0.35rem;
  }
}

.urgency-pill-label input:checked + .urgency-pill-box {
  border-color: #16a34a;
  background: #dcfce7;
  color: #14532d;
}

.wa-form-footer-note {
  margin-top: 0.55rem;
  text-align: center;
  font-size: 0.74rem;
  color: #475569;
  font-weight: 600;
}

/* ==========================================================================
   SECCIÓN DE DIAGRAMA SVG ANIMADO (RESPONSIVO EN MÓVIL Y DESKTOP)
   ========================================================================== */
.svg-scene-section {
  padding: 2.25rem 0;
  background: #eef4fb;
  color: #0f172a;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #cbd5e1;
}

@media (min-width: 768px) {
  .svg-scene-section {
    padding: 3.5rem 0;
  }
}

.svg-scene-section .section-title {
  color: #0f2952 !important;
}

.svg-scene-section .section-desc {
  color: #334155 !important;
}

.svg-scene-card {
  background: #0f2952;
  color: #ffffff;
  border: 1px solid #1e3a8a;
  border-radius: var(--radius-md);
  padding: 0.9rem;
  box-shadow: 0 12px 30px rgba(15, 41, 82, 0.18);
}

@media (min-width: 768px) {
  .svg-scene-card {
    border-radius: var(--radius-lg);
    padding: 1.5rem;
  }
}

.svg-scene-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

@media (min-width: 640px) {
  .svg-scene-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.svg-scene-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.12);
  color: #fde68a;
  border: 1px solid #fbbf24;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
}

@media (min-width: 640px) {
  .svg-scene-badge {
    font-size: 0.78rem;
  }
}

.svg-scene-wrap {
  background: #07162e;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.4rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  display: block;
}

@media (min-width: 768px) {
  .svg-scene-wrap {
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

.animated-svg-scene {
  width: 100%;
  min-width: 520px; /* Evita que en pantallas de 360px el diagrama de 900px se vuelva microscópico; permite deslizar o ver grande */
  max-width: 900px;
  height: auto;
  display: block;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .animated-svg-scene {
    min-width: 0;
  }
}

.svg-scene-caption-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-top: 0.9rem;
}

@media (min-width: 640px) {
  .svg-scene-caption-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
    margin-top: 1.15rem;
  }
}

.svg-caption-item {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 4px solid #fbbf24;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
}

.svg-caption-item span {
  display: block;
  font-size: 0.7rem;
  color: #fde68a;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 0.1rem;
}

.svg-caption-item strong {
  font-size: 0.88rem;
  color: #ffffff;
}

@media (min-width: 768px) {
  .svg-caption-item strong {
    font-size: 0.96rem;
  }
}

/* ==========================================================================
   SECTIONS, CARDS, SEO CONTENT & TABLES (RESPONSIVO MÓVIL A DESKTOP)
   ========================================================================== */
.section {
  padding: 2.25rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 3.75rem 0;
  }
}

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

.section-dark {
  background: #0f2952;
  color: #ffffff;
}

.section-header {
  max-width: 780px;
  margin: 0 auto 1.75rem;
  text-align: center;
}

@media (min-width: 768px) {
  .section-header {
    margin: 0 auto 2.5rem;
  }
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #dbeafe;
  color: #1e3a8a;
  border: 1px solid #93c5fd;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

@media (min-width: 640px) {
  .section-tag {
    font-size: 0.78rem;
    padding: 0.32rem 0.9rem;
  }
}

.section-dark .section-tag {
  background: rgba(255, 255, 255, 0.14);
  color: #fde68a;
  border-color: #fbbf24;
}

.section-title {
  font-size: clamp(1.38rem, 3.8vw, 2.25rem);
  font-weight: 900;
  color: #0f2952;
  line-height: 1.22;
  margin-bottom: 0.65rem;
}

.section-dark .section-title {
  color: #ffffff !important;
}

.section-desc {
  font-size: 0.94rem;
  color: #334155;
}

@media (min-width: 640px) {
  .section-desc {
    font-size: 1.02rem;
  }
}

.section-dark .section-desc {
  color: #f1f5f9 !important;
}

.cards-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .cards-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards-grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.cards-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .cards-grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.service-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.service-card-media {
  position: relative;
  height: 185px;
  overflow: hidden;
  background: #0f2952;
}

@media (min-width: 768px) {
  .service-card-media {
    height: 205px;
  }
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #0f2952;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  border: 1px solid #fbbf24;
}

.service-card-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

@media (min-width: 768px) {
  .service-card-body {
    padding: 1.4rem;
  }
}

.service-card-title {
  font-size: 1.12rem;
  font-weight: 900;
  color: #0f2952;
  margin-bottom: 0.45rem;
  line-height: 1.28;
}

@media (min-width: 768px) {
  .service-card-title {
    font-size: 1.2rem;
  }
}

.service-card-title a { color: #0f2952; }
.service-card-title a:hover { color: var(--primary); }

.service-card-text {
  font-size: 0.9rem;
  color: #334155;
  margin-bottom: 0.9rem;
}

.service-card-list {
  list-style: none;
  margin-bottom: 1.15rem;
  flex-grow: 1;
}

.service-card-list li {
  position: relative;
  padding-left: 1.3rem;
  font-size: 0.85rem;
  color: #1e293b;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.service-card-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #16a34a;
  font-weight: 900;
}

.service-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.service-card-actions .btn {
  flex: 1 1 auto;
}

/* SEO Content Layout Responsivo */
.seo-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .seo-content-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
    gap: 2rem;
  }
}

.seo-article {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.15rem 1rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

@media (min-width: 640px) {
  .seo-article {
    padding: 1.65rem;
  }
}

@media (min-width: 1024px) {
  .seo-article {
    padding: 2rem;
  }
}

.seo-article h2 {
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 900;
  color: #0f2952;
  margin: 1.4rem 0 0.65rem;
  line-height: 1.28;
}

.seo-article h2:first-child {
  margin-top: 0;
}

.seo-article h3 {
  font-size: clamp(1.08rem, 2.5vw, 1.22rem);
  font-weight: 800;
  color: #1d4ed8;
  margin: 1.15rem 0 0.5rem;
}

.seo-article p {
  margin-bottom: 0.9rem;
  color: #1e293b;
  font-size: 0.95rem;
}

.seo-article ul, .seo-article ol {
  margin-bottom: 1.1rem;
  padding-left: 1.2rem;
}

.seo-article li {
  margin-bottom: 0.45rem;
  color: #1e293b;
  font-size: 0.94rem;
}

.seo-callout {
  background: #eff6ff;
  border-left: 4px solid #1d4ed8;
  color: #0f172a;
  padding: 0.95rem 1.1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.2rem 0;
  font-size: 0.92rem;
}

.seo-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.2rem 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.seo-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 0.85rem;
  min-width: 520px;
}

.seo-table th {
  background: #0f2952;
  color: #ffffff;
  font-weight: 800;
  text-align: left;
  padding: 0.75rem 0.85rem;
}

.seo-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--border-color);
  color: #1e293b;
}

.seo-table tr:nth-child(even) td {
  background: #f8fafc;
}

.seo-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .seo-sidebar {
    position: sticky;
    top: 84px;
  }
}

/* Locations Grid Responsivo */
.locations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 540px) {
  .locations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .locations-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .locations-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.location-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.location-card-img {
  height: 145px;
  overflow: hidden;
  position: relative;
}

.location-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-time-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: #0f2952;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-full);
}

.location-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.location-card-body h3 {
  font-size: 1.04rem;
  font-weight: 900;
  color: #0f2952;
  margin-bottom: 0.3rem;
}

.location-card-body h3 a { color: #0f2952; }

.location-card-body p {
  font-size: 0.84rem;
  color: #334155;
  margin-bottom: 0.85rem;
  flex-grow: 1;
}

/* Process Grid (Protocolo de 4 Pasos - Diseño de Tarjetas Profesionales de Alto Impacto) */
.process-section {
  background: linear-gradient(135deg, #0b1f3f 0%, #0f2952 55%, #163a70 100%);
  position: relative;
  border-top: 4px solid #f59e0b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  position: relative;
}

@media (min-width: 640px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.35rem;
  }
}

.process-step-card {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-top: 5px solid #f59e0b;
  border-radius: 14px;
  padding: 1.4rem 1.25rem;
  box-shadow: 0 12px 28px rgba(7, 19, 38, 0.32);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.process-step-card:nth-child(2) {
  border-top-color: #1d4ed8;
}

.process-step-card:nth-child(3) {
  border-top-color: #ea580c;
}

.process-step-card:nth-child(4) {
  border-top-color: #16a34a;
}

.process-step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(7, 19, 38, 0.42);
}

.process-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.95rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

.step-num-badge {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: #0f2952;
  color: #fbbf24;
  font-weight: 900;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(15, 41, 82, 0.22);
}

.process-step-card:nth-child(2) .step-num-badge {
  background: #1d4ed8;
  color: #ffffff;
}

.process-step-card:nth-child(3) .step-num-badge {
  background: #ea580c;
  color: #ffffff;
}

.process-step-card:nth-child(4) .step-num-badge {
  background: #16a34a;
  color: #ffffff;
}

.step-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #f1f5f9;
  color: #0f2952;
  border: 1px solid #cbd5e1;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}

.process-step-card h3 {
  font-size: 1.08rem;
  font-weight: 900;
  color: #0f2952;
  margin-bottom: 0.45rem;
  line-height: 1.28;
}

.process-step-card p {
  font-size: 0.89rem;
  color: #334155;
  line-height: 1.55;
  margin: 0;
}

.process-step-card p strong {
  color: #0f172a;
}

.process-cta-bar {
  margin-top: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  padding: 1.1rem 1.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .process-cta-bar {
    flex-direction: row;
    text-align: left;
  }
}

.process-cta-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.process-cta-info strong {
  font-size: 1.04rem;
  font-weight: 900;
  color: #ffffff;
}

.process-cta-info span {
  font-size: 0.86rem;
  color: #fde68a;
  font-weight: 600;
}

.process-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
}

@media (min-width: 640px) {
  .process-cta-buttons {
    width: auto;
  }
}

/* FAQ Responsivo */
.faq-list {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item.active {
  border-color: var(--primary);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0.9rem 1rem;
  font-size: 0.93rem;
  font-weight: 800;
  color: #0f2952;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.35;
}

@media (min-width: 640px) {
  .faq-question {
    padding: 1.05rem 1.25rem;
    font-size: 1rem;
  }
}

.faq-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--primary);
  color: #ffffff;
}

.faq-answer {
  display: none;
  padding: 0 1rem 1rem;
  font-size: 0.9rem;
  color: #1e293b;
}

@media (min-width: 640px) {
  .faq-answer {
    padding: 0 1.25rem 1.15rem;
    font-size: 0.94rem;
  }
}

.faq-item.active .faq-answer {
  display: block;
}

/* Internal Silo & Footer Responsivos */
.internal-silo-section {
  padding: 2.25rem 0;
  background: #0f2952;
  color: #ffffff;
  border-top: 4px solid #f59e0b;
}

@media (min-width: 768px) {
  .internal-silo-section {
    padding: 3rem 0;
  }
}

.silo-links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 540px) {
  .silo-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .silo-links-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.silo-col h3 {
  font-size: 0.92rem;
  font-weight: 900;
  color: #fbbf24;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

.silo-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.silo-col a {
  color: #f1f5f9;
  font-size: 0.84rem;
}

.silo-col a:hover {
  color: #fbbf24;
}

.site-footer {
  background: #081833;
  color: #e2e8f0;
  padding: 2.25rem 0 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  }
}

.site-footer .brand-logo {
  color: #ffffff !important;
}

.footer-title {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.7rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.footer-links a {
  color: #e2e8f0;
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: #fbbf24;
}

.footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #cbd5e1;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ==========================================================================
   BARRA MÓVIL FIJA INFERIOR Y BOTONES FLOTANTES DE ESCRITORIO (SIN DUPLICARSE)
   ========================================================================== */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #0f2952;
  border-top: 2px solid #f59e0b;
  padding: 0.45rem 0.5rem;
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: 0.35rem;
  box-shadow: 0 -4px 16px rgba(7, 19, 38, 0.35);
}

@media (min-width: 992px) {
  .mobile-sticky-cta {
    display: none;
  }
}

.mob-cta-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.2rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  color: #ffffff !important;
  text-align: center;
  line-height: 1.15;
  white-space: nowrap;
}

.mob-cta-call { background: #1d4ed8; }
.mob-cta-wa { background: #16a34a; }
.mob-cta-quote { background: #ea580c; }

/* En móvil y tablet (< 992px) ocultamos los botones flotantes laterales para que NO tapen el contenido ni dupliquen la barra fija inferior */
.floating-action-dock {
  display: none;
}

@media (min-width: 992px) {
  .floating-action-dock {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9990;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: flex-end;
  }
}

.fab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-full);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.28);
}

.fab-wa { background: #16a34a; }
.fab-call { background: #ea580c; }

/* ==========================================================================
   HOME LANDING PAGE SHOWCASE SECTIONS (EQUIPO ELÉCTRICO RIDGID - NO BLOG FORMAT)
   ========================================================================== */
.home-split-hero-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-top: 5px solid #ea580c;
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  align-items: center;
}

@media (min-width: 768px) {
  .home-split-hero-card {
    padding: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .home-split-hero-card {
    grid-template-columns: 1.25fr 0.95fr;
    gap: 2.5rem;
  }
}

.home-lead-text {
  font-size: 1rem;
  color: #1e293b;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.home-highlight-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background: linear-gradient(135deg, #0f2952 0%, #1e3a8a 100%);
  color: #ffffff;
  padding: 1.15rem 1.25rem;
  border-radius: 12px;
  border-left: 5px solid #f59e0b;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 20px rgba(15, 41, 82, 0.18);
}

.home-highlight-icon {
  font-size: 1.65rem;
  line-height: 1;
  flex-shrink: 0;
}

.home-highlight-banner strong {
  display: block;
  font-size: 0.98rem;
  color: #fbbf24;
  margin-bottom: 0.25rem;
}

.home-highlight-banner p {
  font-size: 0.88rem;
  color: #f1f5f9;
  line-height: 1.5;
  margin: 0;
}

.home-highlight-banner p strong {
  display: inline;
  color: #ffffff;
  font-size: inherit;
}

.home-pill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.home-pill-item {
  background: #f1f5f9;
  color: #0f2952;
  border: 1px solid #cbd5e1;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.home-visual-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid #0f2952;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
  background: #0f2952;
}

.home-visual-frame img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.home-visual-overlay-card {
  background: rgba(11, 31, 63, 0.95);
  color: #ffffff;
  padding: 1.1rem 1.2rem;
  border-top: 3px solid #f59e0b;
}

.overlay-card-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.overlay-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
  flex-shrink: 0;
}

.overlay-card-top strong {
  font-size: 0.8rem;
  color: #fde68a;
  letter-spacing: 0.02em;
}

.home-visual-overlay-card p {
  font-size: 0.84rem;
  color: #e2e8f0;
  margin-bottom: 0.8rem;
  line-height: 1.45;
}

.overlay-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* 4-Column RIDGID Equipment Comparison Cards */
.home-equip-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

@media (min-width: 640px) {
  .home-equip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .home-equip-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

.home-equip-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-top: 5px solid #1d4ed8;
  border-radius: 14px;
  padding: 1.3rem 1.15rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.home-equip-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.home-equip-card.equip-featured {
  border-top-color: #ea580c;
  background: linear-gradient(180deg, #fffdf9 0%, #ffffff 100%);
}

.home-equip-card:nth-child(3) {
  border-top-color: #0f2952;
}

.home-equip-card:nth-child(4) {
  border-top-color: #16a34a;
}

.equip-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid #e2e8f0;
}

.equip-model-badge {
  background: #0f2952;
  color: #fbbf24;
  font-size: 0.74rem;
  font-weight: 900;
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.equip-featured .equip-model-badge {
  background: #ea580c;
  color: #ffffff;
}

.equip-diameter-pill {
  background: #eff6ff;
  color: #1e3a8a;
  border: 1px solid #bfdbfe;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
}

.home-equip-card h3 {
  font-size: 1.06rem;
  font-weight: 900;
  color: #0f2952;
  margin-bottom: 0.45rem;
  line-height: 1.28;
}

.equip-desc {
  font-size: 0.86rem;
  color: #334155;
  line-height: 1.5;
  margin-bottom: 0.95rem;
  flex-grow: 1;
}

.equip-meta-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.equip-meta-box div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.equip-meta-box span {
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #ea580c;
}

.equip-meta-box strong {
  font-size: 0.81rem;
  color: #0f172a;
  line-height: 1.38;
}

/* 7 Warning Signals Diagnostic Grid (Con Iconos SVG Profesionales e Insignia de Señal) */
.home-alerts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

@media (min-width: 640px) {
  .home-alerts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .home-alerts-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

.home-alert-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-top: 4px solid #ea580c;
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.home-alert-card:nth-child(even) {
  border-top-color: #1d4ed8;
}

.home-alert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.12);
}

.alert-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #f1f5f9;
}

.alert-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid #fdba74;
  color: #ea580c;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(234, 88, 12, 0.12);
}

.home-alert-card:nth-child(even) .alert-icon-badge {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #93c5fd;
  color: #1d4ed8;
  box-shadow: 0 3px 8px rgba(29, 78, 216, 0.12);
}

.alert-step-pill {
  font-size: 0.68rem;
  font-weight: 900;
  color: #0f2952;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.alert-content h3 {
  font-size: 1rem;
  font-weight: 900;
  color: #0f2952;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.alert-content p {
  font-size: 0.85rem;
  color: #334155;
  line-height: 1.5;
  margin: 0;
}

.home-alert-card.home-alert-cta {
  background: linear-gradient(135deg, #0f2952 0%, #1e3a8a 100%);
  border-color: #0f2952;
  border-top: 4px solid #22c55e;
  color: #ffffff;
}

.home-alert-card.home-alert-cta .alert-card-top {
  border-bottom-color: rgba(255, 255, 255, 0.16);
}

.alert-icon-badge.alert-icon-cta {
  background: #16a34a !important;
  border-color: #4ade80 !important;
  color: #ffffff !important;
}

.alert-step-pill.alert-pill-cta {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fbbf24;
  color: #fde68a;
}

.home-alert-card.home-alert-cta h3 {
  color: #fbbf24;
}

.home-alert-card.home-alert-cta p {
  color: #f1f5f9;
}

/* Home Coverage & Catalog Hub */
.home-coverage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .home-coverage-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.75rem;
  }
}

.coverage-panel-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-top: 4px solid #1d4ed8;
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
}

@media (min-width: 640px) {
  .coverage-panel-card {
    padding: 1.85rem;
  }
}

.home-zone-chips {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

@media (min-width: 480px) {
  .home-zone-chips {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .home-zone-chips {
    grid-template-columns: repeat(3, 1fr);
  }
}

.zone-chip {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #0f2952 !important;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.zone-chip:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff !important;
  transform: translateY(-2px);
}

.zone-chip-edomex {
  grid-column: 1 / -1;
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1e3a8a !important;
}

.home-catalog-mini-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex-grow: 1;
}

.catalog-mini-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #1d4ed8;
  border-radius: 11px;
  padding: 0.75rem 0.9rem;
  color: #0f172a;
  transition: all 0.2s ease;
}

.catalog-mini-item:hover {
  border-color: #1d4ed8;
  background: #eff6ff;
  transform: translateX(3px);
}

.catalog-mini-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #dbeafe;
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.catalog-mini-body {
  flex: 1;
  min-width: 0;
}

.catalog-mini-body strong {
  display: block;
  font-size: 0.93rem;
  font-weight: 900;
  color: #0f2952;
  margin-bottom: 0.15rem;
  line-height: 1.25;
}

.catalog-mini-body strong a {
  color: #0f2952;
}

.catalog-mini-body strong a:hover {
  color: #1d4ed8;
}

.catalog-mini-body span {
  display: block;
  font-size: 0.81rem;
  color: #334155;
  line-height: 1.4;
}

.catalog-mini-body span a {
  color: #1d4ed8;
  font-weight: 700;
}

.catalog-mini-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f2952 !important;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.catalog-mini-item:hover .catalog-mini-arrow {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff !important;
}
