/* =========================================================
   PONTUS CREW — Sistema de diseño
   Escala de grises (negro/gris/blanco) con un único acento:
   el rojo de la bandera de buceo ("diver down flag"), reservado
   para resaltar temas, precios, cifras y llamados a la acción.
   Tipografía condensada bold en titulares (estilo editorial de
   los reels) y foco en fotografía submarina.
   ========================================================= */

:root {
  /* Color — escala de grises */
  --bg: #060606;
  --bg-alt: #0c0c0c;
  --surface: #131313;
  --surface-2: #1b1b1b;
  --border: rgba(255, 255, 255, 0.09);
  --text: #f5f5f5;
  --text-muted: #a3a3a3;

  /* Único acento: rojo de bandera de buceo */
  --accent: #d7141a;
  --accent-dark: #a80f14;

  /* Ring de foco accesible (neutro, no compite con el rojo de énfasis) */
  --focus: #f5f5f5;

  /* Tipografía */
  --font-display: "Anton", "Archivo Black", Impact, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Espaciado */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  --radius: 6px;
  --max-width: 1160px;
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0 0 var(--space-2);
  font-weight: 400;
}
p { margin: 0 0 var(--space-2); color: var(--text-muted); }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}
section { padding: var(--space-6) 0; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* ---------- Utilidades ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: var(--space-2);
}
.text-center { text-align: center; }
.section-head { max-width: 640px; margin: 0 auto var(--space-5); text-align: center; }
.section-head.left { margin: 0 0 var(--space-5); text-align: left; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.9rem 1.8rem;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(6, 6, 6, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand svg { width: 34px; height: 34px; flex-shrink: 0; }
.brand-logo { height: 30px; width: auto; flex-shrink: 0; }
.brand-word {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.brand-word span { color: var(--accent); }

.nav-list { display: flex; align-items: center; gap: var(--space-4); }
.nav-list a {
  font-weight: 600;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.nav-list a:hover,
.nav-list a[aria-current="page"] { color: var(--text); border-color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  width: 42px;
  height: 42px;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: "";
  display: block;
  height: 2px;
  width: 24px;
  margin: 6px auto;
  background: var(--text);
  transition: transform .2s ease, opacity .2s ease;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-list {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--bg-alt);
    flex-direction: column;
    justify-content: flex-start;
    padding: var(--space-5) var(--space-3);
    gap: var(--space-3);
    transform: translateX(100%);
    transition: transform .25s ease;
  }
  .nav-list.is-open { transform: translateX(0); }
  .nav-list a { font-size: 1.1rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.06), transparent 55%),
    linear-gradient(180deg, #0d0d0d 0%, #070707 60%, #050505 100%);
  border-bottom: 1px solid var(--border);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(180deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 3px);
  pointer-events: none;
  mix-blend-mode: overlay;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-5);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  margin-bottom: var(--space-3);
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-lead { font-size: 1.1rem; max-width: 46ch; }
.hero-cta { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-4); }
.hero-stats {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}
.hero-stats .stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--accent);
}
.hero-stats .stat span { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

.hero-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.10), transparent 60%),
    linear-gradient(160deg, #202020 0%, #0a0a0a 60%, #020202 100%);
}
.hero-media .placeholder-tag { position: absolute; inset: auto var(--space-2) var(--space-2) var(--space-2); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; aspect-ratio: 16/10; }
}

/* ---------- Placeholder de imagen/foto ---------- */
.img-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background:
    radial-gradient(circle at 25% 25%, rgba(255,255,255,0.08), transparent 55%),
    linear-gradient(150deg, #1c1c1c 0%, #0a0a0a 55%, #030303 100%);
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: var(--radius);
  overflow: hidden;
  padding: var(--space-2);
}
.img-placeholder svg { width: 28px; height: 28px; margin-bottom: 0.5rem; opacity: 0.6; }

/* ---------- Foto real (reemplaza al placeholder cuando ya hay imagen) ---------- */
.photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #0a0a0a;
  aspect-ratio: 4 / 3; /* valor por defecto; se sobreescribe según contexto abajo */
}
.photo-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-media img.cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card .photo-frame { aspect-ratio: 16/10; margin-bottom: var(--space-2); }
.gallery-grid .photo-frame { aspect-ratio: 1/1; }

/* ---------- Cards / Servicios ---------- */
.grid {
  display: grid;
  gap: var(--space-3);
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card .img-placeholder { aspect-ratio: 16/10; margin-bottom: var(--space-2); }
.card h3 { font-size: 1.3rem; }
.card .price { color: var(--accent); font-weight: 700; margin-top: auto; padding-top: var(--space-2); }
.badge {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(230, 48, 63, 0.15);
  color: var(--accent);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

/* ---------- Franja destacada / CTA banda ---------- */
.band {
  background: linear-gradient(120deg, #1a1a1a, #050505 70%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.band h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* ---------- Testimonios ---------- */
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--space-3);
}
.testimonial p { color: var(--text); font-style: italic; }
.testimonial .who { color: var(--text-muted); font-size: 0.85rem; font-style: normal; }

/* ---------- Galería ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}
.gallery-grid .img-placeholder { aspect-ratio: 1/1; }
@media (max-width: 720px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Formulario ---------- */
.form-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: start;
}
@media (max-width: 900px) { .form-layout { grid-template-columns: 1fr; } }

.field { margin-bottom: var(--space-3); }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
}
.field input:focus, .field textarea:focus {
  border-color: #8a8a8a;
  outline: none;
}
.field textarea { resize: vertical; min-height: 140px; }
.field-check { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.85rem; color: var(--text-muted); }
.field-check input { width: auto; margin-top: 0.25rem; }
.field-check a { color: var(--accent); text-decoration: underline; }

/* honeypot: oculto visualmente pero accesible a bots */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.alert {
  padding: var(--space-2) var(--space-2);
  border-radius: var(--radius);
  margin-bottom: var(--space-3);
  font-size: 0.92rem;
  border: 1px solid var(--border);
}
.alert-error { background: rgba(230,48,63,0.12); border-color: var(--accent); color: #ffd9dc; }

.contact-info-list { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-3); }
.contact-info-list .item b { display: block; color: var(--text); }

/* ---------- Página de gracias ---------- */
.success-box {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-3);
}
.success-icon {
  width: 84px; height: 84px;
  margin: 0 auto var(--space-3);
  border-radius: 50%;
  background: rgba(215, 20, 26, 0.15);
  display: flex; align-items: center; justify-content: center;
}
.success-icon svg { width: 40px; height: 40px; color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-5) 0 var(--space-3);
  background: var(--bg-alt);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}
.footer-grid ul li { margin-bottom: 0.5rem; }
.footer-grid ul a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 0.75rem; margin-top: var(--space-2); }
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-1);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---------- Página legal ---------- */
.legal-content h2 { font-size: 1.4rem; margin-top: var(--space-4); }
.legal-content p, .legal-content li { color: var(--text-muted); }
.legal-content ul { list-style: disc; padding-left: 1.4rem; margin-bottom: var(--space-2); }

/* ---------- Animación de aparición ---------- */
[data-animate] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-animate].is-visible { opacity: 1; transform: translateY(0); }
