/* ==========================================================================
    VARIABLES Y CONFIGURACIÓN BASE
   ========================================================================== */
:root {
  --ink: #132235;
  --ink-2: #1d3656;
  --muted: #5d6a78;
  --line: #dfe6ee;
  --soft: #f5f7fa;
  --white: #ffffff;
  --gold: #d9a441;
  --orange: #f06423;
  --green: #16a65a;
  --shadow: 0 18px 44px rgba(19, 34, 53, 0.12);
  --shadow-strong: 0 24px 64px rgba(19, 34, 53, 0.18);
  --radius: 18px;
  --radius-sm: 8px;
  --container: min(1120px, calc(100% - 32px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

img,
iframe {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding-block: clamp(52px, 8vw, 92px);
}

/* ==========================================================================
   ACCESIBILIDAD Y ENLACES
   ========================================================================== */
.skip-link {
  position: absolute;
  top: -52px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--white);
  background: var(--ink);
  transition: all 0.3s ease;
}

.skip-link:focus {
  top: 16px;
}

/* ==========================================================================
   CABECERA (HEADER Y NAVEGACIÓN)
   ========================================================================== */
.site-header {
  position: sticky !important;
  top: 0;
  z-index: 99999 !important;
  border-bottom: 1px solid rgba(223, 230, 238, 0.85);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  transition: all 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 28px rgba(19, 34, 53, 0.1);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.brand:hover,
.brand:focus-visible {
  transform: translateY(-1px);
}

.brand__mark {
  width: 42px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--ink);
  font-weight: 900;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav__links {
  position: fixed;
  inset: 72px 16px auto;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 99999 !important;
}

.nav__links.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav__links a {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 750;
  transition: all 0.3s ease;
}

.nav__links a:hover,
.nav__links a:focus-visible,
.nav__links a[aria-current="page"] {
  color: var(--ink);
  background: rgba(217, 164, 65, 0.18);
}

.nav__toggle {
  width: 44px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav__toggle:hover,
.nav__toggle:focus-visible {
  border-color: var(--gold);
  transform: translateY(-1px);
}

/* ==========================================================================
   HERO SECTIONS (ZONA PRINCIPAL)
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, #132235 0%, #1d3656 100%);
}

.hero--compact {
  background: linear-gradient(135deg, #1d3656 0%, #132235 100%);
}

.hero__grid {
  min-height: min(780px, calc(100vh - 72px));
  display: grid;
  align-items: center;
  gap: 34px;
  padding-block: clamp(64px, 10vw, 110px);
}

.hero--compact .hero__grid {
  min-height: 420px;
}

.hero__content {
  max-width: 760px;
}

.hero-header-container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 25px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-bottom: 20px;
}

.hero-title {
  margin: 0 !important;
  text-align: left !important;
}

.hero-title-img {
  width: 160px !important;
  min-width: 160px !important;
  height: 120px !important;
  object-fit: cover !important;
  border-radius: 8px !important;
  display: block !important;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3, p {
  overflow-wrap: break-word;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.1;
}

h1 {
  max-width: 13ch;
  font-size: clamp(2.55rem, 13vw, 5rem);
}

.hero--compact h1 {
  max-width: 16ch;
  font-size: clamp(2.35rem, 10vw, 4.4rem);
}

h2 {
  font-size: clamp(1.85rem, 7vw, 3rem);
}

h3 {
  font-size: clamp(1.16rem, 4vw, 1.42rem);
}

.lead {
  max-width: 72ch;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
}

.hero__actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.stat {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
}

.stat strong {
  display: block;
  font-size: 1.4rem;
}

.stat span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

/* ==========================================================================
   TARJETAS, GRIDS Y SECCIONES INTERNAS
   ========================================================================== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
}

.breadcrumb a {
  border-bottom: 1px solid currentColor;
  transition: all 0.3s ease;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--gold);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 30px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 0.95rem;
}

.grid-2,
.grid-3,
.zone-grid,
.case-grid {
  display: grid;
  gap: 18px;
}

.card,
.service-card,
.zone-card,
.case-card,
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(19, 34, 53, 0.07);
  transition: all 0.3s ease;
  padding: clamp(20px, 5vw, 28px);
}

.card:hover,
.service-card:hover,
.zone-card:hover,
.case-card:hover,
.faq-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card p,
.zone-card p,
.case-card p,
.card p,
.faq-item p,
.content p,
.content li {
  color: var(--muted);
}

.service-card--urgent {
  color: var(--white);
  border: 0;
  background: linear-gradient(145deg, #f06423 0%, #d9a441 100%);
}

.service-card--urgent p {
  color: rgba(255, 255, 255, 0.9);
}

.service-card--security {
  color: var(--white);
  border: 0;
  background: linear-gradient(145deg, #132235 0%, #1d3656 100%);
}

.service-card--security p {
  color: rgba(255, 255, 255, 0.9);
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--ink-2);
  font-weight: 900;
  border-bottom: 2px solid var(--gold);
  transition: all 0.3s ease;
}

.service-card--urgent .text-link,
.service-card--security .text-link {
  color: var(--white);
  border-bottom-color: currentColor;
}

.text-link:hover,
.text-link:focus-visible {
  transform: translateX(4px);
  color: var(--orange);
}

/* ==========================================================================
   CONTENIDOS, MARCAS Y DETALLES
   ========================================================================== */
.content {
  background: var(--white);
}

.content__wrap {
  display: grid;
  gap: 28px;
}

.content article {
  max-width: 850px;
}

.content h2 {
  margin-top: 34px;
}

.content h2:first-child {
  margin-top: 0;
}

.content h3 {
  margin-top: 24px;
}

.content ul {
  padding-left: 20px;
}

.media-card {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.media-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.cta-band {
  color: var(--white);
  background: var(--ink);
}

.cta-band__grid {
  display: grid;
  gap: 24px;
  align-items: center;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.82);
}

.brands {
  background: var(--white);
}

.brand-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(28px, 7vw, 68px);
}

.brand-cloud span {
  color: var(--ink);
  font-size: clamp(1.15rem, 5vw, 2rem);
  font-weight: 950;
  opacity: 0.5;
  filter: grayscale(1);
  transition: all 0.3s ease;
}

.brand-cloud span:hover {
  opacity: 1;
  filter: grayscale(0);
  transform: translateY(-3px) scale(1.04);
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item h3 {
  margin-bottom: 8px;
}

.map iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: var(--radius);
}

/* ==========================================================================
   FOOTER (PIE DE PÁGINA)
   ========================================================================== */
.site-footer {
  padding-block: 48px 88px;
  color: rgba(255, 255, 255, 0.78);
  background: #0d1623;
}

.footer__grid {
  display: grid;
  gap: 26px;
}

.site-footer .brand {
  color: var(--white);
}

.site-footer .brand small,
.site-footer p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links,
address {
  display: grid;
  gap: 8px;
  font-style: normal;
}

.footer-links a,
address a {
  width: fit-content;
  color: var(--white);
  font-weight: 800;
  transition: all 0.3s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible,
address a:hover,
address a:focus-visible {
  color: var(--gold);
}

/* ==========================================================================
   BOTONES DE CONTACTO PREMIUM
   ========================================================================== */
.btn--call, .btn--whatsapp {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 12px 28px !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  border-radius: 50px !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  letter-spacing: 0.3px !important;
}

.btn--call {
  background: #FFA500 !important; /* Color Naranja Corporativo Brillante */
  color: #ffffff !important;
}

.btn--call:hover {
  background: #e69500 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 7px 14px rgba(255, 165, 0, 0.2), 0 3px 6px rgba(0, 0, 0, 0.08) !important;
}

.btn--whatsapp {
  background: #25D366 !important;
  color: #ffffff !important;
}

.btn--whatsapp:hover {
  background: #20ba5a !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 7px 14px rgba(37, 211, 102, 0.2), 0 3px 6px rgba(0, 0, 0, 0.08) !important;
}

.btn--call:active, .btn--whatsapp:active {
  transform: translateY(1px) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVE)
   ========================================================================== */
@media (min-width: 720px) {
  .nav__toggle {
    display: none;
  }

  .nav__links {
    position: static;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-call {
    display: none !important;
  }

  .grid-2,
  .zone-grid,
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 940px) {
  .hero__grid {
    grid-template-columns: 1fr 0.82fr;
  }

  .content__wrap,
  .cta-band__grid,
  .footer__grid {
    grid-template-columns: 1fr 0.72fr;
  }

  .zone-grid,
  .case-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  body {
    font-size: 87.5%;
    line-height: 1.5;
  }

  .content p,
  .content li,
  .service-card p,
  .zone-card p,
  .case-card p,
  .faq-item p,
  .section-heading p {
    font-size: 0.95rem;
  }

  .nav__links a {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .hero-header-container {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 15px !important;
  }
  .hero-title-img {
    width: 100% !important;
    height: 150px !important;
  }
  h1 {
    text-align: center !important;
  }
  html {
    font-size: 88% !important;
  }
  
  /* Botón flotante móvil circular perfecto */
  .mobile-call {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    width: 60px !important;
    height: 60px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #FFA500 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
    z-index: 999999 !important;
    font-size: 0.85rem !important;
    font-weight: bold !important;
    text-align: center !important;
    line-height: 1.2 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}