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

/* ── BASE ── */
body {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #f2ebe0;
  overflow-x: hidden;
  background-color: #0d0e12;
  background-image:
    linear-gradient(rgba(6,7,10,.62), rgba(6,7,10,.62)),
    url("../assets/pizarra.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: 96px;
  display: flex; align-items: center; gap: 32px;
  padding: 0 48px;
  background: rgba(5, 7, 10, .92);
  border-bottom: 1px solid rgba(201,154,99,.22);
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
}

.logo { width: 210px; height: auto; flex-shrink: 0; }

.site-header nav {
  flex: 1;
  display: flex; justify-content: center; gap: 26px;
}
.site-header nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: #c49458; text-decoration: none;
  padding-bottom: 4px; position: relative;
}
.site-header nav a.active::after,
.site-header nav a:hover::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px; background: #d4a86a;
}

.budget {
  flex-shrink: 0;
  padding: 10px 17px;
  border: 1px solid #c49458; border-radius: 3px;
  color: #d4a86a; text-decoration: none;
  font-size: 11px; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase;
  white-space: nowrap;
  transition: background .2s;
}
.budget:hover { background: rgba(201,154,99,.1); }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 540px;
  display: grid;
  grid-template-columns: 52% 1px 44%;
  gap: 0 24px;
  padding: 56px 52px;
  overflow: hidden;
  background-color: transparent;
}

/* Barco — natural detrás del panel de servicios */
.ship {
  position: absolute;
  right: 2%; top: 50%;
  transform: translateY(-50%);
  width: 42%; height: auto;
  opacity: .07;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: luminosity;
}

/* ── HERO COPY ── */
.hero-copy {
  position: relative; z-index: 3;
  align-self: center;
}

.hero-copy h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(28px, 3.6vw, 58px);
  font-weight: 800; line-height: 1.12;
  text-transform: uppercase; letter-spacing: .04em;
  color: #c49458;
  text-shadow: 0 3px 2px rgba(20,10,0,.95), 0 6px 22px rgba(0,0,0,.98);
  margin-bottom: 18px;
}

.title-line {
  display: block;
  width: 280px; max-width: 70%;
  height: auto;
  margin-bottom: 20px;
  opacity: .85;
}

.hero-copy p {
  font-size: 15px; line-height: 1.7;
  color: #ddd8ce; max-width: 500px;
  text-shadow: 0 2px 6px rgba(0,0,0,.85);
  margin-bottom: 28px;
}

.actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 3px;
  background: linear-gradient(160deg, #d4a56a, #9a6535 55%, #633e1e);
  color: #110d08; text-decoration: none;
  font-size: 11.5px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
  border: 1px solid rgba(255,255,255,.07);
  transition: transform .15s;
}
.btn-primary:hover { transform: translateY(-2px); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 3px;
  border: 1px solid #c49458;
  background: rgba(7,9,13,.35);
  color: #d4a86c; text-decoration: none;
  font-size: 11.5px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .2s;
}
.btn-secondary:hover { background: rgba(201,154,99,.1); }

/* ── DIVISOR VERTICAL ── */
.v-divider {
  align-self: stretch;
  width: 1px;
  background: rgba(201,154,99,.4);
  position: relative; z-index: 3;
  margin: 14px 0;
}

/* ── SERVICES ── */
.services {
  position: relative; z-index: 3;
  align-self: center;
  display: flex; flex-direction: column; gap: 20px;
  padding-left: 14px;
}

.services article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px; align-items: start;
}
.services article img {
  width: 36px; height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.6));
}
.services h2 {
  font-family: 'Cinzel', serif;
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: #c49458; margin-bottom: 5px;
}
.services p {
  font-size: 12.5px; color: #cac6bc; line-height: 1.5;
}

/* ── FRANJA MADERA ── */
.advantages {
  position: relative;
  display: flex; align-items: center;
  background: url("../assets/wood-texture-dark.webp") center / cover;
  border-top:    1px solid rgba(201,154,99,.35);
  border-bottom: 1px solid rgba(201,154,99,.22);
  padding: 24px 52px;
  gap: 0;
  isolation: isolate;
}
.advantages::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(0,0,0,.48); z-index: 0;
}

.adv-grid {
  position: relative; z-index: 1;
  flex: 1;
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 0;
}

.adv-grid article {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 12px; row-gap: 3px;
  align-items: center;
  padding: 10px 20px 10px 0;
  border-right: 1px solid rgba(201,154,99,.3);
}
.adv-grid article:last-child { border-right: none; }

.adv-grid img,
.adv-icon {
  width: 36px; height: 36px;
  grid-row: 1 / 3; align-self: center;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.55));
}
.adv-icon { display: block; }

.adv-grid h3 {
  font-family: 'Cinzel', serif;
  font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: #c49458; align-self: end;
}
.adv-grid p {
  font-size: 11px; color: #d5d0c6; line-height: 1.5;
  align-self: start;
}


/* ── CONTACTO ── */
.contact-section {
  padding: 72px 52px 80px;
  max-width: 700px;
  margin: 0 auto;
}
.contact-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #c49458;
  text-shadow: 0 3px 2px rgba(20,10,0,.95), 0 6px 22px rgba(0,0,0,.98);
  margin-bottom: 16px;
}
.contact-divider {
  width: 200px; height: 2px;
  background: linear-gradient(90deg, #c49458, transparent);
  margin-bottom: 26px; opacity: .85;
}
.contact-lead {
  font-size: 15px; line-height: 1.75;
  color: #ddd8ce;
  text-shadow: 0 2px 6px rgba(0,0,0,.8);
  margin-bottom: 38px;
  max-width: 580px;
}
.contact-form { display: flex; flex-direction: column; gap: 22px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #c49458;
}
.form-group input,
.form-group textarea {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(196,148,88,.28);
  border-radius: 3px;
  padding: 13px 16px;
  color: #f2ebe0;
  font-family: 'Montserrat', sans-serif;
  font-size: 13.5px;
  outline: none;
  transition: border-color .2s, background .2s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(196,148,88,.65);
  background: rgba(255,255,255,.06);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #4e4a45; }
.form-group textarea { resize: vertical; min-height: 140px; }
.form-submit {
  align-self: flex-start;
  padding: 13px 28px; border-radius: 3px;
  background: linear-gradient(160deg, #d4a56a, #9a6535 55%, #633e1e);
  color: #110d08; border: none; cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
  transition: transform .15s, opacity .2s;
}
.form-submit:hover { transform: translateY(-2px); }
.form-submit:disabled { opacity: .5; cursor: default; transform: none; }
.form-status { font-size: 13px; min-height: 20px; margin-top: 4px; }
.form-status.success { color: #7ec47e; }
.form-status.error   { color: #c47a7a; }

/* ── HAMBURGER ── */
.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  background: none;
  border: 1px solid rgba(196,148,88,.35);
  border-radius: 3px;
  padding: 7px 11px;
  color: #c49458;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s;
  line-height: 1;
}
.nav-toggle:hover { background: rgba(196,148,88,.08); }

/* ── FOOTER ── */
footer {
  display: flex; justify-content: center; align-items: center;
  padding: 17px 48px;
  background: rgba(5,7,10,.95);
  border-top: 1px solid rgba(201,154,99,.15);
  font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; color: #6e6660;
}

/* ── RESPONSIVE ── */
@media (max-width: 1050px) {
  .site-header { padding: 0 24px; gap: 16px; }
  .budget { font-size: 11px; padding: 11px 14px; }

  /* Nav oculto por defecto; visible con clase .open */
  .site-header nav {
    display: none;
    position: fixed;
    top: 96px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(5,7,10,.97);
    border-bottom: 1px solid rgba(201,154,99,.22);
    padding: 8px 24px 20px;
    z-index: 99;
    gap: 0;
  }
  .site-header nav.open { display: flex; }
  .site-header nav a {
    padding: 13px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(201,154,99,.1);
    text-align: center;
    justify-content: center;
  }
  .site-header nav a:last-child { border-bottom: none; }
  .site-header nav a.active::after,
  .site-header nav a:hover::after { display: none; }

  .nav-toggle { display: flex; }

  .hero {
    grid-template-columns: 1fr;
    padding: 48px 28px 200px;
  }
  .v-divider { display: none; }
  .services { padding-left: 0; margin-top: 36px; }
  .ship { width: 80%; right: -10px; opacity: .25; top: auto; bottom: 80px; }

  .advantages { flex-direction: column; padding: 28px 24px; }
  .adv-grid { grid-template-columns: 1fr 1fr; width: 100%; }
  .adv-grid article:nth-child(2) { border-right: none; }
  .adv-grid article:nth-child(1),
  .adv-grid article:nth-child(2) {
    border-bottom: 1px solid rgba(201,154,99,.3);
    padding-bottom: 18px; margin-bottom: 18px;
  }

  .contact-section { padding: 52px 24px 60px; }

  footer { flex-direction: column; gap: 12px; padding: 18px; text-align: center; }
}

/* iOS Safari: background-attachment fixed no funciona correctamente */
@supports (-webkit-touch-callout: none) {
  body { background-attachment: scroll; }
}
