/* ============================================
   MagicSea Yachts - Static Site Styles
   ============================================ */

:root {
  --navy: #0b2545;
  --navy-deep: #061a33;
  --navy-light: #13335f;
  --gold: #c9a961;
  --gold-soft: #e0c992;
  --sand: #f4ede2;
  --white: #ffffff;
  --gray-50: #f8f9fb;
  --gray-100: #eef0f4;
  --gray-200: #d8dde3;
  --gray-400: #8a93a3;
  --gray-600: #4f5868;
  --gray-800: #1f2733;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.07);
  --shadow-md: 0 6px 20px rgba(0,0,0,.10);
  --shadow-lg: 0 18px 40px rgba(0,0,0,.18);
  --radius-sm: 4px;
  --radius: 10px;
  --radius-lg: 18px;
  --maxw: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.2; color: var(--navy); font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin-bottom: .8rem; }
h3 { font-size: 1.25rem; margin-bottom: .5rem; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* ===== Top Bar (location + social) ===== */
.topbar {
  background: var(--navy-deep);
  color: rgba(255,255,255,.82);
  font-size: .82rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: .45rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.topbar a { color: rgba(255,255,255,.82); transition: color .2s; }
.topbar a:hover { color: var(--gold); }

.topbar-loc {
  display: inline-flex; align-items: center; gap: .45rem;
  letter-spacing: .2px;
}
.topbar-loc svg { color: var(--gold); flex-shrink: 0; }

/* Contact actions group (Call / SMS / WhatsApp / Telegram) */
.topbar-contact {
  display: inline-flex; align-items: center; gap: .9rem;
  padding: 0 .9rem;
  border-left: 1px solid rgba(255,255,255,.12);
  border-right: 1px solid rgba(255,255,255,.12);
}
.topbar-contact .tb-contact {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .78rem; font-weight: 500; line-height: 1;
  white-space: nowrap;
  letter-spacing: .15px;
  transition: color .2s, transform .2s;
}
.topbar-contact .tb-contact svg {
  flex-shrink: 0;
  color: var(--gold-soft);
  transition: color .2s, transform .2s;
}
.topbar-contact .tb-contact:hover { color: var(--gold); transform: translateY(-1px); }
.topbar-contact .tb-contact:hover svg { color: var(--gold); }
.topbar-contact .tb-wa svg { color: #25d366; }   /* official WhatsApp green */
.topbar-contact .tb-tg svg { color: #2aabee; }   /* official Telegram blue */
.topbar-contact .tb-wa:hover svg,
.topbar-contact .tb-tg:hover svg { transform: scale(1.1); }

.topbar-social {
  display: inline-flex; align-items: center; gap: .15rem;
}
.topbar-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  transition: background .2s, color .2s, transform .2s, filter .2s;
}
/* Brand colors per social */
.topbar-social a[aria-label="TikTok"]    { color: #ffffff; }
.topbar-social a[aria-label="YouTube"]   { color: #ff0033; }
.topbar-social a[aria-label="Instagram"] { color: #e4405f; }
.topbar-social a[aria-label="Facebook"]  { color: #1877f2; }
.topbar-social a:hover {
  background: rgba(255,255,255,.12);
  transform: translateY(-1px);
  filter: brightness(1.18);
}

@media (max-width: 980px){
  .topbar-contact { gap: .55rem; padding: 0 .6rem; }
  .topbar-contact .tb-contact span { display: none; }
  .topbar-contact .tb-contact { padding: .2rem; }
  .topbar-contact .tb-contact svg { width: 15px; height: 15px; }
}
@media (max-width: 720px){
  .topbar { font-size: .75rem; }
  .topbar-inner { padding: .35rem .6rem; gap: .35rem; }
  .topbar-loc span { display: none; }
  .topbar-loc::after {
    content: "Maps";
    font-weight: 500;
  }
  .topbar-contact { border: 0; padding: 0; gap: .25rem; }
  .topbar-social a { width: 26px; height: 26px; }
}

/* ===== Header / Nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 37, 69, .96);
  backdrop-filter: blur(8px);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-bar {
  max-width: var(--maxw); margin: 0 auto;
  padding: .9rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
}
.brand-logo {
  display: flex; align-items: center;
  color: var(--white); line-height: 0;
}
.brand-logo:hover { opacity: .9; }
.brand-logo img {
  height: 42px; width: auto; display: block;
}
@media (max-width: 720px){
  .brand-logo img { height: 34px; }
}

.nav-links { display: flex; gap: 1.6rem; align-items: center; list-style: none; }
.nav-links a { color: var(--white); font-weight: 500; font-size: .95rem; opacity: .85; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); opacity: 1; }
.nav-cta {
  background: var(--gold); color: var(--navy) !important; padding: .55rem 1.1rem;
  border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem;
  transition: background .2s;
}
.nav-cta:hover { background: var(--gold-soft); }

.nav-toggle {
  display: none; background: none; border: 0; color: var(--white);
  font-size: 1.6rem; cursor: pointer;
}

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy-deep); flex-direction: column;
    padding: 1rem; gap: 0; max-height: 0; overflow: hidden; transition: max-height .3s;
  }
  .nav-links.open { max-height: 80vh; padding: 1rem; }
  .nav-links a { padding: .8rem 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-cta { margin-top: .5rem; text-align: center; }
}

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 78vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(rgba(6,26,51,.05), rgba(6,26,51,.35)),
              url('../../images/fondo2000-04.jpg') center/cover no-repeat;
  background-attachment: scroll;
  color: var(--white); text-align: center; padding: 4rem 1.25rem;
}
.hero h1 {
  color: var(--white); margin-bottom: 1rem;
  font-family: 'Cormorant', 'Playfair Display', Georgia, serif;
  font-weight: 700; letter-spacing: .3px;
  font-size: clamp(2.4rem, 6vw, 4rem);
  text-shadow:
    -2px -2px 0 #0b2545,  2px -2px 0 #0b2545,
    -2px  2px 0 #0b2545,  2px  2px 0 #0b2545,
    -2px  0   0 #0b2545,  2px  0   0 #0b2545,
     0  -2px 0 #0b2545,   0   2px 0 #0b2545,
     0 4px 14px rgba(0,0,0,.35);
}
.hero .tagline {
  font-size: 1.15rem; font-weight: 300; max-width: 720px; margin: 0 auto 1.8rem;
  opacity: .95;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: .85rem 1.6rem; border-radius: var(--radius-sm);
  font-weight: 600; transition: all .2s; cursor: pointer; border: 0;
  font-size: .95rem; letter-spacing: .3px;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--white); color: var(--navy); transform: translateY(-2px); }
.btn-secondary { background: var(--navy); color: var(--white); }
.btn-secondary:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }

/* ===== Sections ===== */
section { padding: 4rem 0; }
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title .eyebrow {
  display: block; color: var(--gold); font-family: 'Inter', sans-serif;
  font-weight: 600; letter-spacing: 3px; text-transform: uppercase; font-size: .8rem;
  margin-bottom: .6rem;
}
.section-title p { color: var(--gray-600); max-width: 640px; margin: .8rem auto 0; }

/* ===== Brand grid (8 brand cards) ===== */
.brand-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.brand-card {
  background: var(--white); border-radius: var(--radius);
  padding: 2rem 1.5rem; text-align: center; box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100); transition: all .25s;
  text-decoration: none; color: var(--navy);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 180px;
}
.brand-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.brand-card h3 {
  font-family: 'Playfair Display', serif; font-size: 1.5rem;
  margin: .5rem 0 .25rem; color: var(--navy);
}
.brand-card .count {
  display: inline-block; background: var(--sand); color: var(--navy);
  padding: .25rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 600;
  margin-top: .5rem;
}
.brand-card .icon-anchor {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--gold); font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .8rem;
}

/* ===== Yacht grid ===== */
.yacht-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.yacht-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100); transition: all .25s;
  display: flex; flex-direction: column;
}
.yacht-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.yacht-card .img-wrap {
  aspect-ratio: 16 / 10; overflow: hidden; background: var(--gray-100);
  position: relative;
}
.yacht-card .img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.yacht-card:hover .img-wrap img { transform: scale(1.05); }
.yacht-card .badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--gold); color: var(--navy);
  font-size: .72rem; font-weight: 700;
  padding: .3rem .65rem; border-radius: 4px;
  text-transform: uppercase; letter-spacing: 1px;
}
.yacht-card-body { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; }
.yacht-card h3 {
  font-size: 1.1rem; margin-bottom: .5rem;
  color: var(--navy); line-height: 1.3;
}
.yacht-card .meta {
  display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem;
}
.yacht-card .meta span {
  font-size: .73rem; color: var(--gray-600); background: var(--gray-50);
  padding: .25rem .6rem; border-radius: 4px;
}
.yacht-card .excerpt {
  color: var(--gray-600); font-size: .88rem; line-height: 1.55;
  flex: 1; margin-bottom: 1rem;
}
.yacht-card .view-btn {
  display: inline-block; color: var(--navy); font-weight: 600; font-size: .88rem;
  border-bottom: 1px solid var(--gold); padding-bottom: 2px; align-self: flex-start;
}
.yacht-card .view-btn:hover { color: var(--gold); }

/* ===== Filter bar ===== */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center;
  margin-bottom: 2.5rem;
}
.filter-btn {
  padding: .55rem 1.1rem; border: 1.5px solid var(--gray-200);
  background: var(--white); color: var(--navy); border-radius: 999px;
  font-size: .85rem; font-weight: 500; cursor: pointer; transition: all .2s;
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold); }
.filter-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ===== Yacht detail page ===== */
.yacht-hero {
  position: relative; height: 70vh;
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end; color: var(--white);
}
.yacht-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(transparent 30%, rgba(6,26,51,.85));
}
.yacht-hero-content {
  position: relative; z-index: 1; padding: 3rem 1.25rem;
  width: 100%; max-width: var(--maxw); margin: 0 auto;
}
.yacht-hero-content .crumbs {
  font-size: .85rem; opacity: .85; margin-bottom: .5rem;
}
.yacht-hero-content .crumbs a { color: var(--gold); }
.yacht-hero-content h1 {
  color: var(--white); margin-bottom: .8rem; max-width: 800px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700; letter-spacing: .5px;
  text-shadow:
    -2px -2px 0 #0b2545,  2px -2px 0 #0b2545,
    -2px  2px 0 #0b2545,  2px  2px 0 #0b2545,
    -2px  0   0 #0b2545,  2px  0   0 #0b2545,
     0  -2px 0 #0b2545,   0   2px 0 #0b2545,
     0 4px 14px rgba(0,0,0,.35);
}
.yacht-hero-content .specs-bar {
  display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem;
}
.yacht-hero-content .specs-bar div,
.yacht-hero-content .specs-bar .spec-share {
  background: rgba(255,255,255,.15); backdrop-filter: blur(4px);
  padding: .5rem 1rem; border-radius: 4px; font-size: .9rem;
  border: 1px solid rgba(255,255,255,.2);
}
.yacht-hero-content .specs-bar strong { color: var(--gold); margin-right: .35rem; }

/* Share button inside specs-bar */
.yacht-hero-content .specs-bar .spec-share {
  color: var(--white);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: .3px;
  transition: background .2s, border-color .2s, color .2s;
}
.yacht-hero-content .specs-bar .spec-share:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}
.yacht-hero-content .specs-bar .spec-share svg { color: var(--gold); transition: color .2s; }
.yacht-hero-content .specs-bar .spec-share:hover svg { color: var(--navy); }

/* Share popover (fallback when Web Share API isn't available) */
.share-popover {
  position: absolute;
  transform: translateX(-50%);
  z-index: 9000;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(0,0,0,.22);
  padding: 1rem;
  width: 320px;
  border: 1px solid var(--gray-200);
  animation: sharePopIn .18s ease-out;
}
@keyframes sharePopIn {
  from { opacity: 0; transform: translate(-50%, -6px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.share-pop-arrow {
  position: absolute; top: -7px; left: 50%;
  width: 14px; height: 14px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--white);
  border-left: 1px solid var(--gray-200);
  border-top: 1px solid var(--gray-200);
}
.share-pop-header {
  text-align: center;
  font-size: .82rem;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--gray-600); font-weight: 600;
  margin-bottom: .85rem;
}
.share-pop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  margin-bottom: .75rem;
}
.share-pop-item {
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  padding: .7rem .4rem;
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  transition: background .15s, transform .15s;
  text-decoration: none;
}
.share-pop-item:hover { background: var(--gray-100); transform: translateY(-1px); }
.share-pop-item .share-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(0,0,0,.04);
}
.share-pop-item .share-lbl {
  font-size: .72rem; font-weight: 500;
  color: var(--gray-800);
  letter-spacing: .2px;
}
.share-pop-copy {
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .65rem 1rem;
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  color: var(--navy);
  border-radius: var(--radius-sm);
  font-size: .88rem; font-weight: 500;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.share-pop-copy:hover { background: var(--gray-100); border-color: var(--gold); }
.share-pop-copy svg { color: var(--gold); }

@media (max-width: 480px){
  .share-popover { width: calc(100vw - 2rem); max-width: 320px; }
}

.yacht-detail { padding: 3rem 0; }
.yacht-layout {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 2.5rem;
}
@media (max-width: 900px) { .yacht-layout { grid-template-columns: 1fr; } }

.yacht-content h2 { margin-top: 2rem; }
.yacht-content h2:first-child { margin-top: 0; }
.yacht-content p { color: var(--gray-600); margin-bottom: 1rem; }

.feature-list {
  list-style: none; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .8rem; margin: 1.5rem 0;
}
.feature-list li {
  display: flex; align-items: center; gap: .65rem;
  background: var(--gray-50); padding: .8rem 1rem; border-left: 3px solid var(--gold);
  border-radius: 4px; font-size: .92rem; color: var(--gray-800);
}

/* Icon badge inside each list item */
.fi {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; min-width: 2rem;
  background: rgba(201,169,97,.13); border-radius: 50%;
  font-size: 1.05rem; line-height: 1;
}

/* Not included — soft red accent */
.feature-list--excluded li {
  border-left-color: #c0392b; background: #fdf5f5;
}
.feature-list--excluded .fi {
  background: rgba(192,57,43,.12);
}

/* Optionals — light blue accent */
.feature-list--optional li {
  border-left-color: #2980b9; background: #f4f8fd;
}
.feature-list--optional .fi {
  background: rgba(41,128,185,.12);
}

/* ===== Photo gallery (12-photo grid) ===== */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: .6rem; margin-top: 1.5rem;
}
.gallery .gallery-thumb {
  position: relative; padding: 0; border: 0; background: none; cursor: pointer;
  border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
}
.gallery .gallery-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(11,37,69,.35));
  opacity: 0; transition: opacity .25s;
}
.gallery .gallery-thumb:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.gallery .gallery-thumb:hover::after { opacity: 1; }
.gallery .gallery-thumb:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.gallery img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; transition: transform .35s;
}
.gallery .gallery-thumb:hover img { transform: scale(1.05); }
@media (max-width: 720px){
  .gallery { grid-template-columns: repeat(2, 1fr); gap: .45rem; }
}

/* ===== Fullscreen Lightbox ===== */
body.lb-noscroll { overflow: hidden; }
.ms-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  display: none;
  background: rgba(6, 16, 28, .96);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: lbFade .25s ease-out both;
  user-select: none;
}
.ms-lightbox.is-open { display: block; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }

.ms-lightbox .lb-stage {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 4.5rem 4.5rem 5rem;
  touch-action: pan-y;
}
.ms-lightbox .lb-img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  box-shadow: 0 18px 60px rgba(0,0,0,.5);
  border-radius: 6px;
  opacity: 0; transition: opacity .3s ease-out;
  background: #0a1628;
}
.ms-lightbox .lb-img.is-loaded { opacity: 1; }

.ms-lightbox .lb-close,
.ms-lightbox .lb-prev,
.ms-lightbox .lb-next {
  position: absolute; z-index: 2;
  background: rgba(255,255,255,.08);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.18);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s, transform .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.ms-lightbox .lb-close:hover,
.ms-lightbox .lb-prev:hover,
.ms-lightbox .lb-next:hover {
  background: var(--gold); color: var(--navy);
  border-color: var(--gold);
}
.ms-lightbox .lb-close {
  top: 1rem; right: 1rem;
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 1.6rem; line-height: 1;
}
.ms-lightbox .lb-prev,
.ms-lightbox .lb-next {
  top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  font-size: 1.2rem;
}
.ms-lightbox .lb-prev { left: 1rem; }
.ms-lightbox .lb-next { right: 1rem; }
.ms-lightbox .lb-prev:hover,
.ms-lightbox .lb-next:hover { transform: translateY(-50%) scale(1.06); }

.ms-lightbox .lb-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1rem 1.5rem;
  color: rgba(255,255,255,.85);
  font-size: .9rem; letter-spacing: .3px;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
  pointer-events: none;
}
.ms-lightbox .lb-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem; color: var(--white);
}
.ms-lightbox .lb-counter {
  font-variant-numeric: tabular-nums;
  background: rgba(255,255,255,.1);
  padding: .25rem .7rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  color: var(--gold-soft);
  font-size: .8rem;
}

@media (max-width: 720px){
  .ms-lightbox .lb-stage { padding: 3.5rem .5rem 4rem; }
  .ms-lightbox .lb-prev,
  .ms-lightbox .lb-next {
    width: 42px; height: 42px;
    background: rgba(0,0,0,.45);
  }
  .ms-lightbox .lb-prev { left: .5rem; }
  .ms-lightbox .lb-next { right: .5rem; }
  .ms-lightbox .lb-close { top: .6rem; right: .6rem; width: 40px; height: 40px; }
  .ms-lightbox .lb-caption { padding: .7rem 1rem; font-size: .82rem; }
  .ms-lightbox .lb-title { font-size: .95rem; }
}

/* Mobile landscape — let the photo fill the whole viewport, controls float on top */
@media (orientation: landscape) and (max-height: 500px){
  .ms-lightbox .lb-stage {
    padding: 0;
  }
  .ms-lightbox .lb-img {
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }
  .ms-lightbox .lb-close {
    top: .35rem; right: .35rem;
    width: 34px; height: 34px;
    background: rgba(0,0,0,.55);
    font-size: 1.25rem;
  }
  .ms-lightbox .lb-prev,
  .ms-lightbox .lb-next {
    width: 38px; height: 38px;
    background: rgba(0,0,0,.55);
  }
  .ms-lightbox .lb-prev { left: .35rem; }
  .ms-lightbox .lb-next { right: .35rem; }
  .ms-lightbox .lb-caption {
    padding: .35rem .75rem;
    font-size: .72rem;
    background: linear-gradient(transparent, rgba(0,0,0,.55));
  }
  .ms-lightbox .lb-title { font-size: .82rem; }
  .ms-lightbox .lb-counter { padding: .15rem .5rem; font-size: .68rem; }
}

/* ===== Booking / contact card ===== */
.booking-card {
  background: var(--navy); color: var(--white); padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.booking-card h3 { color: var(--white); font-family: 'Playfair Display', serif; }
.booking-card p { color: rgba(255,255,255,.8); margin: .5rem 0 1.2rem; font-size: .92rem; }
.booking-card .contact-row {
  display: flex; align-items: center; gap: .7rem;
  padding: .8rem 0; border-top: 1px solid rgba(255,255,255,.1);
  font-size: .92rem;
}
.booking-card .contact-row:first-of-type { border-top: 0; }
.booking-card .contact-row a { color: var(--gold); }
.booking-card .contact-row .icon-circle {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(201, 169, 97, .15); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.booking-card .btn-primary { width: 100%; text-align: center; margin-top: 1rem; }

/* ===== TikTok video card (inside aside, under booking) ===== */
.tiktok-video-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1rem;
  margin-top: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.tiktok-video-card h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem; color: var(--navy);
  margin: 0 0 .75rem;
  text-align: center;
  letter-spacing: .3px;
}
.tiktok-video-card .tiktok-embed {
  margin: 0 auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.tiktok-video-card iframe {
  width: 100% !important;
  max-width: 100% !important;
}

/* ===== TripAdvisor card (under TikTok) ===== */
.tripadvisor-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1rem;
  margin-top: 1.25rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.tripadvisor-card h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem; color: var(--navy);
  margin: 0 0 .75rem;
  letter-spacing: .3px;
}
.tripadvisor-card .TA_selfserveprop {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
}
.tripadvisor-card .TA_selfserveprop ul,
.tripadvisor-card .TA_selfserveprop li {
  margin: 0; padding: 0; list-style: none;
}
.tripadvisor-card .TA_selfserveprop img { max-width: 100%; height: auto; }

/* ===== Search page filters ===== */
.search-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  background: var(--white);
  padding: 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  align-items: end;
}
.search-field { display: flex; flex-direction: column; gap: .35rem; }
.search-field label {
  font-size: .78rem; font-weight: 600;
  letter-spacing: .8px; text-transform: uppercase;
  color: var(--gray-600);
}
.search-field select {
  appearance: none; -webkit-appearance: none;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: .65rem .85rem; padding-right: 2.2rem;
  font-size: .95rem; color: var(--gray-800);
  font-family: inherit;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 7' fill='%23888780'%3E%3Cpath d='M6 7L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  background-size: 10px;
  transition: border-color .2s, background .2s;
}
.search-field select:hover  { border-color: var(--gold); }
.search-field select:focus  { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,169,97,.18); }

.btn-clear {
  height: 42px; align-self: end;
  padding: .55rem 1rem; font-size: .85rem;
  background: transparent; color: var(--navy);
  border: 1px solid var(--gray-200);
}
.btn-clear:hover { border-color: var(--navy); background: var(--gray-50); }

.search-meta {
  margin: 0 0 1.25rem; padding: 0 .25rem;
  color: var(--gray-600); font-size: .92rem;
}
.search-meta #searchCount { color: var(--navy); font-weight: 600; }

@media (max-width: 720px){
  .search-filters { padding: 1rem; gap: .75rem; }
  .btn-clear { width: 100%; }
}

/* ===== Page header banner ===== */
.page-banner {
  background: linear-gradient(rgba(6,26,51,.7), rgba(6,26,51,.85)),
              url('../../images-yachts-boats/2026/04/64-azimut-embrace-yacht-boat-charter-15-people_magicsea-11.jpg') center/cover;
  color: var(--white); padding: 5rem 1.25rem 4rem; text-align: center;
}
/* Per-page banner backgrounds */
body[data-page="fleet"] .page-banner {
  background: linear-gradient(rgba(6,26,51,.05), rgba(6,26,51,.35)),
              url('../../images/fondo2000-14.jpg') center/cover no-repeat;
}
body[data-page="fleet"] .page-banner h1 {
  font-family: 'Cormorant', 'Playfair Display', Georgia, serif;
  font-weight: 700; letter-spacing: .3px;
  font-size: clamp(2.4rem, 6vw, 4rem);
  text-shadow:
    -2px -2px 0 #0b2545,  2px -2px 0 #0b2545,
    -2px  2px 0 #0b2545,  2px  2px 0 #0b2545,
    -2px  0   0 #0b2545,  2px  0   0 #0b2545,
     0  -2px 0 #0b2545,   0   2px 0 #0b2545,
     0 4px 14px rgba(0,0,0,.35);
}
body[data-page="brand"] .page-banner {
  background: linear-gradient(rgba(6,26,51,.05), rgba(6,26,51,.35)),
              url('../../images/fondo2000-09.jpg') center/cover no-repeat;
}
body[data-page="brand"] .page-banner h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700; letter-spacing: .5px;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  text-shadow:
    -2px -2px 0 #0b2545,  2px -2px 0 #0b2545,
    -2px  2px 0 #0b2545,  2px  2px 0 #0b2545,
    -2px  0   0 #0b2545,  2px  0   0 #0b2545,
     0  -2px 0 #0b2545,   0   2px 0 #0b2545,
     0 4px 14px rgba(0,0,0,.35);
}
body[data-page="contact"] .page-banner {
  background: linear-gradient(rgba(6,26,51,.05), rgba(6,26,51,.35)),
              url('../../images/fondo2000-07.jpg') center/cover no-repeat;
}
body[data-page="contact"] .page-banner h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700; letter-spacing: .5px;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  text-shadow:
    -2px -2px 0 #0b2545,  2px -2px 0 #0b2545,
    -2px  2px 0 #0b2545,  2px  2px 0 #0b2545,
    -2px  0   0 #0b2545,  2px  0   0 #0b2545,
     0  -2px 0 #0b2545,   0   2px 0 #0b2545,
     0 4px 14px rgba(0,0,0,.35);
}
body[data-page="search"] .page-banner {
  background: linear-gradient(rgba(6,26,51,.05), rgba(6,26,51,.35)),
              url('../../images/fondo2000-15.jpg') center/cover no-repeat;
}
body[data-page="search"] .page-banner h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700; letter-spacing: .5px;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  text-shadow:
    -2px -2px 0 #0b2545,  2px -2px 0 #0b2545,
    -2px  2px 0 #0b2545,  2px  2px 0 #0b2545,
    -2px  0   0 #0b2545,  2px  0   0 #0b2545,
     0  -2px 0 #0b2545,   0   2px 0 #0b2545,
     0 4px 14px rgba(0,0,0,.35);
}
.page-banner h1 { color: var(--white); margin-bottom: .5rem; }
.page-banner p { opacity: .92; max-width: 600px; margin: 0 auto; }
.page-banner .crumbs { margin-top: .8rem; font-size: .9rem; opacity: .8; }
.page-banner .crumbs a { color: var(--gold-soft); }

/* ===== Why choose us ===== */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.feature-item { text-align: center; padding: 1rem; }
.feature-item .badge-icon {
  height: 80px; margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  padding: 0 .5rem;
}
.feature-item .badge-icon img {
  max-height: 80px;
  max-width: 160px;
  width: auto; height: auto;
  object-fit: contain;
  transition: transform .25s;
}
.feature-item:hover .badge-icon img { transform: scale(1.05); }

/* Card converted into a link (the 4 credibility badges) */
a.feature-link {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background .2s, transform .2s, box-shadow .2s;
}
a.feature-link h3 {
  transition: color .2s;
}
a.feature-link:hover {
  background: var(--gray-50);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  color: inherit;
}
a.feature-link:hover h3 { color: var(--gold); }
a.feature-link:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.feature-item .icon-box {
  width: 70px; height: 70px; margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
}
.feature-item h3 { margin-bottom: .5rem; }
.feature-item p { color: var(--gray-600); font-size: .92rem; }

/* ===== Long-form prose blocks (home sections) ===== */
.size-prose {
  max-width: 820px;
  margin: 3rem auto 0;
  padding: 0 .5rem;
}
.size-prose p {
  color: var(--gray-600);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 1.1rem;
}
.size-prose p:last-child { margin-bottom: 0; }
.size-prose strong { color: var(--navy); font-weight: 600; }

/* Brands section prose — white text for the dark navy image background */
.brands-prose {
  max-width: 820px;
  margin: 3rem auto 0;
  padding: 0 .5rem;
}
.brands-prose p {
  color: rgba(255,255,255,.92);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 1.1rem;
  text-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.brands-prose p:last-child { margin-bottom: 0; }
.brands-prose strong { color: var(--gold); font-weight: 600; }

/* ===== Bg variants ===== */
.bg-sand { background: var(--sand); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy p { color: rgba(255,255,255,.85); }

/* Home: Brand section image background Gradiente*/
#brands.bg-sand {
  background: linear-gradient(rgba(6,26,51,.12), rgba(6,26,51,.48)),
              url('../../images/fondo2000-09.jpg') center/cover no-repeat;
  color: var(--white);
}
#brands.bg-sand .section-title h2 {
  color: var(--white);
  text-shadow:
    -2px -2px 0 #0b2545,  2px -2px 0 #0b2545,
    -2px  2px 0 #0b2545,  2px  2px 0 #0b2545,
    -2px  0   0 #0b2545,  2px  0   0 #0b2545,
     0  -2px 0 #0b2545,   0   2px 0 #0b2545,
     0 4px 14px rgba(0,0,0,.35);
}
#brands.bg-sand .section-title p { color: rgba(255,255,255,.88); }

/* Home: Locations section — same image as Brands but NO gradient (pure turquoise) */
#locations.bg-sand {
  background: url('../../images/fondo2000-09.jpg') center/cover no-repeat;
}
#locations.bg-sand .section-title h2 {
  color: var(--white);
  text-shadow:
    -2px -2px 0 #0b2545,  2px -2px 0 #0b2545,
    -2px  2px 0 #0b2545,  2px  2px 0 #0b2545,
    -2px  0   0 #0b2545,  2px  0   0 #0b2545,
     0  -2px 0 #0b2545,   0   2px 0 #0b2545,
     0 4px 14px rgba(0,0,0,.35);
}
#locations.bg-sand .section-title p {
  color: rgba(255,255,255,.92);
  text-shadow: 0 1px 4px rgba(0,0,0,.35);
}

.bg-light { background: var(--gray-50); }

/* ===== Contact form ===== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info-box .item { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.contact-info-box .icon-circle {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.contact-info-box .item h4 { margin-bottom: .2rem; color: var(--navy); }
.contact-info-box .item p, .contact-info-box .item a {
  color: var(--gray-600); font-size: .95rem; display: block;
}
.contact-info-box .item a:hover {
  color: var(--gold); text-decoration: none;
}

.contact-form { background: var(--white); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.contact-form .form-row { margin-bottom: 1rem; }
.contact-form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; color: var(--gray-800); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: .7rem .9rem; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm); font-family: inherit; font-size: .95rem;
  transition: border-color .2s; background: var(--white);
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: 0; border-color: var(--gold);
}
.contact-form textarea { resize: vertical; min-height: 110px; }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-deep); color: rgba(255,255,255,.75);
  padding: 3rem 0 1.5rem; font-size: .9rem;
}
.site-footer h4 { color: var(--white); margin-bottom: 1rem; font-family: 'Inter', sans-serif; font-size: 1rem; letter-spacing: .5px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: .5rem; }
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem;
  text-align: center; font-size: .82rem; color: rgba(255,255,255,.55);
}
.footer-social { display: flex; gap: .8rem; margin-top: .8rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.footer-social a:hover { background: var(--gold); color: var(--navy); }

/* ===== Utility ===== */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.empty {
  padding: 3rem; text-align: center; color: var(--gray-600);
  background: var(--gray-50); border-radius: var(--radius);
}

/* ===== Whatsapp floating button ===== */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 99;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; box-shadow: var(--shadow-lg);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); color: var(--white); }
