:root {
  --navy: #0b2942;
  --navy-dark: #071b2c;
  --sand: #e8dcc3;
  --sand-light: #f6f1e6;
  --white: #ffffff;
  --copper: #b5763f;
  --copper-dark: #8f5c30;
  --text: #1c2b36;
  --text-light: #5c6a75;
  --whatsapp: #2f7a5c;
  --whatsapp-dark: #245f47;
  --radius: 6px;
  --radius-sm: 4px;
  --max-width: 1100px;
  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Playfair Display", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
}

h1, h2 {
  font-family: var(--font-heading);
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 0.5em;
}

h2 {
  font-size: 1.7rem;
}

p {
  margin: 0 0 1em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

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

/* Barra superior */
.top-bar {
  background: var(--navy-dark);
  color: var(--sand-light);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 20px;
  gap: 12px;
}

.top-bar-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sand-light);
  font-size: 0.8rem;
  font-weight: 600;
}

/* Header */
.header {
  background: var(--white);
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.lang-toggle {
  display: flex;
  gap: 6px;
}

.lang-btn {
  background: none;
  border: none;
  padding: 2px;
  border-radius: 3px;
  cursor: pointer;
  line-height: 0;
  opacity: 0.55;
}

.lang-btn.active,
.lang-btn:hover {
  opacity: 1;
}

.lang-btn svg {
  display: block;
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
}

.btn-call {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-outline {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--sand);
  padding: 12px 18px;
  font-size: 0.9rem;
}

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

.btn-full {
  width: 100%;
}

.cta-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Hero minimalista, sin foto */
.hero-minimal {
  background: var(--white);
}

.hero-minimal-content {
  padding: 56px 20px 44px;
  text-align: center;
}

.hero-kicker {
  margin: 0 0 0.8em;
  font-size: 0.75rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 600;
}

.hero-minimal-content h1 {
  font-size: 2.4rem;
  letter-spacing: 1.5px;
  margin-bottom: 0;
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: var(--sand);
  margin: 18px auto;
}

.hero-minimal-content .hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 420px;
  margin: 0 auto;
}

/* Foto + declaración de servicio */
.brand-photo img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.brand-statement {
  background: var(--navy);
  color: var(--sand-light);
  text-align: center;
  padding: 40px 0;
}

.brand-statement-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(246, 241, 230, 0.12);
  color: var(--sand-light);
  margin-bottom: 16px;
}

.brand-statement p {
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
}

/* Contacto WhatsApp */
.contact-section {
  padding: 36px 0;
  background: var(--sand-light);
}

.contact-section .cta-group {
  max-width: 320px;
  margin: 0 auto;
}

/* Search section */
.search-section {
  background: var(--sand-light);
  padding: 40px 0;
}

.search-section h2 {
  text-align: center;
}

.search-form {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 600;
}

.form-group input,
.form-group select {
  padding: 12px 14px;
  border: 1px solid #d7cfbd;
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--white);
  color: var(--text);
}

/* Boats */
.boats-section {
  padding: 50px 0;
}

.boats-section h2,
.trust-section h2 {
  text-align: center;
  margin-bottom: 1em;
}

.boats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.boat-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--sand);
  box-shadow: 0 2px 6px rgba(11, 41, 66, 0.06);
  display: flex;
  flex-direction: column;
}

.boat-gallery {
  position: relative;
}

.boat-gallery img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(7, 27, 44, 0.55);
  color: var(--white);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-arrow:hover {
  background: rgba(7, 27, 44, 0.8);
}

.gallery-prev {
  left: 10px;
}

.gallery-next {
  right: 10px;
}

.gallery-counter {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(7, 27, 44, 0.6);
  color: var(--white);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.boat-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.boat-card h3 {
  margin: 0;
  font-family: var(--font-heading);
  color: var(--navy);
  font-weight: 600;
  font-size: 1.3rem;
}

.boat-ribbon {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--copper);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
}

.boat-specs {
  display: flex;
  gap: 16px;
  margin: 0;
  color: var(--text-light);
  font-size: 0.88rem;
}

.boat-specs span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.boat-price-from {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-light);
}

.boat-price-from strong {
  font-family: var(--font-heading);
  color: var(--copper-dark);
  font-size: 1rem;
}

.boat-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.boat-meta {
  font-size: 0.9rem;
  color: var(--text-light);
}

.boat-desc {
  font-size: 0.92rem;
  color: var(--text);
  margin: 4px 0 8px;
}

.boat-price {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.season-pricing {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 6px 0 10px;
  padding: 12px;
  background: var(--sand-light);
  border-radius: var(--radius);
}

.season-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.season-label {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 600;
}

.season-price {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--copper-dark);
  font-size: 1.1rem;
}

.season-price small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--text-light);
}

.boat-extra {
  font-size: 0.85rem;
  color: var(--text);
  margin: 0 0 4px;
}

.boat-note {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--text-light);
  margin: 0 0 10px;
}

.boat-details-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--navy);
  margin: 16px 0 8px;
}

.boat-details-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px 14px;
}

.boat-details-list li {
  font-size: 0.82rem;
  color: var(--text);
  position: relative;
  padding-left: 14px;
}

.boat-details-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--navy);
}

.boat-extras-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.boat-extras-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text);
  border-bottom: 1px dashed var(--sand);
  padding-bottom: 4px;
}

.boat-extras-list li strong {
  color: var(--navy);
}


/* Trust */
.trust-section {
  background: var(--navy);
  color: var(--white);
  padding: 50px 0;
}

.trust-section h2 {
  color: var(--white);
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  text-align: center;
}

.trust-item {
  padding-top: 18px;
  border-top: 1px solid rgba(246, 241, 230, 0.25);
}

.trust-item p {
  margin: 0;
  color: var(--sand-light);
  font-family: var(--font-heading);
  font-size: 1.05rem;
}

/* CTA final */
.cta-final {
  padding: 50px 0;
  text-align: center;
  background: var(--sand-light);
}

.cta-final .cta-group {
  max-width: 320px;
  margin: 0 auto;
}

/* Footer */
.footer {
  background: var(--navy-dark);
  color: var(--sand-light);
  padding: 30px 0 90px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
  font-size: 0.9rem;
}

.footer-inner .brand {
  color: var(--white);
}

.footer-link {
  color: var(--sand-light);
}

.footer-rights {
  color: #8fa1ad;
  font-size: 0.8rem;
}

/* Floating WhatsApp button */
.floating-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: var(--whatsapp);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.22);
  z-index: 30;
}

/* Desktop enhancements */
@media (min-width: 768px) {
  .hero-minimal-content h1 {
    font-size: 3.4rem;
  }

  .hero-minimal-content {
    padding: 80px 20px 64px;
  }

  .brand-photo img {
    height: 380px;
  }

  .cta-group {
    flex-direction: row;
    justify-content: center;
  }

  .contact-section .cta-group,
  .cta-final .cta-group {
    max-width: none;
  }

  .btn {
    width: auto;
  }

  .search-form {
    max-width: 720px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
  }

  .search-form .form-group {
    flex: 1 1 180px;
  }

  .search-form .btn-full {
    flex: 1 1 100%;
  }

  .boats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-inner {
    flex-direction: row;
    justify-content: center;
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .boats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .boat-card-actions .btn {
    flex: 1;
  }
}

/* Modal de ficha de barco */
.boat-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
}

.boat-modal.open {
  display: block;
}

.boat-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 27, 44, 0.7);
}

.boat-modal-content {
  position: relative;
  background: var(--white);
  max-width: 720px;
  margin: 24px auto;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border-radius: var(--radius);
}

.boat-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(7, 27, 44, 0.6);
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
}

.boat-gallery-modal img {
  height: 260px;
}

.boat-modal-info {
  padding: 20px;
}

.boat-modal-info h3 {
  margin: 0;
  font-family: var(--font-heading);
  color: var(--navy);
  font-size: 1.4rem;
}

@media (min-width: 640px) {
  .boat-gallery-modal img {
    height: 380px;
  }
}
