/* ============================================
   Paz Tres Montes SpA — hoja de estilos
   ============================================ */

:root {
  --navy-900: #081a30;
  --navy-800: #0b2545;
  --navy-700: #123a63;
  --navy-600: #1c4f82;
  --amber-500: #f2994a;
  --amber-600: #e07b23;
  --gray-50: #f7f8fa;
  --gray-100: #eef1f4;
  --gray-200: #e2e6ea;
  --gray-500: #6b7684;
  --gray-700: #3a4553;
  --white: #ffffff;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-head: 'Barlow Condensed', 'Inter', sans-serif;

  --container-w: 1180px;
  --radius: 10px;
  --shadow-sm: 0 2px 8px rgba(8, 26, 48, 0.06);
  --shadow-md: 0 12px 32px rgba(8, 26, 48, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-800);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}
p { margin: 0; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy-800);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--navy-800); color: #fff; }
.btn-primary:hover { background: var(--navy-700); }
.btn-accent { background: var(--amber-500); color: var(--navy-900); }
.btn-accent:hover { background: var(--amber-600); box-shadow: var(--shadow-md); }
.btn-ghost { border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-whatsapp {
  margin-top: 28px;
  background: #25d366;
  color: #06371c;
}
.btn-whatsapp:hover { background: #1fbd5a; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  /* Fondo oscuro siempre presente: el logo y el menú son blancos, así que
     el header nunca debe quedar transparente (si no, se pierden al pasar
     sobre secciones de fondo claro al hacer scroll). */
  background: rgba(8, 26, 48, 0.88);
  backdrop-filter: blur(6px);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled {
  background: rgba(8, 26, 48, 0.97);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo { height: 42px; width: auto; }
.brand-text {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 1.05rem;
  color: #fff;
  line-height: 1.05;
  display: flex;
  flex-direction: column;
}
.brand-text small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--amber-500);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0.9;
}
.main-nav a:hover { opacity: 1; color: var(--amber-500); }
.main-nav .nav-cta {
  opacity: 1;
  padding: 10px 20px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  overflow: hidden;
  padding-top: 78px;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,26,48,0.88) 0%, rgba(8,26,48,0.72) 45%, rgba(8,26,48,0.94) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 90px;
  padding-bottom: 70px;
  max-width: 760px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--amber-500);
  margin-bottom: 18px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 20px;
}
.hero-lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 620px;
  margin-bottom: 34px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-stats {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.16);
  padding: 28px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat { text-align: left; }
.stat-number {
  display: block;
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--amber-500);
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.78);
}

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--gray-50); }
.section-dark { background: var(--navy-900); color: rgba(255,255,255,0.85); }
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--amber-600);
  margin-bottom: 10px;
}
.section-eyebrow-light { color: var(--amber-500); }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 16px; }
.section-title-light { color: #fff; }
.section-lead {
  max-width: 620px;
  color: var(--gray-500);
  font-size: 1.05rem;
  margin-bottom: 48px;
}
.section-lead-light { color: rgba(255,255,255,0.72); }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--navy-800);
  color: var(--amber-500);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service-card p { color: var(--gray-500); font-size: 0.95rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.about-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-content p { margin-bottom: 18px; color: var(--gray-700); }
.about-points { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.about-points li {
  position: relative;
  padding-left: 28px;
  color: var(--gray-700);
}
.about-points li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--amber-500);
}

/* ---------- Experiencia ---------- */
.experience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.experience-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px;
}
.experience-card header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 2px solid var(--gray-100);
  padding-bottom: 16px;
  margin-bottom: 20px;
}
.experience-card h3 { font-size: 1.3rem; }
.experience-count {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--amber-600);
  white-space: nowrap;
}
.experience-list { display: flex; flex-direction: column; gap: 13px; }
.experience-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.94rem;
  color: var(--gray-700);
}
.experience-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 8px; height: 8px;
  background: var(--navy-700);
  transform: rotate(45deg);
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-item {
  position: relative;
  border: none;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--navy-800);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(0deg, rgba(8,26,48,0.85), rgba(8,26,48,0));
  text-align: left;
}

/* ---------- Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-list { display: flex; flex-direction: column; gap: 22px; margin: 32px 0; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.contact-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--amber-500);
  display: flex; align-items: center; justify-content: center;
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-label { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.5); margin-bottom: 3px; }
.contact-list a { font-weight: 600; color: #fff; }
.contact-list a:hover { color: var(--amber-500); }

.contact-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.form-row { margin-bottom: 18px; }
.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 6px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--gray-700);
  background: var(--gray-50);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--navy-700);
  background: #fff;
}
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.form-status {
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.2em;
}
.form-status.ok { color: #1b8a3d; }
.form-status.error { color: #c0392b; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-logo { height: 46px; width: auto; opacity: 0.9; }
.footer-inner p { color: rgba(255,255,255,0.5); font-size: 0.85rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8,26,48,0.94);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px 20px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(900px, 92vw);
  max-height: 78vh;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}
.lightbox-caption {
  color: #fff;
  margin-top: 16px;
  font-size: 0.95rem;
}
.lightbox-close {
  position: absolute;
  top: 24px; right: 28px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,0.22); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; }
  .experience-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    top: 78px; left: 0; right: 0;
    background: var(--navy-900);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px 30px;
    gap: 18px;
    transform: translateY(-130%);
    transition: transform 0.25s ease;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav .nav-cta { text-align: center; }
  .nav-toggle { display: flex; }
  .hero-content { padding-top: 60px; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row-split { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ---------- Ajustes de contenido (oct 2026) ---------- */
.stat-label { font-size: 0.95rem; font-weight: 500; }
.form-title {
  font-size: 1.25rem;
  color: var(--navy-800);
  margin-bottom: 20px;
}
.form-help {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--gray-700);
}
.footer-tagline { line-height: 1.5; }

/* ---------- Texto justificado (solo escritorio/tablet) ---------- */
@media (min-width: 761px) {
  .hero-lead,
  .section-lead,
  .about-content p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
  }
}
