/* ==========================================================================
   Pelaez Seguridad - Hoja de estilos única
   Índice
   01. Variables y reset
   02. Utilidades y botones
   03. Cabecera (topbar, header, navegación)
   04. Banner principal
   05. Diferenciales
   06. Secciones, títulos y encabezados de página
   07. Tarjetas (producto y servicio)
   08. Carrusel
   09. Grillas, filtros y categorías
   10. Bloques de contenido (about, panel, values, clientes, CTA)
   11. Ficha de producto y servicio
   12. Contacto
   13. Pie de página
   14. Botón flotante de WhatsApp
   15. Responsive
   ========================================================================== */

/* 01. Variables y reset ---------------------------------------------------- */
:root {
  /* Color */
  --navy-950: #030816;
  --navy-900: #061334;
  --navy-800: #0a2258;
  --navy-700: #123b87;
  --blue-600: #1e5bb8;
  --blue-100: #eef5ff;
  --blue-050: #f7fbff;
  --steel: #65718a;
  --line: #c9d8f2;
  --white: #ffffff;
  --text: #0d1730;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;

  /* Tipografía: una sola familia en todo el sitio */
  --font-body: Montserrat, "Segoe UI", Arial, sans-serif;

  /* Espaciado y forma */
  --container: 1180px;
  --radius: 4px;
  --shadow: 0 18px 42px rgba(3, 8, 22, 0.16);
  --transition: 180ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

/* 02. Utilidades y botones ------------------------------------------------- */
.container {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 26px;
  color: var(--white);
  background: var(--navy-800);
  border: 1px solid var(--navy-800);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}

.btn:hover,
.btn:focus-visible {
  color: var(--navy-900);
  background: var(--white);
}

.btn--ghost {
  color: var(--navy-900);
  background: var(--white);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--white);
  background: var(--navy-800);
}

.btn--sm {
  min-height: 40px;
  padding: 10px 18px;
  font-size: 11px;
}

/* Botones que abren WhatsApp y lo dicen en su texto */
.btn--whatsapp {
  color: var(--white);
  background: var(--whatsapp);
  border-color: var(--whatsapp);
}

.btn--whatsapp:hover,
.btn--whatsapp:focus-visible {
  color: var(--white);
  background: var(--whatsapp-dark);
  border-color: var(--whatsapp-dark);
}

/* 03. Cabecera ------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--navy-900);
  box-shadow: 0 4px 18px rgba(3, 8, 22, 0.24);
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  min-height: 34px;
  padding: 7px 28px;
  color: var(--white);
  background: var(--navy-700);
  font-size: 12px;
  font-weight: 800;
}

.topbar__social {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Iconos blancos de redes: Facebook, Instagram y WhatsApp */
.brand-icon {
  width: 18px;
  height: 18px;
  fill: var(--white);
  transition: opacity var(--transition), transform var(--transition);
}

.topbar__social a:hover .brand-icon,
.topbar__social a:focus-visible .brand-icon {
  opacity: 0.75;
  transform: translateY(-1px);
}

.topbar__message {
  text-align: center;
}

.topbar__contact {
  justify-self: end;
}

.header__main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 18px 28px;
  color: var(--white);
}

.header__logo {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background: var(--white);
  border-radius: var(--radius);
}

.header__logo img {
  width: 190px;
}

.header__claim {
  color: #cfe0ff;
  font-size: 13px;
  font-weight: 600;
}

.tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.tools__item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.tools__item:hover {
  color: #cfe0ff;
}

/* Sobre la cabecera oscura el hover no puede volverse azul marino:
   el botón se mantiene claro y solo cambia de tono. */
.tools .btn--ghost:hover,
.tools .btn--ghost:focus-visible {
  color: var(--navy-900);
  background: var(--blue-100);
}

.nav {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 0 20px;
  color: var(--white);
  background: var(--navy-800);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.nav__list {
  display: flex;
}

/* Botón de menú: solo aparece en pantallas chicas */
.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 20px;
  color: var(--white);
  background: transparent;
  border: 0;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.nav__burger {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.nav__link {
  display: flex;
  align-items: center;
  padding: 17px 24px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
  transition: border-color var(--transition);
}

.nav__link:hover,
.nav__link:focus-visible,
.nav__link[aria-current="page"] {
  border-color: var(--white);
}

/* Desplegable de "Productos" ------------------------------------------------ */
.nav__group {
  position: relative;
  display: flex;
}

.nav__group .nav__link {
  gap: 7px;
}

.nav__chevron {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--transition);
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 40;
  min-width: 270px;
  padding: 8px 0;
  list-style: none;
  background: var(--navy-900);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.nav__group:hover .submenu,
.nav__group:focus-within .submenu,
.nav__group.is-open .submenu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav__group:hover .nav__chevron,
.nav__group.is-open .nav__chevron {
  transform: rotate(180deg);
}

.submenu a {
  display: block;
  padding: 11px 22px;
  color: #d6e4ff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}

.submenu a:hover,
.submenu a:focus-visible {
  color: var(--white);
  background: var(--navy-800);
}

/* 04. Banner principal ----------------------------------------------------- */
/* Una sola imagen, sin flechas, sin textos y sin capa oscura encima. */
.hero {
  background: var(--navy-950);
}

.hero img {
  width: 100%;
  height: auto;
}

/* Flechas del carrusel de productos */
.carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--navy-900);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 36px;
  line-height: 0.9;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background var(--transition);
}

.carousel__arrow:hover {
  background: var(--white);
}

/* Accesos rápidos: solo en pantallas chicas -------------------------------- */
.quick {
  display: none;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  background: var(--navy-900);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.quick::-webkit-scrollbar {
  display: none;
}

.quick__chip {
  flex: 0 0 auto;
  padding: 10px 16px;
  color: #d6e4ff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

/* 05. Diferenciales -------------------------------------------------------- */
.benefits {
  padding: 42px 0;
  color: var(--white);
  background: var(--navy-950);
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.benefits__item {
  display: block;
  min-height: 120px;
  padding: 26px 22px;
  background: var(--navy-800);
  text-align: center;
  transition: background var(--transition);
}

.benefits__item:hover,
.benefits__item:focus-visible {
  background: var(--navy-700);
}

.benefits__item strong {
  display: block;
  margin-bottom: 7px;
  font-size: 17px;
}

.benefits__item span {
  display: block;
  color: #d6e4ff;
  font-size: 13px;
}

/* 06. Secciones y títulos -------------------------------------------------- */
.section {
  padding: 62px 0 70px;
}

.section--tint {
  background: var(--blue-050);
}

.section-head {
  margin-bottom: 32px;
  text-align: center;
}

.section-lead {
  max-width: 780px;
  margin: -12px auto 34px;
  color: var(--steel);
  font-size: 16px;
  text-align: center;
}

.section-note {
  margin-top: 28px;
  color: var(--steel);
  font-size: 13px;
  text-align: center;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--blue-600);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-head h2,
.page-hero h1,
.detail__title,
.about h2,
.cta h2 {
  color: var(--navy-900);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.01em;
}

.page-hero {
  padding: 60px 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
}

.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr);
  align-items: center;
  gap: 40px;
}

.page-hero h1 {
  color: var(--white);
}

.page-hero .lead {
  max-width: 640px;
  margin-top: 16px;
  color: #d6e4ff;
  font-size: 16px;
}

.page-hero .btn {
  margin-top: 26px;
}

.page-hero .btn + .btn {
  margin-left: 12px;
}

.page-hero img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* 07. Tarjetas ------------------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.card__media {
  display: block;
  height: 260px;
  padding: 14px;
  background: var(--blue-050);
  overflow: hidden;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 22px 24px;
  text-align: center;
}

.card__title {
  min-height: 48px;
  color: var(--navy-900);
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
}

.card__text {
  flex: 1;
  margin: 10px 0 14px;
  color: var(--steel);
}

.card__body .btn {
  align-self: center;
}

/* 08. Carrusel ------------------------------------------------------------- */
.carousel {
  position: relative;
  padding-inline: 8px;
}

.carousel__viewport {
  overflow: hidden;
}

.carousel__track {
  display: flex;
  gap: 28px;
  transition: transform 420ms ease;
}

.carousel__slide {
  flex: 0 0 calc((100% - 56px) / 3);
}

.carousel__arrow--prev {
  left: -18px;
}

.carousel__arrow--next {
  right: -18px;
}

.carousel__arrow[disabled] {
  opacity: 0.35;
  cursor: default;
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 26px;
}

.carousel__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  background: var(--line);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.carousel__dot.is-active {
  background: var(--navy-800);
}

/* 09. Grillas, filtros y categorías ---------------------------------------- */
.grid {
  display: grid;
  gap: 28px;
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 26px;
}

.filters__btn {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 20px;
  color: var(--navy-900);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}

.filters__btn:hover,
.filters__btn.is-active {
  color: var(--white);
  background: var(--navy-800);
  border-color: var(--navy-800);
}

.catalog-count {
  margin-bottom: 22px;
  text-align: center;
}

.grid-actions {
  margin-top: 36px;
  text-align: center;
}

.empty-state {
  padding: 40px 0;
  color: var(--steel);
  text-align: center;
}

.category {
  display: grid;
  align-content: start;
  min-height: 250px;
  background: var(--navy-900);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.category:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.category img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  padding: 14px;
  background: var(--blue-050);
}

.category strong {
  padding: 20px 22px 0;
  color: var(--white);
  font-size: 17px;
  text-transform: uppercase;
}

.category span {
  padding: 0 22px 22px;
  color: #d7e5ff;
  font-weight: 700;
}

/* 10. Bloques de contenido ------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  align-items: center;
  gap: 44px;
}

.about p {
  margin-top: 16px;
  color: var(--steel);
  font-size: 16px;
}

.about .btn {
  margin-top: 28px;
}

.about img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.panel {
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
}

.panel h2 {
  margin-bottom: 14px;
  color: var(--navy-900);
  font-size: 20px;
  font-weight: 800;
}

.panel h2 + ul + h2 {
  margin-top: 26px;
}

.panel p {
  color: var(--steel);
  font-size: 15px;
}

/* Texto largo (política de datos): ancho de lectura cómodo */
.prose {
  max-width: 820px;
}

.prose h2 {
  margin: 38px 0 12px;
  color: var(--navy-900);
  font-size: 22px;
  font-weight: 800;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin-bottom: 14px;
  color: var(--steel);
  font-size: 16px;
}

.prose a {
  color: var(--blue-600);
  font-weight: 700;
  text-decoration: underline;
}

.prose strong {
  color: var(--text);
}

.prose .detail__list {
  margin: 0 0 16px;
  color: var(--steel);
}

.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 34px;
}

.values article {
  padding: 26px 24px;
  background: var(--blue-050);
  border: 1px solid var(--line);
}

.values h3 {
  margin-bottom: 8px;
  color: var(--navy-900);
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
}

.values p {
  color: var(--steel);
}

/* Galería de fotos reales dentro de una solución */
.gallery {
  margin-top: 56px;
}

.gallery .section-head {
  margin-bottom: 28px;
}

/* .section-lead sube 12px para pegarse a su título; acá no hace falta. */
.gallery .section-lead {
  margin: 14px auto 0;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

/* Cada foto de la galería es un enlace a WhatsApp: se comporta como las
   tarjetas del catálogo, con el mismo realce al pasar el mouse. */
.gallery__item {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.gallery__item:hover,
.gallery__item:focus-visible {
  border-color: var(--whatsapp);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.gallery__figure {
  margin: 0;
}

.gallery__item img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  padding: 14px;
  background: var(--blue-050);
}

.gallery__item figcaption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 18px 18px;
  color: var(--navy-900);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

/* Deja claro que la foto lleva al chat, no a otra página del sitio. */
.gallery__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--whatsapp-dark);
  font-size: 12px;
  font-weight: 700;
}

.gallery__cta .brand-icon {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.gallery__item:hover .gallery__cta,
.gallery__item:focus-visible .gallery__cta {
  text-decoration: underline;
}



/* Logos siempre a color, como los entrega cada marca */


.cta {
  padding: 56px 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
}

.cta__box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta h2 {
  color: var(--white);
}

.cta p {
  margin-top: 10px;
  color: #d6e4ff;
  font-size: 16px;
}

.cta .eyebrow {
  color: #7fb0ff;
}

.cta .btn {
  background: var(--white);
  color: var(--navy-900);
  border-color: var(--white);
}

.cta .btn:hover {
  background: transparent;
  color: var(--white);
}

/* 11. Ficha de producto y servicio ----------------------------------------- */
.detail {
  padding: 62px 0;
}

.detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  align-items: start;
  gap: 40px;
}

.detail__media {
  display: block;
  height: 460px;
  padding: 22px;
  background: var(--blue-050);
  border: 1px solid var(--line);
}

.detail__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail__info {
  padding: 30px;
  background: var(--blue-050);
  border: 1px solid var(--line);
}

.detail__info .btn {
  width: 100%;
  margin-top: 12px;
}

.breadcrumb {
  margin-bottom: 8px;
  color: var(--blue-600);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  text-decoration: underline;
}

.detail__summary {
  margin-top: 14px;
  color: var(--steel);
  font-size: 16px;
}

.detail__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.detail__price strong {
  color: var(--navy-900);
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
}

.detail__price span {
  flex: 1 1 100%;
  color: var(--steel);
  font-size: 14px;
}

.detail__extra {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.detail__list {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  color: var(--text);
  font-size: 15px;
}

.detail__list li::marker {
  color: var(--blue-600);
}

/* 12. Contacto ------------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: start;
  gap: 28px;
}

.contact__form {
  display: grid;
  gap: 14px;
}

.contact__form p {
  margin-bottom: 6px;
}

.contact__form label {
  display: grid;
  gap: 6px;
}

.contact__form span {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact__form input,
.contact__form select,
.contact__form textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
}

.contact__form textarea {
  resize: vertical;
}

.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus {
  border-color: var(--blue-600);
}

.contact__form .btn {
  justify-self: start;
}

.contact__legal {
  margin-top: 4px;
  color: var(--steel);
  font-size: 12px;
}

.contact__legal a {
  color: var(--blue-600);
  font-weight: 700;
  text-decoration: underline;
}

.contact__data {
  background: var(--blue-050);
}

.contact__list {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
  padding: 0;
  list-style: none;
}

.contact__list li {
  display: grid;
  gap: 2px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.contact__list span {
  color: var(--steel);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact__list a {
  color: var(--navy-900);
  font-weight: 800;
}

/* 13. Pie de página -------------------------------------------------------- */
.footer {
  color: var(--white);
  background: var(--navy-950);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.3fr) repeat(3, minmax(150px, 1fr));
  gap: 34px;
  padding: 52px 0 38px;
}

.footer__logo {
  width: 200px;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: var(--white);
  border-radius: var(--radius);
}

.footer p,
.footer a {
  color: #d6e4ff;
}

.footer__meta,
.footer__cities {
  margin-top: 12px;
  font-size: 13px;
}

.footer h2 {
  margin-bottom: 14px;
  color: var(--white);
  font-size: 15px;
  text-transform: uppercase;
}

.footer__links a {
  display: block;
  margin-bottom: 9px;
  transition: color var(--transition);
}

.footer__links a:hover,
.footer__links a:focus-visible {
  color: var(--white);
}

.footer__payments-title {
  margin-top: 22px;
}

.footer__payments {
  width: 220px;
  padding: 8px 10px;
  background: var(--white);
  border-radius: var(--radius);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 16px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  color: #d6e4ff;
}

.footer__legal a {
  transition: color var(--transition);
}

.footer__legal a:hover,
.footer__legal a:focus-visible {
  color: var(--white);
  text-decoration: underline;
}

/* 14. Botón flotante ------------------------------------------------------------ */
.whatsapp {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: var(--white);
  background: var(--whatsapp);
  border-radius: 50%;
  transition: background var(--transition), transform var(--transition);
}

/* El símbolo ocupa más del círculo sin agrandarlo */
.whatsapp .brand-icon {
  width: 38px;
  height: 38px;
}

.whatsapp:hover,
.whatsapp:focus-visible {
  background: var(--whatsapp-dark);
  transform: scale(1.06);
}





/* 15. Responsive ----------------------------------------------------------- */

/* Menú de navegación en pantallas chicas: botón + panel vertical.
   Debajo de 900px los 5 ítems ya no entran en una sola fila. */
@media (max-width: 900px) {
  /* El menú se pliega: los accesos rápidos toman su lugar */
  .quick {
    display: flex;
  }

  .nav {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__list {
    display: none;
    flex-direction: column;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .nav.is-open .nav__list {
    display: flex;
  }

  .nav__link {
    justify-content: space-between;
    padding: 15px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* La barra inferior del ítem activo no funciona en vertical */
  .nav__link:hover,
  .nav__link:focus-visible,
  .nav__link[aria-current="page"] {
    border-bottom-color: rgba(255, 255, 255, 0.1);
    background: var(--navy-900);
  }

  .nav__group {
    flex-direction: column;
  }

  /* El desplegable se abre dentro del panel, no flotando encima */
  .submenu {
    position: static;
    display: none;
    min-width: 0;
    padding: 0;
    background: var(--navy-900);
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__group:hover .submenu,
  .nav__group:focus-within .submenu,
  .nav__group.is-open .submenu {
    display: block;
  }

  .submenu a {
    padding: 13px 22px 13px 38px;
    white-space: normal;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}
@media (max-width: 1180px) {
}

@media (max-width: 1120px) {
  .header__main {
    grid-template-columns: auto 1fr;
    row-gap: 16px;
  }

  .header__claim {
    display: none;
  }

  .tools {
    grid-column: 1 / -1;
    justify-content: center;
    flex-wrap: wrap;
  }


  .grid--3,
  .grid--4,
  .values,
  .gallery__grid,
  .benefits__grid,
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .carousel__slide {
    flex-basis: calc((100% - 28px) / 2);
  }

  .carousel__arrow--prev {
    left: -6px;
  }

  .carousel__arrow--next {
    right: -6px;
  }
}

@media (max-width: 760px) {
  /* La cabecera ocupaba media pantalla en azul: se compacta a dos filas. */
  .topbar {
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 7px 16px;
  }

  .topbar__message {
    font-size: 10px;
    text-align: right;
  }

  /* El correo ya está en el pie y en la página de contacto */
  .topbar__contact {
    display: none;
  }

  .header__main {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 18px;
    justify-items: center;
  }

  .header__logo {
    padding: 8px 12px;
  }

  .header__logo img {
    width: 150px;
  }

  .tools {
    gap: 14px;
    font-size: 12px;
  }


  .section-head h2,
  .page-hero h1,
  .detail__title,
  .about h2,
  .cta h2 {
    font-size: 28px;
  }

  .page-hero__grid,
  .about,
  .contact,
  .panel-grid,
  .detail__grid,
  .detail__extra,
  .grid--3,
  .grid--4,
  .values,
  .gallery__grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  /* En celular la cabecera, el banner y esta franja se sumaban en un bloque
     azul enorme: acá pasa a fondo claro y en dos columnas. */
  .benefits {
    padding: 26px 0;
    color: var(--text);
    background: var(--blue-050);
  }

  .benefits__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    background: transparent;
  }

  .benefits__item {
    min-height: 0;
    padding: 18px 14px;
    background: var(--white);
    border: 1px solid var(--line);
  }

  .benefits__item strong {
    color: var(--navy-900);
    font-size: 15px;
  }

  .benefits__item span {
    color: var(--steel);
    font-size: 12px;
  }

  .benefits__item:hover,
  .benefits__item:focus-visible {
    background: var(--blue-100);
  }

  .about img {
    height: 260px;
  }

  .carousel__slide {
    flex-basis: 100%;
  }

  /* En celular la caja es mucho más ancha que alta y la foto quedaba como un
     cuadrado chico en el medio: con proporción cuadrada la llena entera. */
  .detail__media {
    height: auto;
    aspect-ratio: 1;
  }


  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .whatsapp {
    right: 16px;
    bottom: 86px;
  }
}

@media (max-width: 440px) {
  .container {
    width: calc(100% - 24px);
  }

  .card__media {
    height: 220px;
  }

}
