/* ============================================================
   VARIABLES & RESET
   ============================================================ */
:root {
  --ocean-deep:  #1A5C8A;
  --ocean-deep-2:#2272A8;
  --foam:        #E8F4FD;
  --marlin:      #5BB8F0;
  --tuna:        #C13A2E;
  --gold:        #E8A33D;
  --ink:         #0D2843;
  --paper:       #F4FAFF;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; overflow-x: hidden; }
body  {
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Fraunces', serif; font-weight: 700; letter-spacing: -0.01em; }

.eyebrow {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  font-weight: 600;
}

a   { color: inherit; text-decoration: none; }
img { display: block; }
svg { display: block; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

a:focus-visible,
button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}


/* ============================================================
   HEADER
   ============================================================ */
header {
  position: fixed; top: 0; z-index: 50;
  width: 100%; height: 96px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
}

header.header-hidden  { transform: translateY(-100%); }
header.header-scrolled {
  background: var(--paper);
  box-shadow: 0 2px 20px rgba(13,40,67,0.12);
}

/* Logo */
.nav-logo {
  position: absolute; left: 28px; top: 50%; transform: translateY(-50%);
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.15rem;
  color: var(--foam);
}
.logo img { height: 80px; max-height: 80px; object-fit: contain; border-radius: 8px; }

header.header-scrolled .logo { color: var(--ocean-deep); }

/* Nav links */
.nav-links {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex; gap: 4px; align-items: center;
}
.nav-links a {
  font-family: 'Oswald', sans-serif; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500;
  color: rgba(232,244,253,0.82);
  padding: 7px 16px; border-radius: 20px;
  position: relative; z-index: 1;
  transition: color .2s;
}
.nav-links a:hover { color: var(--foam); }

header.header-scrolled .nav-links a { color: var(--ocean-deep); }
header.header-scrolled .nav-links a:hover { color: var(--marlin); }

/* Sliding pill */
.nav-pill {
  position: absolute;
  height: 34px; top: 50%; left: 0; width: 0;
  background: rgba(91,184,240,0.18);
  border: 1px solid rgba(91,184,240,0.32);
  border-radius: 20px;
  transform: translateY(-50%);
  transition: transform .3s cubic-bezier(0.4,0,0.2,1), width .3s cubic-bezier(0.4,0,0.2,1), opacity .2s;
  z-index: 0; pointer-events: none; opacity: 0;
}
.nav-pill.is-visible { opacity: 1; }

/* Catálogo dropdown */
.nav-item-dropdown { position: relative; }

.nav-dropdown-trigger {
  background: none; border: none; cursor: pointer;
  font-family: 'Oswald', sans-serif; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500;
  color: rgba(232,244,253,0.82);
  padding: 7px 16px; border-radius: 20px;
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 5px;
  transition: color .2s;
}
.nav-dropdown-trigger:hover,
.nav-item-dropdown.is-open .nav-dropdown-trigger { color: var(--foam); }
.nav-dropdown-trigger svg { transition: transform .2s ease; flex-shrink: 0; }
.nav-item-dropdown:hover .nav-dropdown-trigger svg,
.nav-item-dropdown.is-open .nav-dropdown-trigger svg { transform: rotate(180deg); }

header.header-scrolled .nav-dropdown-trigger { color: var(--ocean-deep); }
header.header-scrolled .nav-dropdown-trigger:hover { color: var(--marlin); }
header.header-scrolled .nav-item-dropdown.is-open .nav-dropdown-trigger { color: var(--marlin); }

.dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%);
  opacity: 0; visibility: hidden;
  list-style: none; padding: 6px; margin: 0;
  background: var(--ink);
  border: 1px solid rgba(91,184,240,0.18);
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(13,40,67,0.38);
  min-width: 168px;
  overflow: hidden;
  transition: opacity .25s ease, visibility .25s;
  z-index: 100;
}
.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown.is-open .dropdown-menu {
  opacity: 1; visibility: visible;
}
.dropdown-menu li a {
  display: block; padding: 9px 16px; border-radius: 9px;
  font-family: 'Oswald', sans-serif; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.07em; font-weight: 500;
  color: rgba(232,244,253,0.82); white-space: nowrap;
  opacity: 0; transform: translateX(16px);
  transition: opacity .28s ease, transform .28s ease, background .15s, color .15s;
}
.nav-item-dropdown:hover .dropdown-menu li a,
.nav-item-dropdown.is-open .dropdown-menu li a {
  opacity: 1; transform: translateX(0);
}
.nav-item-dropdown:hover .dropdown-menu li:nth-child(1) a,
.nav-item-dropdown.is-open .dropdown-menu li:nth-child(1) a { transition-delay: 40ms; }
.nav-item-dropdown:hover .dropdown-menu li:nth-child(2) a,
.nav-item-dropdown.is-open .dropdown-menu li:nth-child(2) a { transition-delay: 90ms; }
.nav-item-dropdown:hover .dropdown-menu li:nth-child(3) a,
.nav-item-dropdown.is-open .dropdown-menu li:nth-child(3) a { transition-delay: 140ms; }
.nav-item-dropdown:hover .dropdown-menu li:nth-child(4) a,
.nav-item-dropdown.is-open .dropdown-menu li:nth-child(4) a { transition-delay: 190ms; }
.nav-item-dropdown:hover .dropdown-menu li:nth-child(5) a,
.nav-item-dropdown.is-open .dropdown-menu li:nth-child(5) a { transition-delay: 240ms; }
.nav-item-dropdown:hover .dropdown-menu li:nth-child(6) a,
.nav-item-dropdown.is-open .dropdown-menu li:nth-child(6) a { transition-delay: 290ms; }
.nav-item-dropdown:hover .dropdown-menu li:nth-child(7) a,
.nav-item-dropdown.is-open .dropdown-menu li:nth-child(7) a { transition-delay: 340ms; }
.nav-item-dropdown:hover .dropdown-menu li:nth-child(8) a,
.nav-item-dropdown.is-open .dropdown-menu li:nth-child(8) a { transition-delay: 390ms; }
.dropdown-menu li a:hover {
  background: rgba(91,184,240,0.16); color: #fff; transition-delay: 0ms;
}
/* Anular el color oscuro que .header-scrolled aplica a todos los nav links */
header.header-scrolled .dropdown-menu li a { color: rgba(232,244,253,0.88); }
header.header-scrolled .dropdown-menu li a:hover { color: #fff; }

/* Nav actions (right side) */
.nav-actions {
  position: absolute; right: 28px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 10px;
}


/* Hamburger */
.nav-hamburger {
  display: flex; align-items: center; justify-content: center;
  background: rgba(232,244,253,0.12);
  border: 1.5px solid rgba(232,244,253,0.22);
  color: var(--foam);
  border-radius: 8px; padding: 7px 8px;
  cursor: pointer; line-height: 0;
  transition: background .2s, border-color .2s;
}
.nav-hamburger:hover { background: rgba(232,244,253,0.22); }

header.header-scrolled .nav-hamburger {
  color: var(--ocean-deep);
  border-color: rgba(13,40,67,0.2);
  background: transparent;
}
header.header-scrolled .nav-hamburger:hover { background: var(--foam); }

@media (max-width: 760px) {
  header { height: 68px; overflow: visible; }
  .nav-logo { position: static; transform: none; margin-left: -18px; }
  .nav-logo img { height: 50px; max-height: 50px; border-radius: 0; }
  .nav-links { display: none; }
  .nav-actions { position: static; transform: none; }
  .nav-hamburger { display: flex; align-items: center; justify-content: center; }
}


/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  width: 100%; height: 100vh; min-height: 600px;
  background: var(--ocean-deep);
  color: var(--foam);
  overflow: hidden;
}

.hero-slides {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

.hero-photo {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center center;
}

.hero-slide {
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slide--active { opacity: 1; }

.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(26,92,138,0.62) 0%,
    rgba(26,92,138,0.34) 40%,
    rgba(26,92,138,0) 65%
  );
  z-index: 1; pointer-events: none;
}

.hero .wrap {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  min-height: 100vh;
  padding: 88px 7vw;
  max-width: none; margin: 0;
}

.hero-content { max-width: 680px; }

.hero-eyebrow {
  color: var(--marlin);
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.04;
  color: var(--paper);
  margin-bottom: 22px;
}
.hero h1 em { font-style: italic; color: var(--marlin); }

.hero p.lead {
  font-size: 1.08rem; line-height: 1.6;
  color: rgba(232,244,253,0.92);
  max-width: 46ch; margin-bottom: 32px;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary {
  background: rgba(232,244,253,0.16);
  color: var(--foam);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(232,244,253,0.28);
  font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 12px 28px; border-radius: 9999px;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
  display: inline-block;
}
.btn-primary:hover {
  background: rgba(91,184,240,0.28);
  border-color: rgba(91,184,240,0.75);
  color: var(--marlin); transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(232,244,253,0.07);
  color: var(--foam);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(232,244,253,0.16);
  font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 12px 28px; border-radius: 9999px;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
  display: inline-block;
}
.btn-ghost:hover {
  background: rgba(37,211,102,0.22);
  border-color: rgba(37,211,102,0.70);
  color: #25D366;
}

@media (max-width: 860px) {
  .hero .wrap { padding: 64px 28px; }
}
@media (max-width: 640px) {
  .hero { min-height: 100svh; height: auto; overflow: visible; }
  .hero-slides { position: absolute; inset: 0; }
  .hero-slides .hero-slide:nth-child(1) { object-position: 72% 75%; }
  .hero-slides .hero-slide:nth-child(2) { object-position: 60% center; }
  .hero-content { max-width: 100%; }
  .hero .wrap { justify-content: flex-start; padding-top: 96px; padding-bottom: 48px; }
  .hero::after {
    background: linear-gradient(
      to bottom,
      rgba(13,40,67,0.72) 0%,
      rgba(13,40,67,0.32) 48%,
      rgba(13,40,67,0) 72%
    );
  }
}
@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-ghost { width: 260px; text-align: center; }
}


/* ============================================================
   TRUST STRIP — MARQUEE
   ============================================================ */
.trust {
  position: relative; z-index: 1;
  margin-top: 0;
}

.trust-inner {
  background: #fff;
  box-shadow: 0 4px 28px rgba(13,40,67,0.13);
  overflow: hidden;
}

.trust-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: trust-marquee 20s linear infinite;
}


@keyframes trust-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(var(--marquee-shift, -50%)); }
}

.trust-cell {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center;
  padding: 12px 36px;
  flex-shrink: 0;
  border-right: 1px solid rgba(13,40,67,0.07);
}
.trust-cell svg { width: 28px; height: 28px; color: var(--ocean-deep); }
.trust-cell span {
  font-family: 'Oswald', sans-serif;
  font-size: 0.62rem; text-transform: uppercase;
  letter-spacing: 0.07em; font-weight: 600;
  color: var(--ocean-deep); line-height: 1.35;
}

@media (prefers-reduced-motion: reduce) {
  .trust-track { animation: none; }
}

@media (max-width: 640px) {
  .trust { margin-top: -1.5rem; }
}


/* ============================================================
   SECTION BASE
   ============================================================ */
section { padding: 88px 0; }

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head .eyebrow { color: var(--tuna); margin-bottom: 12px; display: block; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--ocean-deep); }
.section-head p {
  margin-top: 14px;
  color: #111; line-height: 1.6; font-size: 1.02rem;
}

@media (max-width: 640px) { section { padding: 60px 0; } }


/* ============================================================
   CATALOG
   ============================================================ */
#catalogo { padding: 0; }

.catalog-header {
  position: relative; overflow: hidden;
  height: 640px;
  z-index: 1;
}
.catalog-header::before {
  content: '';
  position: absolute; inset: -20px 0 0 0;
  background: url("../assets/catalgo cat.webp") 15% 70% / cover no-repeat;
  z-index: 0;
}
.catalog-header::after {
  content: '';
  position: absolute; inset: 0;
  background: transparent;
  z-index: 1; pointer-events: none;
}

/* Texto superpuesto */
.catalog-header-content {
  position: absolute;
  top: 0; left: 0; bottom: 188px;
  width: 60%;
  padding: 12px 0 140px 12vw;
  display: flex; flex-direction: column; justify-content: center;
  z-index: 2;
}
.catalog-eyebrow-script {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--marlin);
  line-height: 1;
  margin-bottom: 2px;
}
.catalog-title {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  color: var(--foam);
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.catalog-tagline {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.46em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--foam);
  margin-top: 6px;
  margin-left: auto;
  margin-right: auto;
}
.catalog-tagline-wave {
  width: 28px; height: 10px;
  color: var(--marlin); flex-shrink: 0;
}
.catalog-sub { display: none; }


@media (max-width: 860px) {
  .catalog-header { height: 480px; }
  .catalog-header-content { width: 75%; }
}
@media (max-width: 640px) {
  .catalog-header { height: 300px; }
  .catalog-header::before { background-position: 38% top; }
  .catalog-header::after { background: transparent; }
  .catalog-header-content {
    width: 100%;
    bottom: 0;
    padding: 22px 24px 8px;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
  }
  .catalog-sub { display: none; }
  .catalog-eyebrow-script { font-size: 1.0rem; }
  .catalog-title { font-size: clamp(1.5rem, 7vw, 2.1rem); }
  .catalog-tagline { margin-left: 0; margin-right: 0; }
}

/* Barra de filtros — isla centrada flotante */
.catalog-filter-bar {
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(13,40,67,0.42), rgba(13,40,67,0.42)),
    url('../assets/catalog-filters-bg.jpg');
  background-position: center bottom;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  /* isla centrada — sobrepuesta sobre la ola del header */
  max-width: 940px;
  width: calc(100% - 56px);
  margin: -252px auto 122px;
  border-radius: 24px;
  z-index: 4;
}
@media (max-width: 470px) {
  .catalog-filter-bar { background-size: contain; }
}
@media (max-width: 860px) {
  .catalog-filter-bar { max-width: 720px; }
}
@media (max-width: 640px) {
  .catalog-filter-bar {
    width: calc(100% - 24px);
    border-radius: 16px;
    margin-top: -114px;
    margin-bottom: 0;
  }
}

/* Decoración ancla + olas centradas */
.catalog-filter-deco {
  display: block;
  text-align: center;
  padding: 10px 0 4px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--marlin);
}

/* Fila: flechas + scroll */
.catalog-filter-row {
  display: flex; align-items: center;
  padding: 2px 16px 8px;
}
.catalog-filter-arrow {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(13,40,67,0.72);
  border: 1px solid rgba(232,244,253,0.14);
  color: var(--foam);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .18s;
}
.catalog-filter-arrow:hover { background: var(--ocean-deep); }

/* Fila horizontal scrollable */
.catalog-filters {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0;
  flex-wrap: nowrap;
  flex: 1;
}
.catalog-filters::-webkit-scrollbar { display: none; }

/* Botones de categoría — pestañas de texto */
.filter-btn {
  flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 14px 20px;
  border: none; border-right: 1px solid rgba(232,244,253,0.12);
  background: none;
  color: rgba(232,244,253,0.40);
  cursor: pointer;
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600;
  white-space: nowrap;
  transition: color .18s;
}
.filter-btn:first-child { border-left: 1px solid rgba(232,244,253,0.12); }
.filter-btn:hover  { color: rgba(232,244,253,0.80); }
.filter-btn.active { color: var(--foam); }

.filter-btn-label { display: block; }

.filter-btn-bar {
  display: block;
  width: 20px; height: 2px;
  background: var(--marlin);
  margin-top: 6px;
  border-radius: 1px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .filter-btn { font-size: 0.68rem; padding: 12px 14px; letter-spacing: 0.10em; }
  .filter-btn-bar { width: 14px; margin-top: 5px; }
  .catalog-filter-row { padding: 0; }
  .catalog-filter-arrow { display: none; }
  .catalog-filters { gap: 0; padding: 0; }
}

.catalog-body {
  background: var(--paper);
  position: relative;
  z-index: 2;
  margin-top: -188px;
  border-radius: 120px 120px 0 0;
  overflow: hidden;
}
.catalog-body::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('../assets/catalog-illustrations.jpg');
  background-repeat: repeat;
  background-size: 580px auto;
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
}
.catalog-body .wrap { padding-top: 110px; padding-bottom: 96px; position: relative; z-index: 1; }

@media (max-width: 640px) {
  #catalogo { background: var(--ink); }
  .catalog-filter-deco { padding: 8px 0 2px; }
  .catalog-body {
    margin-top: -44px;
    border-radius: 48px 48px 0 0;
  }
  .catalog-body .wrap { padding-top: 60px; }
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
}

/* Cards (injected by JS) */
.card {
  border-radius: 12px; overflow: hidden;
  background: #fff;
  display: flex; flex-direction: column;
  box-shadow: 0 2px 8px rgba(13,40,67,0.08);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  cursor: pointer;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(11,46,79,0.22); }
.card.fade-out { opacity: 0 !important; transform: scale(0.96); }

@keyframes cardIn { from { opacity: 0; } to { opacity: 1; } }

.card-photo-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
  background: #f5f7f9;
  overflow: hidden;
}

.card-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; display: block;
  padding: 8px;
}

.card-no-photo {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(13,40,67,0.18);
}
.card-no-photo svg { width: 48px; height: 48px; }

.card-body {
  padding: 10px 12px 12px;
  background: #fff;
}
.card-body h3 { color: var(--ink); font-size: 1.02rem; margin-bottom: 3px; }

.cat-tag {
  font-family: 'Oswald', sans-serif; font-size: 0.74rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: rgba(13,40,67,0.50);
  display: block; margin-bottom: 8px; font-weight: 600;
}

.btn-pedir-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(37,211,102,0.22); color: #25D366;
  border: 1.5px solid rgba(37,211,102,0.70);
  padding: 6px 13px; border-radius: 20px;
  font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.03em;
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.btn-pedir-pill:hover {
  background: rgba(37,211,102,0.38); border-color: #25D366; transform: translateY(-1px);
}
.btn-pedir-pill svg { color: #25D366; flex-shrink: 0; }

.fresh-badge {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  background: url('../assets/fresh-badge-brush.png') center / 100% 100% no-repeat;
  color: #fff;
  font-family: 'Oswald', sans-serif; font-size: 0.62rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 8px 20px;
  white-space: nowrap;
}

.catalog-note {
  margin-top: 32px; font-size: 0.88rem; color: rgba(13,40,67,0.55);
  border-left: 3px solid var(--marlin); padding-left: 14px;
}
.catalog-note:empty { display: none; }

.catalog-more {
  display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 36px;
}
.btn-load-more {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--ocean-deep);
  border: 2px solid var(--ocean-deep);
  font-family: 'Oswald', sans-serif; font-size: 0.85rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.10em;
  padding: 12px 32px; border-radius: 9999px; cursor: pointer;
  transition: background .2s, color .2s, transform .15s;
}
.btn-load-more:hover { background: var(--ocean-deep); color: var(--foam); transform: translateY(-1px); }
.btn-load-more:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-load-less {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--ocean-deep);
  border: 2px solid var(--ocean-deep);
  font-family: 'Oswald', sans-serif; font-size: 0.82rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 10px 24px; border-radius: 9999px; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-load-less:hover { background: var(--ocean-deep); color: var(--foam); transform: translateY(-1px); }
.load-more-done {
  font-family: 'Oswald', sans-serif; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(13,40,67,0.40); text-align: center;
}

@media (max-width: 540px) {
  .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-body { padding: 8px 8px 8px; }
  .card-body h3 { font-size: 0.86rem; margin-bottom: 2px; }
  .cat-tag { font-size: 0.64rem; margin-bottom: 6px; letter-spacing: 0.03em; }
  .btn-pedir-pill { padding: 5px 10px; font-size: 0.64rem; gap: 4px; }
  .fresh-badge { font-size: 0.52rem; padding: 8px 18px; top: 5px; right: 5px; }
}


/* ============================================================
   UBICACIÓN & FAN CAROUSEL
   ============================================================ */

/* ============================================================
   QUOTE SECTION
   ============================================================ */
.section-quote {
  padding: 48px 0;
  background: url('../assets/quote-bg.webp') center / cover no-repeat;
  position: relative;
}
.quote-content {
  position: relative; z-index: 1;
  max-width: 520px;
}
.site-quote {
  margin: 0 0 36px;
  border-left: 3px solid var(--marlin);
  padding: 4px 0 4px 28px;
  font-family: 'Fraunces', serif; font-size: 1.35rem; font-style: italic;
  font-weight: 500; line-height: 1.65;
  color: rgba(232,244,253,0.95);
  quotes: none;
}
.quote-badges {
  display: flex; gap: 28px; flex-wrap: wrap;
  padding-left: 31px;
}
.quote-badge {
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
  text-align: center;
}
.quote-badge-icon {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid rgba(91,184,240,0.55);
  background: rgba(91,184,240,0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--marlin);
}
.quote-badge-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(232,244,253,0.80);
  line-height: 1.3; max-width: 80px;
}
@media (max-width: 860px) {
  .section-quote { background-position: 65% center; }
  .quote-content { max-width: 100%; }
}
@media (max-width: 600px) {
  .section-quote { padding: 36px 0; background-position: 70% center; }
  .quote-content {
    background: linear-gradient(to bottom, rgba(13,40,67,0.75), rgba(13,40,67,0.55));
    padding: 14px 14px;
    border-radius: 8px;
  }
  .site-quote { font-size: 1.1rem; padding-left: 20px; }
  .quote-badges { padding-left: 23px; gap: 18px; }
}

#ubicacion { background: #fff; }

.ubicacion-wrap { display: flex; flex-direction: column; gap: 32px; }

.ubicacion-top {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: start;
}

.ubicacion-left { padding: 0; }

.location-eyebrow {
  display: flex; align-items: center; gap: 8px;
  color: var(--marlin); margin-bottom: 16px;
}
.location-eyebrow svg { color: var(--marlin); flex-shrink: 0; }

.location-title {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  color: var(--ocean-deep);
  margin-bottom: 12px; line-height: 1.1;
}
.location-title-accent { color: var(--marlin); }
.location-wave-deco {
  display: inline-block; vertical-align: middle;
  color: var(--marlin); margin-left: 6px;
}

.location-subtitle {
  color: rgba(13,40,67,0.65); line-height: 1.6;
  font-size: 1rem; margin-bottom: 28px;
}

.contact-row {
  display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start;
}
.contact-row:last-child { margin-bottom: 0; }
.contact-row svg {
  width: 20px; height: 20px;
  color: var(--marlin); flex-shrink: 0; margin-top: 2px;
}
.contact-row .label {
  font-family: 'Oswald', sans-serif; font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: rgba(13,40,67,0.50); font-weight: 600; margin-bottom: 3px;
}
.contact-row .val { font-size: 0.98rem; color: var(--ink); }
.contact-row .val a {
  color: var(--ocean-deep);
  text-decoration: underline; text-underline-offset: 2px;
}

.support-card {
  display: flex; gap: 0;
  background: #fff;
  border: 1px solid rgba(91,184,240,0.22);
  border-radius: 14px;
  padding: 8px 20px;
  margin-top: 28px;
  align-items: center;
}
.support-col {
  flex: 1; display: flex; flex-direction: row; align-items: center; gap: 10px;
}
.support-col-body { display: flex; flex-direction: column; gap: 1px; }
.support-divider {
  width: 1px; align-self: stretch;
  background: rgba(91,184,240,0.22);
  margin: 0 20px; flex-shrink: 0;
}
.support-badge {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--marlin); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Oswald', sans-serif; font-size: 0.62rem;
  font-weight: 700; color: var(--marlin); letter-spacing: 0.02em;
}
.support-col svg {
  width: 22px; height: 22px;
  color: var(--marlin); flex-shrink: 0;
}
.support-col-title {
  font-family: 'Oswald', sans-serif; font-size: 0.88rem;
  font-weight: 600; color: var(--ink);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.support-col-text {
  font-size: 0.8rem; color: rgba(13,40,67,0.75); line-height: 1.5; margin: 0;
}
@media (max-width: 540px) {
  .support-card { flex-direction: column; gap: 16px; }
  .support-divider { width: 100%; height: 1px; margin: 0; }
}

/* Map embed */
.ubicacion-map {
  margin-top: 24px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(13,40,67,0.10);
  position: relative;
}
.ubicacion-map-link {
  position: absolute; inset: 0;
  z-index: 2;
  cursor: pointer;
}
.ubicacion-map iframe {
  display: block; width: 100%; height: 260px; border: 0;
}

/* Fan carousel column */
.ubicacion-carousel { display: flex; flex-direction: column; }

.fc-track {
  display: flex;
  gap: 7px;
  height: 490px;
  border-radius: 14px;
  overflow: hidden;
}

.fc-card {
  flex: 0 0 80px;
  position: relative; overflow: hidden;
  cursor: pointer; border-radius: 10px;
  transition: flex .45s cubic-bezier(0.4, 0, 0.2, 1);
}
.fc-card.is-active { flex: 1; }

.fc-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .45s ease;
}
.fc-card.is-active img { transform: scale(1.04); }

.fc-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(13,40,67,0.92) 0%, rgba(13,40,67,0) 100%);
  padding: 52px 18px 22px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease .08s, transform .3s ease .08s;
}
.fc-card.is-active .fc-caption { opacity: 1; transform: translateY(0); }

.fc-caption-icon { margin-bottom: 8px; color: var(--marlin); }
.fc-caption-icon svg { width: 22px; height: 22px; }

.fc-caption-badge {
  display: inline-block;
  font-family: 'Oswald', sans-serif; font-size: 0.62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: #fff;
  background: url('../assets/fresh-badge-brush.png') center / 100% 100% no-repeat;
  padding: 6px 18px;
  margin-bottom: 8px;
}

.fc-caption-text {
  font-family: 'Fraunces', serif; font-size: 0.95rem; font-weight: 600;
  color: var(--foam); line-height: 1.35;
}

@media (max-width: 860px) {
  .ubicacion-top { grid-template-columns: 1fr; }
  .fc-track { height: 280px; }
  .fc-card { flex-basis: 52px; }
}


/* ============================================================
   ABOUT / NOSOTROS
   ============================================================ */
.about {
  position: relative; overflow: hidden;
  color: var(--foam);
  background: #fff;
}

.about-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('../assets/seafood-pattern.webp');
  background-size: cover; background-position: center;
  clip-path: polygon(
    0% 0%, 2.5% 0.1%, 5% 0.5%, 7.5% 1.0%, 10% 1.7%, 12.5% 2.5%,
    15% 3.3%, 17.5% 4.0%, 20% 4.5%, 22.5% 4.9%, 25% 5.0%,
    27.5% 4.9%, 30% 4.5%, 32.5% 4.0%, 35% 3.3%, 37.5% 2.5%,
    40% 1.7%, 42.5% 1.0%, 45% 0.5%, 47.5% 0.1%, 50% 0%,
    52.5% 0.1%, 55% 0.5%, 57.5% 1.0%, 60% 1.7%, 62.5% 2.5%,
    65% 3.3%, 67.5% 4.0%, 70% 4.5%, 72.5% 4.9%, 75% 5.0%,
    77.5% 4.9%, 80% 4.5%, 82.5% 4.0%, 85% 3.3%, 87.5% 2.5%,
    90% 1.7%, 92.5% 1.0%, 95% 0.5%, 97.5% 0.1%, 100% 0%,
    100% 100%, 0% 100%
  );
}

.about .wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center;
  position: relative; z-index: 1;
}

.about .eyebrow { color: var(--gold); }
.about h2 { color: var(--paper); margin: 14px 0 20px; font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.about p  { color: rgba(232,244,253,0.82); line-height: 1.7; font-size: 1.02rem; }

.about-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.figure {
  border: 1px solid rgba(232,244,253,0.18);
  border-radius: 8px; padding: 22px;
}
.figure .num {
  font-family: 'Fraunces', serif; font-weight: 700;
  font-size: 2.1rem; color: var(--marlin);
}
.figure .label {
  font-family: 'Oswald', sans-serif; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(232,244,253,0.70); margin-top: 6px;
}

@media (max-width: 860px) { .about .wrap { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .about-figures { grid-template-columns: 1fr; } }


/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--ink);
  color: rgba(232,244,253,0.65);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px 48px;
  align-items: start;
  text-align: center;
}

.footer-brand {
  display: flex; flex-direction: row; align-items: center; gap: 28px;
}
.footer-logo-img {
  height: 72px; width: auto; flex-shrink: 0;
}
.footer-brand-text {
  display: flex; flex-direction: column; text-align: left;
}
.f-logo {
  font-family: 'Fraunces', serif; font-weight: 700;
  color: var(--foam); font-size: 1.15rem;
  margin-bottom: 12px; white-space: nowrap;
}
.footer-tagline {
  font-size: 0.87rem; line-height: 1.65;
  color: rgba(232,244,253,0.50);
  max-width: 180px; text-align: left;
  overflow-wrap: break-word; word-break: break-word;
}

.footer-col-title {
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.13em;
  color: var(--foam); margin-bottom: 18px;
}
.footer-links {
  list-style: none;
  display: flex; flex-direction: column; gap: 11px; align-items: center;
}
.footer-links a {
  font-size: 0.88rem; color: rgba(232,244,253,0.55);
  text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--foam); }


.footer-social {
  display: flex; gap: 8px; justify-content: center;
}
.footer-social-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(232,244,253,0.07);
  color: rgba(232,244,253,0.65);
  border: 1px solid rgba(232,244,253,0.10);
  transition: background 0.2s, color 0.2s;
  line-height: 0;
}
.footer-social-btn:hover { background: rgba(232,244,253,0.15); color: var(--foam); }
.footer-social-btn svg { width: 16px; height: 16px; }

.footer-bottom {
  margin-top: 52px;
  border-top: 1px solid rgba(232,244,253,0.09);
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex; justify-content: space-between; align-items: center;
}
.copy {
  font-size: 0.78rem;
  color: rgba(232,244,253,0.38);
  margin: 0;
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px 28px;
    padding: 0 28px;
  }
}
.footer-logo-mobile { display: none; }

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
    padding: 0 20px;
    text-align: left;
  }
  /* Row 1: title + tagline only, no logo */
  .footer-brand {
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .footer-brand .footer-logo-img { display: none; }
  .footer-brand-text { text-align: left; }
  .footer-tagline { max-width: 100%; }
  /* Row 3 right: logo image */
  .footer-logo-mobile {
    display: block;
    height: 80px;
    width: auto;
    align-self: center;
    justify-self: center;
  }
  .footer-col-title { text-align: left; }
  .footer-links { align-items: flex-start; }
  .footer-social { justify-content: flex-start; }
}


/* ============================================================
   DRAWER OVERLAY
   ============================================================ */
.menu-overlay {
  position: fixed; inset: 0;
  background: rgba(13,40,67,0.55);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  z-index: 200;
  opacity: 0;
  transition: opacity .35s ease;
}
.menu-overlay.is-open { opacity: 1; }


/* ============================================================
   DRAWER PANEL
   ============================================================ */
.menu-drawer {
  position: fixed; top: 0; right: 0; bottom: 35%;
  width: clamp(260px, 34vw, 360px);
  background: var(--paper);
  z-index: 210;
  display: flex; flex-direction: column;
  border-radius: 28px 0 0 28px;
  box-shadow: -8px 0 48px rgba(13,40,67,0.22);
  transform: translateX(100%);
  transition: transform .38s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.menu-drawer.is-open { transform: translateX(0); }

@media (max-width: 760px) {
  .menu-drawer { width: 88vw; border-radius: 24px 0 0 24px; }
}

.menu-drawer-close {
  position: absolute; top: 12px; right: 12px; z-index: 10;
  background: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(13,40,67,0.15);
  color: var(--ink); border-radius: 8px;
  padding: 5px; cursor: pointer; line-height: 0;
  transition: background .2s, border-color .2s;
}
.menu-drawer-close:hover { background: #fff; border-color: var(--marlin); }

/* Wave decorative band */
.drawer-wave-band {
  height: 72px; flex-shrink: 0;
  background: url('../assets/drawer-wave.jpg') center / cover no-repeat;
}

/* Nav links */
.menu-drawer-nav {
  display: flex; flex-direction: column;
  padding: 12px 18px 8px; gap: 2px;
  flex-shrink: 0;
}
.menu-drawer-nav a {
  font-family: 'Oswald', sans-serif; font-size: 0.85rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ocean-deep);
  padding: 10px 14px; border-radius: 8px;
  display: flex; align-items: center; gap: 9px;
  transition: background .15s, color .15s;
}
.menu-drawer-nav a:hover { background: var(--foam); color: var(--marlin); }
.menu-drawer-wa  { color: #25D366 !important; }
.menu-drawer-wa svg { flex-shrink: 0; }

.menu-drawer-divider {
  height: 1px; background: rgba(13,40,67,0.08);
  margin: 0 18px 0;
  flex-shrink: 0;
}

/* Auth content zone — scrollable si el contenido no entra */
.drawer-auth-content {
  flex: 1; display: flex; flex-direction: column;
  overflow-y: auto; min-height: 0;
}

/* ── Estado: no autenticado ─────────────────────────────── */
.drawer-welcome {
  flex: 1; display: flex; flex-direction: column;
  position: relative; background: #fff;
  overflow: visible;
}

.drawer-welcome-body {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  padding: 20px 24px 20px;
}

.drawer-welcome-icon {
  margin-bottom: 12px;
  flex-shrink: 0;
}
.drawer-welcome-icon img {
  width: 88px; height: auto;
  object-fit: contain;
}

.drawer-welcome-heading {
  font-family: 'Fraunces', serif; font-weight: 700;
  font-size: 1.25rem; color: var(--ocean-deep);
  margin-bottom: 8px;
}

.drawer-welcome-text {
  font-size: 0.84rem; color: rgba(13,40,67,0.62);
  line-height: 1.5; margin-bottom: 18px;
  max-width: 24ch;
}

.btn-drawer-auth {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--ocean-deep); color: var(--foam);
  border: none; border-radius: 10px;
  font-family: 'Oswald', sans-serif; font-size: 0.85rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.10em;
  padding: 13px 20px; cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-drawer-auth:hover { background: var(--ocean-deep-2); transform: translateY(-1px); }

/* ── Estado: autenticado ────────────────────────────────── */
.drawer-user-card {
  flex: 1; display: flex; flex-direction: column;
  padding: 24px 20px 20px;
  overflow-y: auto;
}

.drawer-user-card-top {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 20px;
}

.drawer-user-avatar {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--ocean-deep);
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
}
.drawer-user-avatar svg { width: 24px; height: 24px; }

.drawer-user-welcome-text {
  font-family: 'Oswald', sans-serif; font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(13,40,67,0.50); display: block; margin-bottom: 3px;
}

.drawer-user-label {
  font-family: 'Fraunces', serif; font-weight: 700;
  font-size: 1.1rem; color: var(--ocean-deep);
  display: block;
}

.drawer-user-card-divider {
  height: 1px; background: rgba(13,40,67,0.08); margin-bottom: 16px;
}

.drawer-user-card-actions { display: flex; flex-direction: column; gap: 8px; }

.drawer-card-action {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 12px;
  background: none; border: none; cursor: pointer;
  text-align: left; text-decoration: none; color: inherit;
  transition: background .15s;
  width: 100%;
}
.drawer-card-action:hover { background: rgba(13,40,67,0.05); }

.drawer-card-action-icon {
  width: 46px; height: 46px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.drawer-card-action-icon--red  { background: rgba(193,58,46,0.12); color: var(--tuna); }
.drawer-card-action-icon--blue { background: rgba(91,184,240,0.18); color: var(--ocean-deep); }

.drawer-card-action-text { display: flex; flex-direction: column; gap: 2px; }

.drawer-card-action-title {
  font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink);
}
.drawer-card-action-subtitle {
  font-size: 0.75rem; color: rgba(13,40,67,0.50); line-height: 1.4;
}

.drawer-social {
  display: flex; gap: 12px; padding: 14px 24px;
  align-items: center; flex-shrink: 0;
}
.drawer-social-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(13,40,67,0.06);
  color: var(--ocean-deep);
  transition: background 0.15s;
}
.drawer-social-btn:hover { background: rgba(13,40,67,0.14); }
.drawer-social-btn svg { width: 18px; height: 18px; }

/* Barco al fondo — visible en ambos estados */
.drawer-boat-deco {
  height: 120px; flex-shrink: 0;
  background: url('../assets/drawer-boat.jpg') center / cover no-repeat;
}


/* ============================================================
   AUTH MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(13,40,67,0.60);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: modalFadeIn .25s ease;
}

@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(13,40,67,0.28);
  padding: 36px 32px 32px;
  width: 100%; max-width: 400px;
  position: relative;
  animation: modalSlideUp .28s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none;
  border: 1.5px solid rgba(13,40,67,0.14);
  color: rgba(13,40,67,0.55); border-radius: 8px;
  padding: 5px; cursor: pointer; line-height: 0;
  transition: background .2s, border-color .2s, color .2s;
}
.modal-close:hover { background: var(--foam); border-color: var(--marlin); color: var(--marlin); }

.modal-head {
  display: flex; align-items: center;
  margin-bottom: 16px;
}
.modal-logo { height: 36px; width: auto; display: block; }

.form-auth { display: flex; flex-direction: column; gap: 18px; }

.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-family: 'Oswald', sans-serif; font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: rgba(13,40,67,0.65);
}
.form-field input {
  border: 1.5px solid rgba(13,40,67,0.18); border-radius: 8px;
  padding: 11px 14px;
  font-family: 'Inter', sans-serif; font-size: 0.95rem; color: var(--ink);
  background: var(--paper);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-field input::placeholder { color: rgba(13,40,67,0.30); }
.form-field input:focus {
  border-color: var(--marlin);
  box-shadow: 0 0 0 3px rgba(91,184,240,0.18);
}

.auth-error {
  font-size: 0.85rem; color: var(--tuna);
  background: rgba(193,58,46,0.07);
  border: 1px solid rgba(193,58,46,0.25);
  border-radius: 8px; padding: 10px 14px;
  line-height: 1.45; margin: 0;
}

.btn-auth-submit {
  background: var(--ocean-deep); color: var(--foam);
  border: none; border-radius: 10px;
  font-family: 'Oswald', sans-serif; font-size: 0.85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.07em;
  padding: 14px 20px; cursor: pointer; margin-top: 4px;
  transition: background .2s, transform .15s;
}
.btn-auth-submit:hover:not(:disabled) { background: var(--ocean-deep-2); transform: translateY(-1px); }

.modal-tabs {
  display: flex; gap: 4px;
  background: var(--foam); border-radius: 10px; padding: 4px;
  margin-bottom: 22px;
}
.modal-tab-btn {
  flex: 1; padding: 9px 12px;
  border: none; border-radius: 7px; background: none;
  font-family: 'Oswald', sans-serif; font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: rgba(13,40,67,0.50); cursor: pointer;
  transition: background .18s, color .18s;
}
.modal-tab-btn.is-active {
  background: #fff; color: var(--ocean-deep);
  box-shadow: 0 1px 4px rgba(13,40,67,0.12);
}

.field-password-wrap {
  position: relative; display: flex;
}
.field-password-wrap input { flex: 1; padding-right: 42px; }
.btn-show-pass {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 40px; background: none; border: none; cursor: pointer;
  color: rgba(13,40,67,0.38);
  display: flex; align-items: center; justify-content: center;
  transition: color .2s;
}
.btn-show-pass:hover { color: var(--ocean-deep); }

.auth-success {
  font-size: 0.85rem; color: #1a7a3c;
  background: rgba(26,122,60,0.07);
  border: 1px solid rgba(26,122,60,0.25);
  border-radius: 8px; padding: 10px 14px;
  line-height: 1.45; margin: 0;
}

/* ---- Auth modal — dark login theme ---- */
.modal-box.modal-dark { background: linear-gradient(145deg, #080f1f 0%, #0b1e3a 45%, #0d2448 70%, #070d1a 100%); border: 1px solid rgba(59,157,232,0.18); box-shadow: 0 28px 80px rgba(0,0,0,0.6); }
.modal-dark .modal-head { display: none; }
.modal-dark .modal-close { border-color: rgba(255,255,255,0.15); color: rgba(255,255,255,0.5); }
.modal-dark .modal-close:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.3); color: #fff; }
.modal-dark .modal-tabs { background: rgba(255,255,255,0.07); }
.modal-dark .modal-tab-btn { color: rgba(255,255,255,0.45); }
.modal-dark .modal-tab-btn.is-active { background: rgba(59,157,232,0.2); color: var(--marlin); box-shadow: none; }
.modal-login-header { text-align: center; margin-bottom: 22px; }
.modal-login-icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(59,157,232,0.1); border: 2px solid rgba(91,184,240,0.45); box-shadow: 0 0 22px rgba(91,184,240,0.38), 0 0 48px rgba(91,184,240,0.12); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; color: var(--marlin); }
.modal-login-eyebrow { font-family: 'Oswald', sans-serif; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.22em; color: var(--marlin); margin-bottom: 6px; }
.modal-login-title { font-family: 'Fraunces', serif; font-size: 1.55rem; font-weight: 800; color: #fff; margin-bottom: 6px; }
.modal-login-subtitle { font-size: 0.83rem; color: rgba(255,255,255,0.42); }
.modal-dark .form-field label { color: var(--marlin); }
.modal-dark .form-field input { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); color: #fff; }
.modal-dark .form-field input::placeholder { color: rgba(255,255,255,0.35); }
.modal-dark .form-field input:focus { border-color: var(--marlin); box-shadow: 0 0 0 3px rgba(91,184,240,0.18); }
.modal-dark .form-field input:-webkit-autofill,
.modal-dark .form-field input:-webkit-autofill:hover,
.modal-dark .form-field input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px #0b1e3a inset; -webkit-text-fill-color: #fff; caret-color: #fff; }
.modal-dark .auth-error { background: rgba(193,58,46,0.15); border-color: rgba(193,58,46,0.38); color: #f87171; }
.modal-dark .btn-show-pass { color: rgba(255,255,255,0.35); }
.modal-dark .btn-show-pass:hover { color: rgba(255,255,255,0.7); }
.modal-dark #auth-submit { background: linear-gradient(90deg, #5BB8F0 0%, #1A5C8A 100%); display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 4px 18px rgba(91,184,240,0.32); width: 100%; }
.modal-dark #auth-submit:hover:not(:disabled) { opacity: 0.88; transform: none; }
.modal-dark #auth-submit svg { width: 16px; height: 16px; }

/* ============================================================
   FLOATING SOCIAL WIDGET
   ============================================================ */
.social-float {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(16px) translateZ(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.social-float.is-visible {
  opacity: 1;
  transform: translateY(0) translateZ(0);
}
.social-float.is-footer-visible {
  opacity: 0 !important;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.social-float-toggle {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(13,40,67,0.40);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  touch-action: manipulation;
}
.social-float-toggle:hover { background: #1c3f62; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(13,40,67,0.50); }

.social-float-chevron {
  color: rgba(255,255,255,0.80);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.social-float.is-open .social-float-chevron { transform: rotate(180deg); }

.social-float-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.25s ease;
  margin-bottom: 8px;
}
.social-float.is-open .social-float-panel {
  max-height: 220px;
  opacity: 1;
  pointer-events: auto;
}

.social-float-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #fff;
  border-radius: 50%;
  border: none;
  box-shadow: 0 2px 12px rgba(13,40,67,0.30);
  transition: filter 0.2s, transform 0.15s;
  touch-action: manipulation;
}
.social-float-icon:hover { filter: brightness(0.85); transform: scale(1.08); }
.social-float-icon svg { width: 18px; height: 18px; }
.social-float-icon--ig {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.social-float-icon--fb { background: #1877F2; }
.social-float-icon--wa { background: #25D366; color: #fff; }

@media (max-width: 640px) {
  .social-float { bottom: 20px; right: 16px; }
}
.btn-auth-submit:disabled { opacity: 0.6; cursor: not-allowed; }
