@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Playfair+Display:wght@700;800&display=swap");

:root {
  --brand-blue: #143b8f;
  --brand-blue-deep: #0f2a66;
  --brand-red: #e31c2f;
  --brand-light: #f4f7fb;
  --brand-ink: #101828;
  --card-border: rgba(15, 42, 102, 0.1);
}

html { scroll-behavior: smooth; }

body {
  font-family: "Montserrat", sans-serif;
  color: var(--brand-ink);
  background: #fff;
}

h1, h2, h3, .hero-title { font-family: "Playfair Display", serif; }

/* ===================== SKIP LINK ===================== */
.skip-link {
  position: absolute; left: -9999px; top: 1rem; z-index: 100;
  border-radius: 999px; background: var(--brand-blue-deep); color: #fff;
  padding: .75rem 1rem; font-size: .875rem;
}
.skip-link:focus { left: 1rem; }

/* ===================== HEADER/NAVBAR ===================== */
.site-header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(20,59,143,0.08);
  box-shadow: 0 2px 20px rgba(15,42,102,0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.at-top {
  background: rgba(15,42,102,0%);
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  box-shadow: none;
}

.site-header.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 4px 24px rgba(15,42,102,0.13);
}

/* Nav links - ajustados para fondo claro/oscuro */
.nav-link {
  position: relative;
  color: var(--brand-blue-deep);
  font-size: .92rem;
  font-weight: 600;
  transition: color .25s;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -.4rem;
  width: 100%; height: 2px; transform: scaleX(0);
  transform-origin: center; background: var(--brand-red);
  transition: transform .25s;
}
.nav-link:hover { color: var(--brand-red); }
.nav-link:hover::after { transform: scaleX(1); }

/* When header is at top (over hero) - white nav */
.site-header.at-top .nav-link { color: rgba(255,255,255,0.9); }
.site-header.at-top .nav-link:hover { color: #fff; }
.site-header.at-top .btn-primary { box-shadow: 0 4px 20px rgba(227,28,47,0.4); }

/* Search bar in navbar */
.navbar-search {
  position: relative;
  display: flex;
  align-items: center;
}
.navbar-search input {
  width: 220px;
  padding: .5rem 1rem .5rem 2.4rem;
  border-radius: 999px;
  border: 1.5px solid rgba(20,59,143,0.15);
  background: rgba(244,247,251,0.9);
  font-size: .85rem;
  font-family: "Montserrat", sans-serif;
  outline: none;
  transition: border-color .2s, width .3s;
  color: var(--brand-ink);
}
.navbar-search input:focus {
  border-color: var(--brand-blue);
  width: 280px;
  background: #fff;
}
.navbar-search .search-icon {
  position: absolute;
  left: .75rem;
  color: var(--brand-blue);
  pointer-events: none;
  align-self: anchor-center;
}
.site-header.at-top .navbar-search input {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}
.site-header.at-top .navbar-search input::placeholder { color: rgba(255,255,255,0.6); }
.site-header.at-top .navbar-search .search-icon { color: rgba(255,255,255,0.8); }

/* Search results dropdown */
.search-results {
  position: absolute;
  top: calc(100% + .5rem);
  left: 0;
  right: 0;
  min-width: 300px;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 12px 40px rgba(15,42,102,0.18);
  border: 1px solid var(--card-border);
  z-index: 200;
  overflow: hidden;
  max-height: 400px;
  overflow-y: auto;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  cursor: pointer;
  transition: background .15s;
  border-bottom: 1px solid var(--card-border);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--brand-light); }
.search-result-item img { width: 44px; height: 44px; object-fit: cover; border-radius: .5rem; }
.search-result-meta strong { display: block; font-size: .85rem; color: var(--brand-blue-deep); }
.search-result-meta span { font-size: .75rem; color: #64748b; }
.search-empty { padding: 1rem; text-align: center; color: #64748b; font-size: .85rem; }

/* Mobile menu */
.mobile-menu {
  background: var(--brand-blue-deep);
}
.mobile-link {
  display: block;
  padding: .85rem .3rem;
  color: rgba(255,255,255,0.88);
  font-weight: 600;
  font-size: .92rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color .2s;
}
.mobile-link:hover { color: #fff; }
.mobile-search {
  padding: .75rem .3rem;
}
.mobile-search input {
  width: 100%;
  padding: .65rem 1rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: .9rem;
  outline: none;
}
.mobile-search input::placeholder { color: rgba(255,255,255,0.5); }

/* Menu toggle / hamburger */
.menu-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--brand-blue-deep);
  padding: .5rem;
  border-radius: .5rem;
  transition: background .2s;
}
.menu-toggle:hover { background: var(--brand-light); }
.site-header.at-top .menu-toggle { color: #fff; }
.site-header.at-top .menu-toggle:hover { background: rgba(255,255,255,0.1); }
.hamburger { display: flex; flex-direction: column; gap: 5px; }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ===================== BUTTONS ===================== */
.btn-primary {
  border-radius: 999px;
  padding: .85rem 1.5rem;
  font-size: .9rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ef3340, #d6192b);
  color: #fff;
  box-shadow: 0 8px 28px rgba(227,28,47,0.28);
  transition: transform .25s, box-shadow .25s;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(227,28,47,0.35); }

.btn-secondary {
  border-radius: 999px;
  padding: .85rem 1.5rem;
  font-size: .9rem;
  font-weight: 700;
  border: 2px solid var(--brand-blue);
  color: var(--brand-blue);
  background: transparent;
  transition: all .25s;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.btn-secondary:hover {
  background: var(--brand-blue);
  color: #fff;
  transform: translateY(-2px);
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-carousel .swiper-wrapper,
.hero-carousel .swiper-slide { height: 100%; }

.hero-slide {
  position: relative;
  overflow: hidden;
}

.hero-slide-image,
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide-image {
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 8s ease;
}
.swiper-slide-active .hero-slide-image {
  transform: scale(1.14);
  animation: kenBurns 7s ease-in-out both;
}

.hero-slide-overlay {
  background: linear-gradient(
    90deg,
    rgba(4,8,18,0.88) 0%,
    rgba(4,8,18,0.6) 45%,
    rgba(4,8,18,0.22) 75%,
    rgba(4,8,18,0.1) 100%
  );
}

.hero-slide-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2rem, 5vw, 5rem) clamp(1.5rem, 5vw, 5rem) clamp(5rem, 9vw, 9rem);
  max-width: 52rem;
}

.hero-slide-eyebrow,
.hero-slide-title,
.hero-slide-copy,
.hero-slide-actions {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .75s ease, transform .75s ease;
}
.swiper-slide-active .hero-slide-eyebrow { opacity:1; transform:translateY(0); transition-delay:.15s; }
.swiper-slide-active .hero-slide-title   { opacity:1; transform:translateY(0); transition-delay:.3s; }
.swiper-slide-active .hero-slide-copy    { opacity:1; transform:translateY(0); transition-delay:.45s; }
.swiper-slide-active .hero-slide-actions { opacity:1; transform:translateY(0); transition-delay:.6s; }

.hero-slide-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border-radius: 999px;
  padding: .44rem .9rem;
  background: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.95);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
}
.hero-slide-title {
  margin-top: 1rem;
  font-size: clamp(2.6rem, 5vw, 5.2rem);
  line-height: .96;
  color: #fff;
}
.hero-slide-copy {
  margin-top: 1rem;
  max-width: 34rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.75;
  font-size: clamp(.95rem, 1.4vw, 1.15rem);
}
.hero-slide-actions { margin-top: 2rem; }

/* Hero dots */
.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: .6rem;
  z-index: 10;
}
.hero-dot {
  width: .75rem;
  height: .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: all .3s;
  padding: 0;
}
.hero-dot.active {
  background: #fff;
  width: 2rem;
}

@keyframes kenBurns {
  from { transform: scale(1.06); }
  to   { transform: scale(1.14); }
}

/* ===================== SECTIONS ===================== */
.section-block {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section-eyebrow {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: .75rem;
}

.section-title {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--brand-blue-deep);
  margin-bottom: 1rem;
}

.section-copy {
  color: #475569;
  line-height: 1.8;
  font-size: clamp(.95rem, 1.4vw, 1.08rem);
  max-width: 52ch;
}

/* Reveal animation */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .75s ease, transform .75s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== INFO CARDS ===================== */
.info-card {
  border-radius: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--brand-light);
  border: 1px solid var(--card-border);
}
.info-card-number {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--brand-red);
}

/* ===================== STAND CARDS ===================== */
.stand-card {
  background: #fff;
  border-radius: 1.5rem;
  border: 1px solid var(--card-border);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(15,42,102,0.06);
  transition: transform .3s, box-shadow .3s;
}
.stand-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(15,42,102,0.14);
}
.stand-thumb { overflow: hidden; }
.stand-thumb img {
  width: 100%; height: 200px;
  object-fit: cover;
  transition: transform .5s;
}
.stand-card:hover .stand-thumb img { transform: scale(1.06); }
.stand-content { padding: 1.25rem; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  border-radius: 999px;
  padding: .3rem .75rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.status-available {
  background: rgba(16,185,129,0.12);
  color: #065f46;
}
.status-soon {
  background: rgba(245,158,11,0.12);
  color: #92400e;
}
.status-occupied {
  background: rgba(239,68,68,0.1);
  color: #991b1b;
}

/* ===================== BRAND CARDS ===================== */
.brand-card {
  border-radius: 1.25rem;
  background: #fff;
  border: 1.5px solid var(--card-border);
  padding: 1rem;
  text-align: center;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  cursor: default;
}
.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(15,42,102,0.12);
  border-color: var(--brand-blue);
}
.brand-card img {
  width: 100%; height: 130px;
  object-fit: cover;
  border-radius: .75rem;
  margin-bottom: .75rem;
}
.brand-card h3 {
  font-size: .85rem;
  font-weight: 700;
  color: var(--brand-blue-deep);
  margin-bottom: .25rem;
}
.brand-card span {
  font-size: .72rem;
  color: #64748b;
}

/* ===================== FILTER CHIPS ===================== */
.category-chip {
  border-radius: 999px;
  padding: .5rem 1.1rem;
  font-size: .82rem;
  font-weight: 600;
  border: 1.5px solid rgba(20,59,143,0.18);
  color: var(--brand-blue);
  background: #fff;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.category-chip:hover { border-color: var(--brand-blue); background: var(--brand-light); }
.category-chip.is-active {
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-blue);
}

/* ===================== CONTACT ===================== */
.mini-chip {
  border-radius: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--brand-light);
  border: 1px solid var(--card-border);
  display: grid;
  gap: .25rem;
}
.mini-chip strong { font-size: .85rem; font-weight: 700; color: var(--brand-blue-deep); }
.mini-chip span { font-size: .85rem; color: #475569; }

.field-label { display: grid; gap: .5rem; }
.field-label span { font-size: .82rem; font-weight: 700; color: var(--brand-blue-deep); }
.field-input {
  width: 100%;
  border-radius: .75rem;
  border: 1.5px solid #e2e8f0;
  padding: .75rem 1rem;
  font-size: .9rem;
  font-family: "Montserrat", sans-serif;
  outline: none;
  transition: border-color .2s;
  background: #fff;
}
.field-input:focus { border-color: var(--brand-blue); }
select.field-input { cursor: pointer; }
textarea.field-input { resize: none; min-height: 120px; }

/* ===================== MAPA ===================== */
#mapContainer {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(15,42,102,0.14);
  border: 1px solid var(--card-border);
}

/* ===================== PAGINATION ===================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  flex-wrap: wrap;
}
.page-btn {
  min-width: 2.2rem;
  height: 2.2rem;
  border-radius: .6rem;
  border: 1.5px solid rgba(20,59,143,0.18);
  background: #fff;
  color: var(--brand-blue);
  font-weight: 700;
  font-size: .82rem;
  cursor: pointer;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 .5rem;
}
.page-btn:hover { background: var(--brand-light); border-color: var(--brand-blue); }
.page-btn.active { background: var(--brand-blue); color: #fff; border-color: var(--brand-blue); }
.page-btn:disabled { opacity: .35; cursor: not-allowed; }

/* ===================== FOOTER ===================== */
.footer {
  background: var(--brand-blue-deep);
  color: #fff;
}
.footer-title {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}
.footer-list { display: grid; gap: .6rem; }
.footer-list li, .footer-list a {
  font-size: .875rem;
  color: rgba(255,255,255,0.7);
  transition: color .2s;
}
.footer-list a:hover { color: #fff; }

/* ===================== FLOATING BTN ===================== */
.floating-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: var(--brand-blue);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(20,59,143,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s, background .25s;
}
.floating-btn:hover { transform: translateY(-3px); background: var(--brand-blue-deep); }

/* ===================== ADMIN BADGE ===================== */
.admin-link {
  font-size: .72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-decoration: underline;
  transition: color .2s;
}
.admin-link:hover { color: #fff; }

/* ===================== LOADING ===================== */
.skeleton {
  background: linear-gradient(90deg, #f0f4fa 25%, #e2e8f4 50%, #f0f4fa 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: .75rem;
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ===================== MAP POPUPS ===================== */
.map-popup {
  font-family: "Montserrat", sans-serif;
  min-width: 160px;
}
.map-popup h4 { font-size: .85rem; font-weight: 700; color: var(--brand-blue-deep); margin-bottom: .25rem; }
.map-popup p  { font-size: .78rem; color: #475569; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .navbar-search { display: none; }
}

@media (max-width: 768px) {
  .hero-slide-content {
    padding: 1.5rem 1.5rem 6rem;
  }
  .hero-slide-title { font-size: clamp(2rem, 8vw, 3.2rem); }
  .section-title { font-size: clamp(1.6rem, 5vw, 2.2rem); }
}
