:root {
  --bg-deep: #04182e;
  --bg-alt: #031224;
  --bg-header-mid: #07305c;
  --text: #eaf3fb;
  --text-muted-1: #a3c4de;
  --text-muted-2: #b6d2e8;
  --text-muted-3: #7fa6c6;
  --text-muted-4: #a3c8e3;
  --blue: #5cb8f0;
  --blue-hover: #8ed0fa;
  --blue-dark: #0a3358;
  --orange: #ff7a59;
  --orange-hover: #ff9377;
  --orange-text: #2b1208;
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Instrument Sans', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }
::selection { background: var(--blue); color: var(--bg-deep); }

img, svg { display: block; max-width: 100%; }

.accent { color: var(--blue); }

.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue); display: inline-block;
}
.dot--orange { width: 6px; height: 6px; background: var(--orange); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 100px; font-weight: 700; white-space: nowrap;
  border: none; cursor: pointer; font-family: var(--font-body);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--wa {
  gap: 8px; background: var(--blue); color: var(--bg-deep);
  padding: 10px 18px; font-size: 13.5px;
}
.btn--wa:hover { background: var(--blue-hover); color: var(--bg-deep); }
.btn--primary {
  background: var(--orange); color: var(--orange-text);
  padding: 17px 32px; font-size: 16px;
  box-shadow: 0 10px 30px rgba(255, 122, 89, .3);
}
.btn--primary:hover { background: var(--orange-hover); color: var(--orange-text); }
.btn--outline {
  padding: 17px 28px; border: 1.5px solid rgba(92, 184, 240, .4);
  color: var(--text); font-weight: 600; font-size: 15.5px;
}
.btn--outline:hover { border-color: var(--blue); color: var(--blue-hover); }

/* Keeps section tops clear of the sticky nav when navigating to an anchor. */
#top, #servicios, #especies, #contacto { scroll-margin-top: 78px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 24px;
  background: rgba(4, 24, 46, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(92, 184, 240, .18);
}
.nav__brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.nav__logo { width: 60px; height: 60px; object-fit: contain; flex-shrink: 0; }
.nav__title {
  font-family: var(--font-display); font-size: 17px; font-weight: 800;
  letter-spacing: .01em; white-space: nowrap; text-transform: uppercase;
}
.nav__links { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 600; }
.nav__links a:not(.btn) { color: var(--text-muted-4); }
.nav__links a:not(.btn):hover { color: var(--blue-hover); }
.nav__toggle {
  display: none; background: transparent; border: 1px solid rgba(92,184,240,.3);
  border-radius: 8px; color: var(--text); padding: 8px; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, var(--bg-deep) 0%, var(--bg-header-mid) 60%, #041c36 100%);
}
.hero__video-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__video { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.hero__video-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(165deg, var(--bg-deep) 0%, var(--bg-header-mid) 60%, #041c36 100%);
  opacity: .78;
}
.hero__inner { max-width: 1120px; margin: 0 auto; padding: 76px 24px 120px; position: relative; z-index: 3; }

.eyebrow {
  margin: 0 0 10px; font-size: 12.5px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
}
.eyebrow--orange { color: var(--orange); }
.eyebrow--pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; letter-spacing: .16em; color: var(--blue);
  border: 1px solid rgba(92, 184, 240, .35); border-radius: 100px;
  padding: 7px 14px; margin: 0 0 20px;
}

.hero__title {
  margin: 0; max-width: 860px; font-family: var(--font-display);
  font-weight: 800; font-size: clamp(46px, 9vw, 92px); line-height: .98;
  letter-spacing: -.02em; color: var(--text); text-transform: uppercase;
  text-wrap: balance;
}
.hero__lead {
  margin: 28px 0 0; max-width: 540px; font-size: clamp(16px, 2.5vw, 18.5px);
  line-height: 1.6; color: var(--text-muted-2); text-wrap: pretty;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__tags {
  display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 46px;
  font-size: 13.5px; color: var(--text-muted-3); font-weight: 600;
}
.hero__tags span { display: inline-flex; align-items: center; gap: 7px; }

.hero__wave { position: absolute; left: 0; right: 0; bottom: -2px; height: 80px; z-index: 2; opacity: .7; overflow: hidden; }
.hero__wave-track { width: 200%; height: 100%; animation: waveDrift 8s linear infinite; }
@keyframes waveDrift { 0% { transform: translateX(0); } 100% { transform: translateX(-88px); } }

/* ---------- Sections ---------- */
.section { padding: 84px 24px 90px; background: var(--bg-deep); }
.section--alt { background: var(--bg-alt); }
.section__inner { max-width: 1120px; margin: 0 auto; }
.section__title {
  margin: 0 0 44px; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(34px, 5.5vw, 54px); line-height: 1.02; color: var(--text);
  text-transform: uppercase; letter-spacing: -.01em;
}
.section__title--tight { margin-bottom: 16px; }
.section__lead {
  margin: 0 0 28px; max-width: 540px; font-size: 15px; line-height: 1.65;
  color: var(--text-muted-1); text-wrap: pretty;
}

/* ---------- Grids / Cards ---------- */
.grid { display: grid; gap: 18px; }
.grid--services { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--steps { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--species { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.grid--stats { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; text-align: center; }

.card {
  background: rgba(92, 184, 240, .06); border: 1px solid rgba(92, 184, 240, .16);
  border-radius: 18px; overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .15s ease;
}
.card:hover { border-color: rgba(92, 184, 240, .5); }
.card__media { width: 100%; height: 200px; position: relative; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__media.has-dots::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 46px;
  background: linear-gradient(to top, rgba(4, 24, 46, .65), transparent);
  pointer-events: none; z-index: 1;
}

/* Dots: tap/click to browse a species' other available photos (filete/entero/medallón). */
.media-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 16px; z-index: 2; }
.media-dot {
  width: 7px; height: 7px; border-radius: 50%; padding: 0; border: none;
  background: rgba(234, 243, 251, .45); cursor: pointer; position: relative;
  transition: background-color .15s ease, transform .15s ease;
}
/* Enlarges the tap target to ~23px without growing the visible dot; gap above keeps neighbors from overlapping. */
.media-dot::before { content: ''; position: absolute; inset: -8px; }
.media-dot.is-active { background: var(--blue); transform: scale(1.3); }
.media-dot:hover, .media-dot:focus-visible { background: var(--blue-hover); }
.media-dot:focus-visible { outline: 2px solid var(--blue-hover); outline-offset: 2px; }
.card__body { display: flex; flex-direction: column; gap: 12px; padding: 24px 24px 28px; }
.card__title { margin: 0; font-family: var(--font-display); font-size: 23px; font-weight: 700; color: var(--text); }
.card__text { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--text-muted-1); text-wrap: pretty; }

.step {
  display: flex; flex-direction: column; gap: 12px;
  background: rgba(234, 243, 251, .04); border-radius: 18px; padding: 26px 24px;
  border: 1px solid rgba(92, 184, 240, .1);
}
.step__num {
  font-family: var(--font-display); font-size: 15px; font-weight: 800; color: var(--bg-deep);
  background: var(--blue); border-radius: 100px; padding: 5px 14px; align-self: flex-start;
}
.step__title { margin: 6px 0 0; font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--text); }
.step__text { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--text-muted-1); text-wrap: pretty; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter-btn {
  font-family: var(--font-body); font-size: 13.5px; font-weight: 700;
  letter-spacing: .03em; text-transform: uppercase; padding: 9px 20px;
  border-radius: 100px; cursor: pointer; border: 1px solid rgba(92, 184, 240, .3);
  background: rgba(92, 184, 240, .06); color: #8ec4ea;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.filter-btn:hover { border-color: var(--blue); }
.filter-btn.is-active { background: var(--blue); color: var(--bg-deep); border-color: var(--blue); }

/* Species card */
.species-card .card__media { height: 170px; }
.species-card .card__body { gap: 8px; padding: 18px 20px 20px; }
.species-card__name { font-family: var(--font-display); font-size: 21px; font-weight: 700; color: var(--text); }
.species-card__cuts { display: flex; flex-wrap: wrap; gap: 6px; }
.cut-tag {
  font-size: 11.5px; letter-spacing: .04em; color: #8ec4ea; text-transform: uppercase;
  font-weight: 600; border: 1px solid rgba(92, 184, 240, .3); border-radius: 100px; padding: 4px 10px;
}

/* Image placeholder */
.img-ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0d3c66, #071f38);
  overflow: hidden;
}
.img-ph svg { width: 34%; height: 34%; opacity: .28; }
.img-ph__label {
  position: absolute; left: 10px; bottom: 8px; font-size: 10px; letter-spacing: .06em;
  text-transform: uppercase; color: rgba(234, 243, 251, .4); font-weight: 600;
}

/* ---------- Stats ---------- */
.section--stats { background: linear-gradient(165deg, var(--bg-header-mid), var(--bg-deep)); padding: 78px 24px; }
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat__value {
  font-family: var(--font-display); font-size: clamp(46px, 6.5vw, 68px); font-weight: 800;
  line-height: 1; color: var(--blue); letter-spacing: -.02em;
}
.stat__label { font-size: 13.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--text-muted-2); }

/* ---------- Contact ---------- */
.section--contact { padding: 84px 24px 64px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; align-items: start; }
.contact-card {
  display: flex; flex-direction: column; gap: 22px;
  background: rgba(92, 184, 240, .06); border: 1px solid rgba(92, 184, 240, .16);
  border-radius: 18px; padding: 30px 28px;
}
.contact-card__row { display: flex; flex-direction: column; gap: 4px; }
.contact-card__label {
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--blue);
}
.contact-card__value { font-size: 15.5px; line-height: 1.55; color: var(--text-muted-2); }
.contact-card__value--link { font-size: 19px; font-weight: 700; color: var(--text); }
.contact-card__value--link:hover { color: var(--blue-hover); }
.contact-card__maps-link { font-size: 13.5px; font-weight: 600; }
.contact-card__maps-link:hover { color: var(--blue-hover); }

.footer {
  max-width: 1120px; margin: 64px auto 0; padding-top: 22px;
  border-top: 1px solid rgba(92, 184, 240, .14);
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  font-size: 12.5px; color: var(--text-muted-3);
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .nav__toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: rgba(4, 24, 46, .98); border-bottom: 1px solid rgba(92, 184, 240, .18);
    padding: 10px 24px 18px;
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height .2s ease, opacity .2s ease, padding .2s ease;
  }
  .nav__links a:not(.btn) { padding: 10px 0; width: 100%; }
  .nav__links.is-open { max-height: 320px; opacity: 1; }
  .nav__links .btn--wa { margin-top: 8px; }
}
