/* ============================================
   MAG BAY FISHING FLEET — BOATS PAGE
   Vista de flota: tarjetas por embarcación +
   comparativa rápida. Datos de ejemplo.
   Autocontenido — no depende de styles.css
   ============================================ */

:root {
    --navy: #0a2342;
    --navy-deep: #061527;
    --navy-panel: rgba(255, 255, 255, 0.045);
    --navy-panel-border: rgba(255, 255, 255, 0.09);
    --brass: #c9a06c;
    --brass-strong: #a9793f;
    --white: #ffffff;
    --muted: rgba(255, 255, 255, 0.68);
    --muted-soft: rgba(255, 255, 255, 0.5);
    --ink: #1c2a33;

    --font-display: "Fraunces", serif;
    --font-body: "Work Sans", sans-serif;

    --radius: 6px;
    --container: 1180px;
    --header-h: 84px;
}

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

::-webkit-scrollbar {
    display: none;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    font-family: var(--font-body);
    color: var(--white);
    background: var(--navy-deep);
    line-height: 1.6;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.32s ease;
}

body.page-in {
    opacity: 1;
}

body.page-out {
    opacity: 0;
}

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

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

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

h1,
h2 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    color: var(--white);
}

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

.reveal {
    opacity: 0;
}

.section-inner {
    max-width: var(--container);
    margin: 0 auto;
}

.eyebrow {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--brass);
    margin-bottom: 0.7rem;
}

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
    white-space: nowrap;
}

.btn-lg {
    padding: 0.95rem 2.1rem;
    font-size: 0.98rem;
}

.btn-gold {
    background: var(--brass);
    color: var(--navy-deep);
    font-weight: 700;
}

.btn-gold:hover {
    background: var(--brass-strong);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(169, 121, 63, 0.35);
}

.btn-outline {
    border: 1.5px solid var(--navy-panel-border);
    color: var(--white);
}

.btn-outline:hover {
    border-color: var(--brass);
    color: var(--brass);
}

/* ============================================
   HEADER / FOOTER (mismo sistema que charters/reservar)
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: transparent;
    transition: background 0.4s ease, height 0.35s ease, box-shadow 0.4s ease;
}

.site-header.scrolled {
    background: rgba(6, 21, 39, 0.96);
    backdrop-filter: blur(8px);
    height: 68px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.header-inner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--white);
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-text strong {
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    color: var(--white);
}

.brand-text em {
    font-style: normal;
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    color: var(--brass);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.8rem, 1vw, 1.5rem);
  flex: 1;
  min-width: 0;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 0.3rem 0;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1.5px;
    background: var(--brass);
    transition: width 0.3s ease;
}

.main-nav a:hover {
    color: var(--white);
}

.main-nav a:hover::after {
    width: 100%;
}

.main-nav a.nav-active,
.mobile-nav a.nav-active {
    color: var(--brass);
}

.main-nav a.nav-active::after {
    width: 100%;
}

.btn_reservar {
    padding-top: 5px;
    padding-bottom: 5px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.3rem;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
}

.header-phone svg {
    width: 16px;
    height: 16px;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 24px;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 82vw);
    background: var(--navy-deep);
    z-index: 490;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    padding: 7rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.open {
    transform: translateX(0);
}

.mobile-nav a {
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 500;
}

.mobile-phone {
    color: var(--brass) !important;
}

.site-footer {
    background: var(--navy-deep);
    color: rgba(255, 255, 255, 0.75);
    padding-top: 4rem;
    border-top: 1px solid var(--navy-panel-border);
}

.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand p {
    margin: 1rem 0 1.3rem;
    font-size: 0.9rem;
    max-width: 340px;
}

.brand-text.light strong {
    color: var(--white);
}

.social-row {
    display: flex;
    gap: 0.9rem;
}

.social-row a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.social-row svg {
    width: 17px;
    height: 17px;
}

.social-row a:hover {
    background: var(--brass);
    border-color: var(--brass);
    color: var(--navy-deep);
}

.footer-col h5 {
    color: var(--white);
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    margin-bottom: 1.1rem;
}

.footer-col a,
.footer-col p {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.7rem;
}

.footer-col a:hover {
    color: var(--brass);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.4rem 1.5rem;
    text-align: center;
    font-size: 0.8rem;
}

/* ============================================
   VIDEO DE FONDO
   ============================================ */
.bg-video {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: var(--navy-deep);
}

.bg-video video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;        /* llena la pantalla recortando */
    object-position: center;  /* ajusta p. ej. "center 30%" para elegir qué parte se ve */
}

.bg-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(6, 21, 39, 0.75) 0%,
        rgba(6, 21, 39, 0.65) 50%,
        rgba(6, 21, 39, 0.85) 100%
    );
}

/* Ahorra batería/datos si el usuario pidió menos movimiento */
@media (prefers-reduced-motion: reduce) {
    .bg-video video {
        display: none;
    }
    .bg-video {
        background: var(--navy-deep) url('../img/charters-poster.jpg') center / cover no-repeat;
    }
}

/* ============================================
   PAGE HERO
   ============================================ */
.page-hero {
    padding: calc(var(--header-h) + 3rem) 1.5rem 2.6rem;
}

.page-hero .section-inner {
    padding: 0;
}

.page-hero-content {
    max-width: 760px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 1.2rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--brass);
}

.breadcrumb .sep {
    opacity: 0.5;
}

.breadcrumb .current {
    color: var(--brass);
    font-weight: 600;
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 0.9rem;
}

.page-hero h1 .accent {
    color: var(--brass);
}

.page-hero p.page-hero-lead {
    color: var(--muted);
    font-size: 0.98rem;
    max-width: 620px;
}

.page-wrap {
    padding: 0 1.5rem 6rem;
}

/* ============================================
   TARJETAS DE BARCOS
   ============================================ */
.boats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 1.6rem;
    margin-bottom: 4rem;
}

.boat-card {
    background: var(--navy-panel);
    border: 1px solid var(--navy-panel-border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.boat-card:hover {
    border-color: rgba(201, 160, 108, 0.35);
    transform: translateY(-3px);
}

.boat-card-photo {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.boat-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.boat-card:hover .boat-card-photo img {
    transform: scale(1.04);
}

.boat-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--brass);
    color: var(--navy-deep);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
}

.boat-card-body {
    padding: 1.6rem 1.7rem 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    flex: 1;
}

.boat-card-body h2 {
    font-size: 1.4rem;
}

.boat-card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.boat-card-specs span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--brass);
    font-weight: 600;
}

.boat-card-desc {
    color: var(--muted);
    font-size: 0.9rem;
}

.boat-card-equip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
    padding-top: 0.8rem;
    border-top: 1px dashed var(--navy-panel-border);
}

.boat-card-equip li {
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.85);
    padding-left: 1.1rem;
    position: relative;
}

.boat-card-equip li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--brass);
}

.boat-card-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: auto;
    padding-top: 0.6rem;
}

/* ============================================
   COMPARATIVA RÁPIDA
   ============================================ */
.compare-block {
    margin-bottom: 4rem;
}

.compare-block h2 {
    font-size: 1.5rem;
    margin-bottom: 1.4rem;
}

.compare-table-wrap {
    background: var(--navy-panel);
    border: 1px solid var(--navy-panel-border);
    border-radius: var(--radius);
    overflow-x: auto;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.compare-table th {
    text-align: left;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brass);
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--navy-panel-border);
}

.compare-table td {
    padding: 1rem 1.2rem;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid var(--navy-panel-border);
}

.compare-table tr:last-child td {
    border-bottom: none;
}

.compare-boat-name {
    font-weight: 700;
    color: var(--white);
}

/* ============================================
   CTA FINAL
   ============================================ */
.final-cta {
    text-align: center;
    padding: 3.5rem 1.5rem;
    background: var(--navy-panel);
    border: 1px solid var(--navy-panel-border);
    border-radius: var(--radius);
}

.final-cta h2 {
    margin-bottom: 0.5rem;
    font-size: 1.6rem;
}

.final-cta p {
    color: var(--muted);
    margin-bottom: 1.6rem;
}

/* ============================================
   WHATSAPP FLOTANTE + POPUP
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 1.6rem;
    right: 1.6rem;
    z-index: 600;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s ease;
}

.whatsapp-float:hover {
    transform: scale(1.08);
}

.whatsapp-float svg {
    width: 34px;
    height: 34px;
    position: relative;
    z-index: 2;
}

.wa-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25d366;
    animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.7);
        opacity: 0;
    }
}

.wa-popup {
    position: fixed;
    bottom: 5.8rem;
    right: 1.6rem;
    z-index: 599;
    width: 280px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(6, 21, 39, 0.28);
    overflow: hidden;
    display: none;
    opacity: 0;
    color: var(--ink);
}

.wa-popup.show {
    display: block;
}

.wa-popup-close {
    position: absolute;
    top: 0.6rem;
    right: 0.7rem;
    z-index: 2;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wa-popup-header {
    background: var(--navy);
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--white);
}

.wa-popup-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wa-popup-avatar svg {
    width: 18px;
    height: 18px;
}

.wa-popup-header strong {
    display: block;
    font-size: 0.88rem;
}

.wa-popup-status {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.wa-popup-status i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7cffb2;
    display: inline-block;
}

.wa-popup-body {
    background: #f7f5f0;
    padding: 1rem 1.1rem 0.6rem;
}

.wa-bubble {
    background: var(--white);
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
    font-size: 0.82rem;
    color: var(--ink);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(10, 35, 66, 0.06);
}

.wa-bubble-time {
    display: block;
    text-align: right;
    font-size: 0.7rem;
    color: #5b6b76;
    margin-bottom: 0.3rem;
}

.wa-popup-input {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.1rem;
    background: var(--white);
    border-top: 1px solid rgba(10, 35, 66, 0.08);
    font-size: 0.82rem;
    color: #5b6b76;
    font-weight: 500;
}

.wa-popup-input svg {
    color: var(--brass-strong);
    flex-shrink: 0;
}

.wa-popup-input:hover {
    background: #f7f5f0;
}

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

    .header-phone {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

@media (max-width: 640px) {
    .page-hero {
        padding: calc(var(--header-h) + 2.2rem) 1.2rem 2rem;
    }

    .page-wrap {
        padding: 0 1.2rem 4rem;
    }

    .boat-card-equip {
        grid-template-columns: 1fr;
    }

    .boat-card-actions {
        flex-direction: column;
    }

    .boat-card-actions .btn {
        width: 100%;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 1.1rem;
        right: 1.1rem;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }

    .wa-popup {
        width: calc(100vw - 2.4rem);
        right: 1.2rem;
        bottom: 5.2rem;
    }
}


.language-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.language-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.language-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
}

.language-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    background: rgba(13, 13, 13, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.85rem;
    /* min-width: 180px; */
    padding: 0.35rem;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.25);
    z-index: 50;
}

.language-menu a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0.8rem;
    color: #fff;
    text-decoration: none;
    border-radius: 0.65rem;
    transition: background 0.2s ease;
}

.language-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.lang-flag {
    font-size: 1rem;
}


@media (max-width: 560px) {
    .btn_reservar {
        padding: 0.4rem 0.6rem;
        font-size: 0.64rem;
    }
}

@media (max-width: 991px) {
  /* 1. Ajuste del contenedor general para evitar que los botones se encimen */
  .header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px; /* Espacio uniforme entre teléfono, reserva, menú e idioma */
  }

  /* 2. Asegurar que el selector de idioma sea visible y tenga buen tamaño táctil */
  .language-switcher {
    display: flex !important;
    width: auto !important;
  }

  .language-toggle {
    display: flex !important;
    align-items: center !important;
    gap: 5px;
    width: auto !important;
    min-width: 44px; /* Tamaño mínimo recomendado para pantallas táctiles */
    padding: 5px 8px !important;
  }

  /* 3. Forzar que la bandera y el texto aparezcan (estaban ocultos en móvil) */
  .language-toggle .lang-flag,
  .language-toggle #current-lang-label {
    display: inline-block !important;
    visibility: visible !important;
  }
}
