/* ==========================================================================
   FAJARDO BOATS · GALICIA
   Sistema de diseño y estilos responsive
   ========================================================================== */

:root {
  --bg-sand: #F4F1EA;
  --bg-card: #E8E2D5;
  --bg-panel: #FAF8F5;
  --bg-navy: #111D28;
  --bg-deep: #0B141C;
  --bg-dark-surface: #172430;
  
  --border-light: #DCD4C4;
  --border-dark: #233444;
  --border-input: #CEC5B3;
  
  --text-dark: #111D28;
  --text-muted: #616F7D;
  --text-body: #34414D;
  --text-light: #F4F1EA;
  --text-dim: #95A3B0;
  
  --gold-accent: #9E7948;
  --gold-light: #CCA873;
  --gold-hover: #B88E55;
  --whatsapp-color: #25D366;
  
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --transition-smooth: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 2px 8px rgba(17, 29, 40, 0.05);
  --shadow-md: 0 8px 24px rgba(17, 29, 40, 0.08);
  --shadow-lg: 0 16px 40px rgba(17, 29, 40, 0.12);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg-sand);
  color: var(--text-dark);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--gold-accent);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition-smooth);
}

input, textarea, select {
  font-family: inherit;
  color: inherit;
  font-size: 16px; /* Evita zoom automático en iOS */
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 241, 234, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-smooth);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--text-dark);
  flex-shrink: 0;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.01em;
  font-weight: 400;
}

.brand-badge {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-accent);
  font-weight: 600;
  padding: 2px 7px;
  border: 1px solid rgba(158, 121, 72, 0.35);
  border-radius: 2px;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
  align-items: center;
}

.nav-links a {
  position: relative;
  padding: 4px 0;
  color: var(--text-dark);
}

.nav-links a:hover {
  color: var(--gold-accent);
}

.nav-cta-btn {
  background: var(--bg-navy) !important;
  color: var(--bg-sand) !important;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.nav-cta-btn:hover {
  background: #203547 !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--text-dark);
  padding: 8px;
  cursor: pointer;
  line-height: 1;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: min(88vh, 760px);
  background: var(--bg-dark-surface);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-bg-container {
  position: absolute;
  inset: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  filter: brightness(0.92);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 20, 28, 0.25) 0%,
    rgba(11, 20, 28, 0.45) 45%,
    rgba(11, 20, 28, 0.88) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 96px 28px 56px;
  color: var(--text-light);
}

.hero-eyebrow {
  margin: 0 0 16px;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
}

.hero-title {
  margin: 0 0 20px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(44px, 6.8vw, 98px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  max-width: 980px;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

.hero-desc {
  margin: 0 0 32px;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
  color: rgba(244, 241, 234, 0.92);
  max-width: 720px;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-primary-light {
  background: var(--bg-sand);
  color: var(--text-dark);
  padding: 16px 28px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.btn-primary-light:hover {
  background: #ffffff;
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.btn-outline-light {
  border: 1px solid rgba(244, 241, 234, 0.7);
  color: var(--text-light);
  padding: 15px 26px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.btn-outline-light:hover {
  background: rgba(244, 241, 234, 0.15);
  border-color: #fff;
  transform: translateY(-1px);
}

.btn-primary-dark {
  background: var(--bg-navy);
  color: var(--bg-sand);
  padding: 16px 28px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary-dark:hover {
  background: #203547;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(17, 29, 40, 0.25);
}

.btn-whatsapp {
  background: var(--whatsapp-color);
  color: #fff;
  padding: 15px 26px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.btn-whatsapp:hover {
  background: #1ebc59;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

/* ==========================================================================
   Trust Attributes Bar (Bajo Hero)
   ========================================================================== */

.trust-bar {
  background: #EBE5D8;
  border-bottom: 1px solid var(--border-light);
}

.trust-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.trust-item {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid rgba(220, 212, 196, 0.7);
}

.trust-item:last-child {
  border-right: none;
}

.trust-title {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.1;
  color: var(--text-dark);
}

.trust-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}

/* ==========================================================================
   Models Section (Gama 870: Extreme & Confort)
   ========================================================================== */

.models-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 28px 72px;
}

.section-eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-accent);
  font-weight: 600;
}

.section-heading {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 1.05;
}

.section-intro-text {
  margin: 16px 0 0;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-body);
  max-width: 680px;
  text-wrap: pretty;
}

.models-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
  gap: 48px 36px;
}

.model-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.model-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.model-media-wrap {
  aspect-ratio: 16/10;
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}

.model-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.model-card:hover .model-media-wrap img {
  transform: scale(1.04);
}

.model-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(17, 29, 40, 0.88);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 12px;
  backdrop-filter: blur(6px);
  font-weight: 600;
}

.model-body {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.model-name {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.1;
}

.model-desc {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
  flex-grow: 1;
}

.model-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.model-tag {
  background: rgba(158, 121, 72, 0.1);
  color: var(--gold-accent);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 2px;
  letter-spacing: 0.04em;
}

.model-action-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.model-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 18px 0;
  padding: 16px;
  background: rgba(232, 226, 213, 0.45);
  border: 1px solid var(--border-light);
  border-radius: 2px;
}

.model-spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.model-spec-key {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 600;
}

.model-spec-val {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
}

.model-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-body);
}

.model-feature-li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  line-height: 1.5;
}

.model-feature-li::before {
  content: '✓';
  color: var(--gold-accent);
  font-weight: bold;
  font-size: 13px;
  flex-shrink: 0;
}

.model-optional-box {
  margin: 16px 0 24px;
  padding: 14px 18px;
  background: #FAF6ED;
  border-left: 3px solid var(--gold-accent);
  font-size: 13.5px;
  color: var(--text-body);
  line-height: 1.55;
}

.model-btn-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  margin-top: auto;
}

.btn-secondary-outline {
  border: 1px solid var(--border-input);
  background: transparent;
  color: var(--text-dark);
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary-outline:hover {
  border-color: var(--bg-navy);
  background: rgba(17, 29, 40, 0.05);
}

/* Modal for detailed specs */
.spec-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(11, 20, 28, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.spec-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.spec-modal-dialog {
  background: var(--bg-sand);
  border: 1px solid var(--border-light);
  max-width: 840px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 44px 36px;
  border-radius: 2px;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: modalSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlide {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.spec-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-dark);
  padding: 6px;
}

.modal-section-title {
  margin: 28px 0 12px;
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 8px;
}

.editorial-note {
  margin-top: 28px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  font-style: italic;
}

/* ==========================================================================
   Real Photo Gallery Showcase (4 Real Boat Photos)
   ========================================================================== */

.gallery-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 28px 96px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  cursor: zoom-in;
  border-radius: 2px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(180deg, transparent 0%, rgba(11, 20, 28, 0.9) 100%);
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-item-info {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item-caption {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.2;
}

.gallery-item-sub {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 4px;
}

/* Layout distribution for 4 real photos */
.gallery-span-7 {
  grid-column: span 7;
  height: 380px;
}

.gallery-span-5 {
  grid-column: span 5;
  height: 380px;
}

.gallery-span-6 {
  grid-column: span 6;
  height: 360px;
}

/* ==========================================================================
   Shipyard Section (Historia, Oficio y Familia)
   ========================================================================== */

.shipyard-section {
  background: var(--bg-panel);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.shipyard-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 28px;
}

.shipyard-header-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 56px;
  align-items: center;
  margin-bottom: 64px;
}

.shipyard-quote {
  margin: 32px 0 0;
  padding: 24px 28px;
  background: #EDE6D8;
  border-left: 3px solid var(--gold-accent);
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.45;
  color: var(--text-dark);
}

.shipyard-photo-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-card);
  border-radius: 2px;
  box-shadow: var(--shadow-md);
}

.shipyard-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 36px;
  margin-top: 48px;
  border-top: 1px solid var(--border-light);
  padding-top: 48px;
}

.pillar-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pillar-number {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--gold-accent);
}

.pillar-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
}

.pillar-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-body);
}

/* ==========================================================================
   Philosophy Section ("El detalle también se nota con el tiempo")
   ========================================================================== */

.philosophy-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 28px;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 36px;
  margin-top: 56px;
}

.philosophy-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-radius: 2px;
  transition: transform 0.25s ease;
}

.philosophy-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.philosophy-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-accent);
  font-weight: 600;
}

.philosophy-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 30px;
  line-height: 1.15;
}

.philosophy-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-body);
}

/* ==========================================================================
   Motorizaciones Section (Navy Background)
   ========================================================================== */

.engines-section {
  background: var(--bg-navy);
  color: var(--text-light);
}

.engines-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 56px;
  align-items: center;
}

.engines-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 32px 0 36px;
}

.engine-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 16px;
  color: var(--text-dim);
}

.engine-item::before {
  content: '—';
  color: var(--gold-light);
  font-weight: bold;
}

/* ==========================================================================
   Contact Section & Form (No DB, 100% Client-side + Mailto + WhatsApp)
   ========================================================================== */

.contact-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 64px;
  align-items: start;
}

.contact-direct-card {
  background: #EDE6D8;
  border: 1px solid var(--border-light);
  padding: 28px;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-navy);
  color: var(--bg-sand);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 16px;
  flex-shrink: 0;
}

.contact-form-box {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  border-radius: 2px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-input);
  background: #ffffff;
  font-size: 16px;
  outline: none;
  transition: var(--transition-smooth);
  border-radius: 2px;
}

.form-input:focus {
  border-color: var(--bg-navy);
  box-shadow: 0 0 0 3px rgba(17, 29, 40, 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-feedback {
  display: none;
  padding: 24px;
  background: #E8F5E9;
  border: 1px solid #A5D6A7;
  color: #1B5E20;
  margin-top: 20px;
  border-radius: 2px;
}

.form-feedback.visible {
  display: block;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--bg-deep);
  color: #B5C1CB;
  border-top: 1px solid var(--border-dark);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 28px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 40px;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--text-light);
}

.footer-col-title {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 16px;
  display: block;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 28px 36px;
  border-top: 1px solid #1E2D3B;
  font-size: 13px;
  color: #7D8E9E;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* ==========================================================================
   Lightbox Modal
   ========================================================================== */

.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(11, 20, 28, 0.95);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 24px;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

.lightbox-caption {
  margin-top: 16px;
  color: var(--text-light);
  font-family: var(--font-serif);
  font-size: 22px;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  color: #fff;
  font-size: 34px;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  padding: 8px;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  background: rgba(17, 29, 40, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.lightbox-nav-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev { left: -64px; }
.lightbox-next { right: -64px; }

/* ==========================================================================
   Floating Action Bar (Mobile Priority)
   ========================================================================== */

.mobile-fab-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(244, 241, 234, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-light);
  padding: 10px 16px;
  gap: 12px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

.fab-btn {
  flex: 1;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

/* ==========================================================================
   Responsive Adaptations (Tablet & Mobile)
   ========================================================================== */

@media (max-width: 960px) {
  .gallery-span-7,
  .gallery-span-5,
  .gallery-span-6 {
    grid-column: span 12;
    height: 320px;
  }
  
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

@media (max-width: 820px) {
  .header-container {
    padding: 14px 20px;
  }
  
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #F4F1EA;
    border-bottom: 1px solid var(--border-light);
    padding: 24px 20px;
    gap: 18px;
    box-shadow: var(--shadow-md);
  }
  
  .hero-section {
    min-height: 85vh;
  }
  
  .hero-content {
    padding: 64px 20px 48px;
  }
  
  .models-section,
  .gallery-section,
  .shipyard-container,
  .philosophy-section,
  .engines-container,
  .contact-section {
    padding: 64px 20px;
  }
  
  .contact-form-box {
    padding: 28px 20px;
  }
  
  /* Show Mobile Floating Bar */
  .mobile-fab-bar {
    display: flex;
  }
  
  body {
    padding-bottom: 60px; /* Espacio para que el fab-bar no tape el footer */
  }
}
