:root {
  --navy: #0a1f4d;
  --navy-deep: #061433;
  --navy-mid: #12306e;
  --green: #22c55e;
  --green-dark: #16a34a;
  --green-brand: #2ecc40;
  --red: #e11d2e;
  --red-deep: #b81422;
  --cyan: #00b4e6;
  --cyan-soft: #3ecfff;
  --white: #ffffff;
  --ink: #e8eef8;
  --muted: rgba(232, 238, 248, 0.72);
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-head: "Bebas Neue", Impact, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --radius: 14px;
  --header-h: 68px;
  --sticky-wa-h: 56px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.28);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(0, 180, 230, 0.18), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(34, 197, 94, 0.12), transparent 50%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 40%, #0c2558 100%);
  min-height: 100vh;
  padding-bottom: calc(var(--sticky-wa-h) + env(safe-area-inset-bottom, 0px) + 12px);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green);
  color: #04120a;
  padding: 0.75rem 1rem;
  z-index: 2000;
  font-weight: 700;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Brand */
.brand-richy {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--green-brand);
  letter-spacing: 0.02em;
  text-shadow:
    -1px -1px 0 #fff,
    1px -1px 0 #fff,
    -1px 1px 0 #fff,
    1px 1px 0 #fff,
    0 2px 0 rgba(0, 0, 0, 0.25);
}

.brand-tour {
  font-family: var(--font-head);
  letter-spacing: 0.08em;
  color: var(--cyan-soft);
  margin-left: 0.25rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  backdrop-filter: blur(12px);
  background: rgba(6, 20, 51, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar {
  --bs-navbar-padding-y: 0.45rem;
  min-height: var(--header-h);
}

.navbar-brand {
  padding-top: 0.15rem;
  padding-bottom: 0.15rem;
  margin-right: 0.5rem;
  line-height: 0;
  max-width: calc(100% - 3.5rem);
}

.brand-logo {
  display: block;
  height: auto;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.brand-logo--nav {
  height: 40px;
  width: auto;
  max-width: min(58vw, 200px);
}

.brand-logo--hero {
  width: min(100%, 420px);
  height: auto;
  margin: 0 0 0.35rem;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

.brand-logo--footer {
  height: 52px;
  width: auto;
  max-width: min(80vw, 260px);
  margin: 0 auto;
}

@media (min-width: 576px) {
  .brand-logo--nav {
    height: 46px;
    max-width: 240px;
  }

  .brand-logo--hero {
    width: min(100%, 520px);
  }
}

@media (min-width: 992px) {
  .brand-logo--nav {
    height: 50px;
    max-width: 280px;
  }

  .brand-logo--hero {
    width: min(100%, 560px);
  }

  .brand-logo--footer {
    height: 58px;
    max-width: 300px;
  }
}

.navbar .nav-link {
  font-weight: 600;
  color: var(--muted) !important;
  padding: 0.65rem 0.85rem !important;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--white) !important;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.25);
  padding: 0.45rem 0.6rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(34, 197, 94, 0.35);
}

.btn-nav-wa {
  margin-top: 0.5rem;
  width: 100%;
}

@media (min-width: 992px) {
  .btn-nav-wa {
    margin-top: 0;
    width: auto;
    margin-left: 0.5rem;
  }
}

/* Buttons */
.btn-whatsapp {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--green);
  --bs-btn-border-color: var(--green);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--green-dark);
  --bs-btn-hover-border-color: var(--green-dark);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--green-dark);
  --bs-btn-active-border-color: var(--green-dark);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.28);
}

.btn-outline-light {
  border-width: 2px;
  font-weight: 700;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.btn-map {
  background: var(--cyan);
  color: #042433;
  font-weight: 800;
  border: none;
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-map:hover {
  background: var(--cyan-soft);
  color: #042433;
}

/* Hero — brand-first; flyer completo en móvil */
.hero {
  position: relative;
  min-height: auto;
  display: grid;
  align-items: start;
  overflow: hidden;
  isolation: isolate;
  padding: 1.25rem 0 1.75rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(0, 180, 230, 0.16), transparent 60%),
    radial-gradient(700px 380px at 0% 80%, rgba(34, 197, 94, 0.12), transparent 55%),
    linear-gradient(180deg, var(--navy-deep), var(--navy));
  z-index: -2;
}

.hero-glow {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0.75rem 1rem 0.5rem;
  max-width: 720px;
}

.hero-eyebrow {
  font-family: var(--font-head);
  letter-spacing: 0.18em;
  color: var(--red);
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}

.hero-brand {
  margin: 0 0 0.85rem;
  line-height: 0;
}

.hero-lead {
  font-size: clamp(1.05rem, 3.6vw, 1.25rem);
  color: var(--muted);
  max-width: 28ch;
  margin: 0 0 1.35rem;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-actions .btn {
  width: 100%;
  min-height: 52px;
}

@media (min-width: 768px) {
  .hero {
    align-items: center;
    min-height: calc(100svh - var(--header-h));
    padding: 3.5rem 0 4rem;
  }

  .hero-content {
    padding: 2.5rem 1rem;
    max-width: 760px;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-actions .btn {
    width: auto;
    min-width: 220px;
  }
}

/* Flyer del hero solo en pantallas grandes (no móvil) */
@media (min-width: 992px) {
  .hero-bg {
    background:
      linear-gradient(105deg, rgba(6, 20, 51, 0.94) 0%, rgba(6, 20, 51, 0.72) 48%, rgba(6, 20, 51, 0.4) 100%),
      url("../assets/flyer.jpg") 70% center / cover no-repeat;
    transform: scale(1.03);
    animation: heroZoom 18s ease-in-out infinite alternate;
  }
}

/* Proof strip — key promo facts */
.proof {
  padding: 0 0 0.25rem;
  margin-top: -0.5rem;
}

.proof-strip {
  display: grid;
  gap: 0.65rem;
  background: linear-gradient(90deg, rgba(225, 29, 46, 0.95), rgba(10, 31, 77, 0.95) 45%, rgba(2, 132, 176, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 0.85rem;
  box-shadow: var(--shadow-soft);
}

.proof-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.55rem 0.75rem;
  color: #fff;
}

.proof-item strong {
  font-family: var(--font-head);
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  line-height: 1;
}

.proof-item span {
  font-size: 0.92rem;
  opacity: 0.9;
  font-weight: 600;
}

@media (min-width: 768px) {
  .proof {
    margin-top: -1.25rem;
    padding-bottom: 0.5rem;
  }

  .proof-strip {
    grid-template-columns: repeat(3, 1fr);
    padding: 0.35rem;
  }

  .proof-item {
    text-align: center;
    padding: 1rem 0.75rem;
  }
}

/* Sections */
.section-head {
  margin-bottom: 1.5rem;
}

.section-head h2 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 8vw, 3.2rem);
  letter-spacing: 0.04em;
  margin: 0 0 0.35rem;
  color: var(--white);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 36ch;
  font-size: 1.02rem;
}

.section-head--light h2 {
  color: var(--white);
}

.services {
  padding: 3rem 0 2.5rem;
}

.services-strip {
  display: grid;
  gap: 0.75rem;
}

.service-chip {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 72px;
  padding: 1rem 1.15rem;
  clip-path: polygon(0 0, 96% 0, 100% 50%, 96% 100%, 0 100%);
  color: var(--white);
  transform: translateX(0);
  transition: transform 0.25s ease, filter 0.25s ease;
}

.service-chip:hover {
  transform: translateX(4px);
  filter: brightness(1.05);
}

.service-chip i {
  font-size: 1.65rem;
}

.service-chip h3 {
  font-family: var(--font-head);
  font-size: 1.85rem;
  letter-spacing: 0.06em;
  margin: 0;
}

.service-chip--red {
  background: linear-gradient(90deg, var(--red-deep), var(--red));
}

.service-chip--navy {
  background: linear-gradient(90deg, #0c2a6b, var(--navy-mid));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.service-chip--cyan {
  background: linear-gradient(90deg, #0284b0, var(--cyan));
}

@media (min-width: 768px) {
  .services-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .service-chip {
    clip-path: polygon(0 0, 92% 0, 100% 50%, 92% 100%, 0 100%);
    justify-content: center;
  }

  .service-chip:first-child {
    clip-path: polygon(0 0, 92% 0, 100% 50%, 92% 100%, 0 100%);
  }

  .service-chip:last-child {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 8% 50%);
  }
}

/* About */
.about {
  padding: 1.5rem 0 3rem;
}

.about-copy {
  padding-top: 1.75rem;
}

.about-copy h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 7vw, 2.8rem);
  letter-spacing: 0.03em;
  margin: 0 0 0.75rem;
}

.about-copy p {
  color: var(--muted);
  margin: 0 0 1.25rem;
  line-height: 1.65;
}

.about-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.about-points li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border-left: 4px solid var(--green);
  padding: 0.85rem 1rem;
}

.about-points i {
  color: var(--green-brand);
  font-size: 1.25rem;
}

/* Flyer: solo escritorio/tablet grande — nunca en móvil */
@media (max-width: 991.98px) {
  .flyer-fullbleed,
  .flyer-fullbleed *,
  .about-media,
  .about-media img,
  .flyer-hint {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    position: absolute !important;
    left: -9999px !important;
  }
}

@media (min-width: 992px) {
  .flyer-fullbleed {
    display: block !important;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 0.75rem 1.5rem;
    position: static !important;
    height: auto !important;
    visibility: visible !important;
  }

  .about-media {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-soft);
    background: #071a42;
    line-height: 0;
    position: static !important;
    visibility: visible !important;
    left: auto !important;
  }

  .about-media img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    visibility: visible !important;
    position: static !important;
    left: auto !important;
  }
}

/* Location */
.location {
  padding: 3rem 0;
  background:
    linear-gradient(180deg, rgba(225, 29, 46, 0.12), transparent 30%),
    rgba(0, 0, 0, 0.18);
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-soft);
  background: var(--navy-deep);
  aspect-ratio: 16 / 12;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.location-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: stretch;
}

.location-actions .btn {
  width: 100%;
  justify-content: center;
  min-height: 52px;
}

@media (min-width: 768px) {
  .map-wrap {
    aspect-ratio: 21 / 9;
  }

  .location-actions {
    justify-content: flex-start;
  }

  .location-actions .btn {
    width: auto;
  }
}

/* Contact */
.contact {
  padding: 3rem 0 2.5rem;
}

.contact-wa {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(90deg, var(--green-dark), var(--green));
  color: #fff;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.3);
  transition: transform 0.2s ease, filter 0.2s ease;
  min-height: 76px;
}

.contact-wa:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  color: #fff;
}

.contact-wa-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  flex-shrink: 0;
}

.contact-wa-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  flex: 1;
}

.contact-wa-label {
  font-size: 0.85rem;
  opacity: 0.9;
  font-weight: 600;
}

.contact-wa-number {
  font-family: var(--font-head);
  font-size: 1.85rem;
  letter-spacing: 0.04em;
}

.contact-wa-arrow {
  font-size: 1.35rem;
  opacity: 0.85;
}

.social-row {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.social-handle {
  margin: 0;
  font-weight: 700;
  color: var(--cyan-soft);
  letter-spacing: 0.02em;
}

.social-links {
  display: flex;
  gap: 0.65rem;
}

.social-links a {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 1.35rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.social-links a:hover {
  background: rgba(0, 180, 230, 0.25);
  transform: translateY(-2px);
}

/* Footer */
.site-footer {
  padding: 2rem 0 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.footer-brand {
  margin: 0 0 0.75rem;
  line-height: 0;
  display: flex;
  justify-content: center;
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Sticky WhatsApp — critical for mobile */
.sticky-wa {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: calc(var(--sticky-wa-h) + env(safe-area-inset-bottom, 0px));
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(90deg, var(--green-dark), var(--green));
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.28);
}

.sticky-wa i {
  font-size: 1.45rem;
}

.sticky-wa:hover {
  color: #fff;
  filter: brightness(1.05);
}

@media (min-width: 992px) {
  .sticky-wa {
    left: auto;
    right: 1.25rem;
    bottom: 1.25rem;
    width: auto;
    min-height: 56px;
    padding: 0.85rem 1.25rem;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(34, 197, 94, 0.35);
  }

  body {
    padding-bottom: 1.5rem;
  }
}

/* Motion */
.animate-in {
  opacity: 0;
  transform: translateY(18px);
  animation: riseIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }
.delay-3 { animation-delay: 0.36s; }
.delay-4 { animation-delay: 0.48s; }

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroZoom {
  from { transform: scale(1.03); }
  to { transform: scale(1.08); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .animate-in,
  .hero-bg,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
