/* ========= THEME ========= */
:root {
  --navy: #001b3a;
  /* azul marino */
  --navy-2: #002147;
  --white: #ffffff;
  --red: #e30613;
  --yellow: #ffd400;
  /* amarillo fuerte */
  --ink: #0f172a;
  --muted: #f2f4f7;
  --muted-2: #e9eef5;
  --border: #d9e0ea;
  --shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0
}

body {
  font: 16px/1.55 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  scroll-behavior: smooth;
}

/* ========= NAVBAR ========= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1rem;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: box-shadow .2s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}

.brand-logo {
  height: 40px;
  width: auto
}

a.brand {
  text-decoration: none
}

a.brand .brand-name {
  text-decoration: none;
  /* asegura que tampoco se aplique al span */
  display: inline-block;
  /* opcional, evita herencias raras */
  color: var(--navy);
}

.brand-name {
  font-weight: 700;
  letter-spacing: .2px;
  color: var(--navy);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  color: var(--navy);
  /* <- antes usabas var(--black) */
  text-decoration: none;
  font-weight: 500;
  transition: all .2s ease;
  padding: .4rem .75rem;
  /* espacio alrededor del texto */
  border-radius: .45rem;
  display: inline-block;
}

.nav-link:hover,
.nav-link.active {
  background: var(--red);
  color: var(--white);
}

.btn-icon {
  position: relative;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .25);
  color: var(--white);
  padding: .35rem .6rem;
  border-radius: .5rem;
  cursor: pointer
}

.btn-icon .icon {
  margin-right: .35rem
}

.badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--yellow);
  color: #111;
  font-size: .7rem;
  padding: 0 .35rem;
  border-radius: 8px
}

/* Hamburger */
.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 0, 0, .15);
  border-radius: .5rem;
  background: transparent;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #000;
  margin: 6px auto;
  transition: background .2s ease;
}


/* ===== Hero con zoom suave (Ken Burns) ===== */
#inicio {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  padding: 4rem 1rem 3rem;
}

/* Capa de imagen que hace zoom */
#inicio::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('hero.webp');
  /* <-- usa tu ruta/archivo reales */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1);
  animation: heroZoom 18s ease-in-out infinite alternate;
  will-change: transform;
  backface-visibility: hidden;
}

/* Overlay */
#inicio::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(0, 27, 58, .55), rgba(0, 27, 58, .30));
  pointer-events: none;
}

#inicio>* {
  position: relative;
  z-index: 1;
}

@keyframes heroZoom {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.08);
  }
}

.hero__content {
  opacity: 0;
  transform: translateY(8px);
  animation: heroFadeIn .9s ease .2s forwards;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #inicio::before {
    animation: none;
    transform: none;
  }

  .hero__content {
    animation: none;
    opacity: 1;
    transform: none;
  }
}


.hero__content {
  max-width: 900px
}


.hero {
  display: flex;
  justify-content: center;
  /* centra horizontalmente */
  text-align: center;
  /* centra el texto */
  background-size: cover;
  background-position: center;
  padding: 60px 20px;
  /* da espacio arriba y abajo para que respire */
  color: #fff;
}

.hero__content {
  max-width: 800px;
}

.hero__title {
  font-size: clamp(28px, 4vw, 48px);
  margin: 0 0 .5rem;
  font-weight: 800
}

.hero__title span {
  color: var(--yellow)
}

.hero__subtitle {
  opacity: .95;
  margin: 0 auto 1.25rem;
  max-width: 700px
}

.hero__cta {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__cta a {
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  cursor: pointer;
  border-radius: .6rem;
  border: 2px solid transparent;
  padding: .7rem 1.1rem;
  font-weight: 700
}

.btn-primary {
  background: var(--red);
  color: var(--white)
}

.btn-primary:hover {
  filter: brightness(1.06)
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .65)
}

.btn-outline:hover {
  background: rgba(255, 255, 255, .1)
}

.btn-small {
  padding: .5rem .8rem;
  font-weight: 600
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink)
}

.btn-ghost:hover {
  background: var(--muted)
}

/* ========= SECTIONS ========= */
.section {
  padding: 3.5rem 1rem
}

.section-alt {
  background: var(--muted)
}

.section__header {
  max-width: 900px;
  margin: 0 auto 1.5rem;
  text-align: center
}

.section__header h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin: .2rem 0 .4rem
}

.section__header p {
  color: #475569
}

/* ========= CONTROLS ========= */
.controls {
  --gap: 1rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--gap);
  max-width: 1100px;
  margin: 0 auto 1.25rem;
  background: var(--muted-2);
  border: 1px solid var(--border);
  padding: .75rem;
  border-radius: .8rem;
}

.input,
.select {
  width: 100%;
  padding: .65rem .75rem;
  border: 1px solid var(--border);
  border-radius: .6rem;
  background: #fff;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  grid-column: 1 / -1
}

.filters label {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .95rem
}

.control-right {
  display: flex;
  gap: .5rem;
  justify-content: flex-end
}

/* ========= GRID & CARDS ========= */
.grid {
  --min: 250px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--min), 1fr));
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.grid.list {
  grid-template-columns: 1fr
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto 1fr auto;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s ease, transform .4s ease;
}

.card.show {
  opacity: 1;
  transform: none
}

.card__imgwrap {
  aspect-ratio: 16/9;
  background: #ddd
}

.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.card__body {
  padding: 1rem
}

.card__title {
  margin: .2rem 0 .4rem;
  color: var(--navy)
}

.card__text {
  color: #475569
}

.card__actions {
  display: flex;
  justify-content: flex-end;
  padding: .75rem;
  border-top: 1px solid var(--border);
  gap: .5rem
}

.btn-fav {
  border-color: var(--border)
}

.btn-fav.active {
  background: var(--yellow);
  color: #111
}

/* ========= ACCORDION ========= */
.accordion {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: .75rem
}

details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: .8rem;
  overflow: hidden
}

summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1rem;
  font-weight: 700;
  color: var(--navy)
}

summary::-webkit-details-marker {
  display: none
}

.acc-body {
  padding: 0 1rem 1rem;
  color: #475569;
  background: var(--muted)
}

.chev {
  transition: transform .2s ease
}

details[open] .chev {
  transform: rotate(180deg)
}

/* ========= KPIs ========= */
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto 1rem
}

.kpi {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.2rem;
  text-align: center
}

.kpi__num {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--red)
}

.kpi__label {
  color: #475569
}

/* ========= FORM ========= */
.form {
  max-width: 900px;
  margin: 0 auto
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem
}

.field {
  display: grid;
  gap: .35rem
}

.field--full {
  grid-column: 1 / -1
}

.field span {
  font-weight: 700;
  color: var(--navy)
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: .6rem;
  padding: .7rem .8rem;
  background: #fff
}

.helper {
  display: flex;
  justify-content: flex-end
}

.error {
  color: var(--red);
  min-height: 1em
}

.form__actions {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-top: .5rem
}

.legal {
  color: #64748b;
  font-size: .9rem;
  margin-top: .5rem
}

/* ========= FOOTER ========= */
.footer {
  background: linear-gradient(90deg, var(--navy), var(--navy-2));
  color: #cbd5e1;
  padding: 2rem 1rem 1rem
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto 1rem
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: #fff;
  font-weight: 800
}

.footer__brand img {
  height: 28px
}

.footer__links {
  display: grid;
  gap: .35rem
}

.footer__links a {
  color: #e2e8f0;
  text-decoration: none
}

.footer__links a:hover {
  color: var(--yellow)
}

.newsletter {
  display: grid;
  gap: .4rem
}

.newsletter__row {
  display: flex;
  gap: .5rem
}

.newsletter input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: .6rem;
  padding: .6rem .75rem
}

.copy {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: .75rem;
  font-size: .9rem
}

/* ========= UTIL ========= */
.toTop {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--red);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: none;
  align-items: center;
  justify-content: center;
}

.toTop.show {
  display: flex
}

/* Toasts */
.toasts {
  position: fixed;
  right: 16px;
  bottom: 72px;
  display: grid;
  gap: .5rem;
  z-index: 1100
}

.toast {
  background: #111827;
  color: #fff;
  padding: .6rem .8rem;
  border-radius: .6rem;
  box-shadow: var(--shadow);
  max-width: 280px
}

.toast--ok {
  background: #065f46
}

.toast--warn {
  background: #92400e
}

.toast--err {
  background: #7f1d1d
}

/* ==== Stores layout + Carousel ==== */
.store {
  max-width: 1100px;
  margin: 0 auto 2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  overflow: hidden
}

.store__header {
  padding: 1rem 1rem .5rem;
  border-bottom: 1px solid var(--border)
}

.store__header h3 {
  margin: .2rem 0 .35rem;
  color: var(--navy)
}

.store__contacts {
  color: #475569
}

.store__contacts a {
  color: #0f172a;
  text-decoration: none
}

.store__contacts a:hover {
  color: var(--red)
}

.store__addr {
  color: #475569;
  margin-top: .25rem
}

.store__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
  padding: 1rem
}

.store__map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  border-radius: .8rem
}

/* Carousel */
.carousel {
  position: relative;
  border: 1px solid var(--border);
  border-radius: .8rem;
  overflow: hidden;
  background: #000
}

.carousel__track {
  display: flex;
  transition: transform .35s ease-in-out
}

.carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16/10;
  display: block
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, .45);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer
}

.carousel__btn:hover {
  background: rgba(0, 0, 0, .65)
}

.carousel__btn.prev {
  left: 8px
}

.carousel__btn.next {
  right: 8px
}

.carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  gap: 6px;
  justify-content: center
}

.carousel__dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .35);
  cursor: pointer
}

.carousel__dots button.active {
  background: var(--yellow);
  border-color: var(--yellow)
}

/* ==== Ajustes por simplificación de inicio ==== */
.controls {
  display: none !important;
}

/* por si quedaba alguna clase */
.grid.list {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* aseguramos vista de tarjetas */

/* ==== Botones flotantes ==== */
.fab {
  position: fixed;
  right: 16px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow);
  z-index: 1200;
  border: none;
}

.fab-whatsapp {
  bottom: 88px;
  /* arriba del botón toTop */
  background: #25D366;
  /* verde WhatsApp */
}

.fab-remote {
  bottom: 152px;
  /* un poco más arriba */
  background: var(--red);
  /* rojo corporativo */
}

/* Mejoras de legibilidad en cards de contacto */
#contacto .card__body p a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed rgba(0, 0, 0, .2);
}

#contacto .card__body p a:hover {
  color: var(--red);
  border-color: var(--red);
}

/* === Grids de 3 columnas responsivas === */
.grid.grid-3 {
  display: grid;
  gap: 1rem;
}


/* Animación de zoom (leve, elegante) */
@keyframes heroZoom {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.08);
  }

  /* 1.06–1.10 es el rango cómodo */
}

/* (Opcional) Entrada suave del contenido del hero */
.hero__content {
  opacity: 0;
  transform: translateY(8px);
  animation: heroFadeIn .9s ease .2s forwards;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: none;
  }
}


/* Desktop (>= 1024px): 3 columnas */
@media (min-width: 1024px) {
  .grid.grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet (720px–1023px): 2 columnas */
@media (min-width: 720px) and (max-width: 1023.98px) {
  .grid.grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Móvil (< 720px): 1 columna */
@media (max-width: 719.98px) {
  .grid.grid-3 {
    grid-template-columns: 1fr;
  }
}

/* (opcional) Asegurar misma altura visual de las cards */
.grid.grid-3>.card {
  height: 100%;
}


/* Responsive */
@media (max-width: 880px) {
  .store__grid {
    grid-template-columns: 1fr;
  }

  .store__map iframe {
    min-height: 260px
  }
}

/* ========= RESPONSIVE ========= */
@media (max-width: 1000px) {
  .controls {
    grid-template-columns: 1fr;
    align-items: start
  }

  .control-right {
    justify-content: flex-start
  }
}

@media (max-width: 860px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr
  }
}

@media (max-width: 768px) {
  .nav {
    position: absolute;
    inset: 64px 8px auto;
    background: linear-gradient(90deg, var(--navy), var(--navy-2));
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: .8rem;
    padding: .6rem;
    display: none;
    flex-direction: column;
  }

  .nav.show {
    display: flex;
  }

  .hamburger {
    display: inline-block;
  }

  .nav.show .nav-link {
    color: #fff;
    display: block;
    padding: .75rem 1rem;
    /* aire suficiente */
    border-radius: .4rem;
  }

  .nav.show .nav-link:hover,
  .nav.show .nav-link.active {
    background: var(--red);
    color: var(--white);
  }
}

.form__grid {
  grid-template-columns: 1fr
}


@media (max-width: 520px) {
  .footer__grid {
    grid-template-columns: 1fr
  }
}

iconify-icon {
  display: inline-block;
  vertical-align: -0.125em;
  font-size: 1.1em;
  color: currentColor;
}

.icon {
  font-size: 1.2em;
}

.icon-sm {
  font-size: 1em;
}

.icon-lg {
  font-size: 1.4em;
}

.btn .icon {
  margin-right: .45rem;
}

.card__title .icon {
  margin-right: .45rem;
}

/* Botones flotantes: ícono en blanco para contraste */
.fab iconify-icon {
  color: #fff;
}

/* Espaciado cuando van dentro de botones o encabezados */
.btn .icon {
  margin-right: .45rem;
}

.card__title .icon {
  margin-right: .45rem;
}

/* Contacto: texto algo más sobrio */
.contact-label {
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.contact-muted {
  color: #475569;
}

/* Footer redes */
.footer__social a {
  color: #0f172a;
  /* tono único */
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .25rem .4rem;
  border-radius: .5rem;
}

.footer__social a:hover {
  color: var(--red);
}

.footer__social a {
  color: white;
  display: flex;
  gap: .35rem
}

.about__text {
  text-align: justify;
  max-width: 1000px;
  margin: 0 auto;
}

.btn {
  text-decoration: none;
}

.btn-red {
  background-color: #e30613;
  color: #fff;
  border: 2px solid #e30613;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  display: inline-block;
  transition: background 0.3s, color 0.3s;
}

.btn-red:hover {
  background-color: var(--red);
  ;
  border-color: var(--red);
  ;
}

.brand-logo {
  height: 60px;
  width: auto;
}