/* ==========================
   VARIABLES Y RESET
========================== */
:root {
  --bg:           #030c17;
  --bg-card:      #071829;
  --bg-elev:      #0a2040;
  --bg-input:     #0d2545;
  --border:       #153557;
  --border-bright:#1d5a9e;
  --ocean:        #0ea5e9;
  --ocean-bright: #38bdf8;
  --ocean-glow:   rgba(14, 165, 233, 0.12);
  --gold:         #f0b429;
  --gold-dim:     #c9952a;
  --text:         #dff0fb;
  --text-muted:   #6fa8c9;
  --text-dim:     #3e6e8a;
  --green:        #22c55e;
  --red:          #f87171;
  --sans:         'Inter', 'Segoe UI', system-ui, sans-serif;
  --radius:       12px;
  --radius-sm:    8px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Reset de links y botones: evitar estilos por defecto del navegador */
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
}

.hidden { display: none !important; }

/* ==========================
   HEADER
========================== */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(3, 12, 23, 0.93);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

/* BRAND */
.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo {
  width: 120px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 0 24px rgba(240, 180, 41, 0.25);
}

.brand-tagline {
  font-size: clamp(0.6rem, 1.2vw, 0.72rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ocean-bright);
  font-weight: 500;
}

/* Botón "Dejar Reseña" */
.btn-review {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--gold);
  color: #000;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.25s ease, transform 0.2s ease;
}
.btn-review:hover {
  background: #ffc933;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .brand { gap: 10px; }
  .logo  { width: 80px; }
  .brand-name { font-size: 1.4rem; letter-spacing: 0.08em; }
  .brand-tagline { font-size: 0.6rem; }
  .btn-review { padding: 9px 14px; font-size: 12px; }
}

@media (max-width: 480px) {
  .header { padding: 10px 16px; }
  .brand-tagline { display: none; }
}

/* ==========================
   HERO
========================== */
.hero {
  position: relative;
  padding: 64px 24px 72px;
  text-align: center;
  background: linear-gradient(160deg, #041226 0%, #071f3d 50%, #040e1e 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,233,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,180,41,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ocean-bright);
  margin-bottom: 20px;
}
.hero-tag::before, .hero-tag::after {
  content: '';
  width: 28px; height: 1px;
  background: var(--ocean);
  opacity: 0.6;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.hero h1 .accent { color: var(--gold); }
.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--ocean);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.btn-hero:hover {
  background: var(--ocean-bright);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.35);
}

/* ==========================
   CATÁLOGO
========================== */
.catalog-section {
  padding: 64px 24px 80px;
  max-width: 1320px;
  margin: 0 auto;
}
.catalog-header {
  text-align: center;
  margin-bottom: 48px;
}
.catalog-header h2 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.catalog-header h2 span { color: var(--ocean-bright); }
.catalog-header p { color: var(--text-muted); font-size: 15px; }

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) { .grid-container { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  {
  .grid-container { grid-template-columns: 1fr; }
  .catalog-section { padding: 40px 16px 60px; }
}

/* ==========================
   TARJETA DE BOTE
========================== */
.catalog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.catalog-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(14,165,233,0.1);
}
.catalog-card::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.catalog-card:hover::before { opacity: 1; }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border);
}
.product-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.boat-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--gold);
}

/* ==========================
   CARRUSEL
========================== */
.carousel {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #010a12;
}
.carousel img, .video-wrapper {
  width: 100%; height: 240px;
  object-fit: cover;
  display: none;
}
.carousel img.active, .video-wrapper.active { display: block; }

.carousel-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 18px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  z-index: 5; padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel-btn:hover {
  background: var(--ocean);
  border-color: var(--ocean);
  transform: translateY(-50%) scale(1.1);
}
.prev { left: 10px; }
.next { right: 10px; }

.video-wrapper { position: relative; }
.video-wrapper video { width: 100%; height: 240px; object-fit: cover; display: block; }
.play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 52px;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 2px 16px rgba(0,0,0,0.8);
  cursor: pointer; z-index: 2;
  transition: opacity 0.2s ease;
}
.video-wrapper.playing .play-overlay { display: none; }

/* ==========================
   INFO Y ACCIONES
========================== */
.boat-body {
  padding: 16px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.product-info {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-info li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-muted);
}
.info-icon { font-size: 15px; flex-shrink: 0; opacity: 0.8; }

.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}
.btn-whatsapp {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 14px;
  background: #22c55e; color: #fff;
  font-size: 13px; font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none; border: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-whatsapp:hover { background: #16a34a; transform: translateY(-1px); }

.toggle-reviews {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 14px;
  background: transparent; color: var(--ocean-bright);
  font-size: 13px; font-weight: 600;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.toggle-reviews:hover {
  background: var(--ocean-glow);
  border-color: var(--ocean);
}

/* Contador de reseñas */
.review-count {
  font-size: 11px;
  font-weight: 700;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid var(--border-bright);
  border-radius: 100px;
  padding: 1px 7px;
  color: var(--ocean-bright);
  transition: background 0.2s ease;
}
.toggle-reviews:hover .review-count {
  background: rgba(14, 165, 233, 0.28);
}

/* ==========================
   FOOTER
========================== */
.page-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 48px 24px;
  margin-top: 24px;
}
.footer-content {
  max-width: 900px; margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px; align-items: start;
}
@media (max-width: 640px) {
  .footer-content { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .social-links { align-items: center; }
}
.social-links { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.social-instruction {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim); font-weight: 600;
}
.social-links a img {
  width: 42px; height: 42px;
  transition: transform 0.25s ease, filter 0.25s ease;
  filter: drop-shadow(0 0 6px rgba(37,211,102,0.3));
}
.social-links a img:hover {
  transform: scale(1.12);
  filter: drop-shadow(0 0 12px rgba(37,211,102,0.6));
}
.item-details { display: flex; gap: 48px; flex-wrap: wrap; }
.included-items, .apart-items { min-width: 160px; }
.included-items h3, .apart-items h3 {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ocean-bright); font-weight: 700;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.included-items h3::after, .apart-items h3::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.included-items ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.included-items ul li, .apart-text {
  font-size: 14px; color: var(--text-muted);
  display: flex; align-items: center; gap: 8px;
}
.included-items ul li::before { content: '✓'; color: var(--green); font-weight: 700; font-size: 12px; }
.apart-text { margin-bottom: 6px; }
.apart-text::before { content: '→'; color: var(--gold); font-weight: 700; }
.footer-bottom {
  max-width: 900px; margin: 28px auto 0;
  padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  font-size: 12px; color: var(--text-dim); letter-spacing: 0.02em;
}

/* ==========================
   ÍCONOS FLOTANTES
========================== */
.floating-icons {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.floating-icons .icon {
  position: absolute; opacity: 0.04;
  width: 70px; height: auto;
  user-select: none; filter: invert(1);
}
.top-left     { top: 8%;    left: 16px; }
.mid-left     { top: 42%;   left: 20px; }
.bottom-left  { bottom: 12%;left: 24px; }
.top-right    { top: 12%;   right: 16px;}
.mid-right    { top: 47%;   right: 20px;}
.bottom-right { bottom: 16%;right: 24px;}

/* ==========================
   MODALES BASE (.ol-modal)
========================== */
.ol-modal {
  position: fixed; inset: 0; z-index: 600;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.25s ease;
}
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }

.ol-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(2, 8, 18, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ol-modal-content {
  position: relative; z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 16px;
  width: 100%;
  max-height: 90vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 32px 72px rgba(0,0,0,0.75), 0 0 0 1px rgba(14,165,233,0.08);
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalSlideUp {
  from { transform: translateY(20px) scale(0.97); opacity: 0.6; }
  to   { transform: translateY(0)    scale(1);    opacity: 1;   }
}

.ol-modal-sm { max-width: 500px; }
.ol-modal-lg { max-width: 620px; }

.ol-modal-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 16px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.ol-modal-title {
  font-size: 20px; font-weight: 700;
  letter-spacing: -0.02em; color: var(--text);
  line-height: 1.2;
}
.ol-modal-subtitle {
  font-size: 13px; color: var(--text-muted);
  margin-top: 4px; line-height: 1.5;
}
.ol-modal-close {
  width: 34px; height: 34px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted); cursor: pointer;
  transition: all 0.2s ease;
}
.ol-modal-close:hover {
  background: rgba(248, 113, 113, 0.12);
  border-color: var(--red);
  color: var(--red);
}

.ol-modal-body {
  padding: 22px 24px 24px;
  overflow-y: auto;
  flex: 1;
}

/* ==========================
   FORMULARIO DE RESEÑA
========================== */
#review-form { display: flex; flex-direction: column; gap: 18px; }

.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label {
  font-size: 12px; font-weight: 600;
  color: var(--text-muted); letter-spacing: 0.05em; text-transform: uppercase;
}
.form-group select,
.form-group input,
.form-group textarea {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--sans); font-size: 14px;
  padding: 11px 14px; border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none; width: 100%;
}
.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--ocean);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.12);
}
.form-group select option { background: var(--bg-card); }
.form-group textarea { resize: vertical; min-height: 96px; }

/* Estrellas */
.stars-row { display: flex; gap: 8px; padding: 2px 0; }
.stars-row i {
  font-size: 28px; color: var(--border-bright);
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}
.stars-row i:hover { transform: scale(1.2); }
.stars-row i.fas { color: var(--gold); }

/* Error */
.rf-error {
  font-size: 13px; color: var(--red);
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

/* Submit */
.btn-submit {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px;
  background: var(--ocean); color: #fff;
  font-size: 14px; font-weight: 700;
  border: none; border-radius: var(--radius-sm);
  cursor: pointer; letter-spacing: 0.02em;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.btn-submit:hover {
  background: var(--ocean-bright);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(14,165,233,0.35);
}

/* Vista éxito */
.rf-success {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; gap: 12px;
  padding: 24px 0;
}
.rf-success-icon {
  font-size: 52px; color: var(--green);
  line-height: 1;
  filter: drop-shadow(0 0 16px rgba(34, 197, 94, 0.4));
}
.rf-success h3 {
  font-size: 22px; font-weight: 700; color: var(--text);
}
.rf-success p { font-size: 14px; color: var(--text-muted); }

/* ==========================
   VISOR DE RESEÑAS (modal 2)
========================== */
.rv-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 12px;
  transition: border-color 0.2s ease;
}
.rv-card:last-child { margin-bottom: 0; }
.rv-card:hover { border-color: var(--border-bright); }

.rv-header {
  display: flex; align-items: center;
  justify-content: space-between; gap: 10px;
  margin-bottom: 6px; flex-wrap: wrap;
}
.rv-stars { color: var(--gold); font-size: 13px; letter-spacing: 2px; }
.rv-stars .fas { color: var(--gold); }
.rv-stars .far { color: var(--border-bright); }
.rv-date { font-size: 11px; color: var(--text-dim); }
.rv-author { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.rv-text { font-size: 13px; color: var(--text-muted); line-height: 1.65; }

/* Estado vacío */
.rvm-empty {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  padding: 32px 16px; gap: 10px;
}
.rvm-empty-icon { font-size: 44px; opacity: 0.4; line-height: 1; }
.rvm-empty p { font-size: 15px; color: var(--text-muted); }
.rvm-empty strong { color: var(--text); }
.rvm-empty-sub { font-size: 13px; color: var(--text-dim) !important; }

.btn-write-first {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 8px;
  padding: 10px 20px;
  background: var(--gold); color: #000;
  font-size: 13px; font-weight: 700;
  border: none; border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-write-first:hover { background: #ffc933; transform: translateY(-1px); }
