/* ===========================================================
   ALMÍBAR — Landing styles
   Paleta e identidad basadas en el Manual de Identidad Almíbar.
   Azul marino #001B77 · Rojo #A11D1F · Verde #006112 ·
   Negro/Gris #231F20 · Crema #F4EEE2 · Blanco.
   Tipografías: Mulish (texto) + Playfair Display (títulos,
   sustituto libre de la serif de marca "Arsenica").
   =========================================================== */

:root {
  --navy: #14243D;
  --navy-900: #0E1826;
  --blue: #001B77;      /* azul de marca (acento) */
  --red: #A11D1F;       /* rojo de marca (CTA) */
  --red-600: #BE2E31;
  --green: #006112;     /* verde de marca */
  --cream: #F4EEE2;
  --cream-200: #EAE1CE;
  --ink: #231F20;       /* gris/negro de marca (texto sobre claro) */
  --wa: #25D366;

  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Mulish", system-ui, -apple-system, sans-serif;
  --maxw: 1160px;
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.14; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-navy  { background: var(--navy); color: var(--cream); }
.section-cream { background: var(--cream); color: var(--ink); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red);
  text-align: center;
  margin-bottom: 0.6rem;
}
.section-navy .eyebrow { color: #E5B4B5; }
.eyebrow.center, .eyebrow.left { text-align: inherit; }
.eyebrow.left { text-align: left; }

.section-title {
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  text-align: center;
  margin-bottom: 0.9rem;
}
.section-title.left { text-align: left; }
.section-subtitle {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2.75rem;
  font-size: 1.05rem;
  opacity: 0.85;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: 0.85rem 1.7rem; border-radius: 999px; cursor: pointer; border: none;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-600); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(161,29,31,.35); }
.btn-whatsapp { background: var(--wa); color: #fff; }
.btn-whatsapp:hover { background: #1da851; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,.3); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 24, 38, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(244,238,226,0.12);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.7rem 0; }
.brand-logo { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { font-weight: 600; font-size: 0.95rem; color: rgba(244,238,226,0.88); transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-links .nav-wa { color: #fff; padding: 0.5rem 1.1rem; font-size: 0.9rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--cream); transition: .3s; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 58px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--navy-900); padding: 0.75rem 1.25rem 1.25rem;
    border-bottom: 1px solid rgba(244,238,226,0.12);
    transform: translateY(-130%); transition: transform .3s ease;
  }
  .nav-links a { padding: 0.8rem 0; width: 100%; }
  .nav-links.open { transform: translateY(0); }
  .nav-links .nav-wa { margin-top: 0.6rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 90vh; display: flex; align-items: center;
  background: var(--navy-900); overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("../assets/img/hero.jpg") center/cover no-repeat;
  transform: scale(1.02);
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,24,38,0.72) 0%, rgba(14,24,38,0.55) 45%, rgba(14,24,38,0.9) 100%),
    radial-gradient(circle at 75% 25%, rgba(0,27,119,0.35), transparent 55%);
}
.hero-content { position: relative; text-align: center; padding: 4rem 1.25rem; }
.hero-kicker { text-transform: uppercase; letter-spacing: 0.24em; font-size: 0.82rem; color: #E5B4B5; margin-bottom: 1.1rem; font-weight: 700; }
.hero-title { font-size: clamp(2.4rem, 7.5vw, 4.6rem); margin: 0 auto 1.3rem; max-width: 16ch; color: #fff; }
.hero-sub { font-size: clamp(1.02rem, 2.4vw, 1.25rem); color: rgba(244,238,226,0.9); max-width: 48ch; margin: 0 auto 2.1rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-trust { margin-top: 1.75rem; font-size: 0.9rem; letter-spacing: 0.04em; color: rgba(244,238,226,0.75); }

/* ---------- Cards (servicios) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; }
.card {
  background: #fff; border: 1px solid var(--cream-200); border-radius: var(--radius);
  padding: 1.9rem 1.6rem; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(20,36,61,0.12); border-color: var(--red); }
.card h3 { font-size: 1.4rem; margin-bottom: 0.55rem; color: var(--blue); }
.card p { color: #4a4340; font-size: 0.97rem; }
.cards-note { text-align: center; margin-top: 2.25rem; font-size: 1.02rem; color: var(--ink); max-width: 52rem; margin-left: auto; margin-right: auto; }
.cards-note strong { color: var(--red); }

/* ---------- Qué incluye ---------- */
.incluye-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; }
.incluye-item {
  background: rgba(244,238,226,0.04); border: 1px solid rgba(244,238,226,0.14);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, border-color .2s ease;
}
.incluye-item:hover { transform: translateY(-4px); border-color: rgba(229,180,181,0.5); }
.incluye-item img { width: 100%; height: 190px; object-fit: cover; }
.incluye-text { padding: 1.25rem 1.35rem 1.6rem; }
.incluye-text h3 { font-size: 1.3rem; margin-bottom: 0.4rem; color: #fff; }
.incluye-text p { font-size: 0.94rem; color: rgba(244,238,226,0.82); }

/* ---------- Cómo funciona ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.5rem; }
.step { text-align: center; padding: 0.75rem; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 3.1rem; height: 3.1rem;
  border-radius: 50%; background: var(--red); color: #fff; font-family: var(--font-head);
  font-size: 1.5rem; font-weight: 700; margin-bottom: 0.9rem;
}
.step h3 { font-size: 1.25rem; margin-bottom: 0.4rem; color: var(--navy); }
.step p { color: #4a4340; font-size: 0.94rem; }

/* ---------- Nosotros ---------- */
.nosotros-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }
.nosotros-text p { color: rgba(244,238,226,0.88); margin-bottom: 1.1rem; }
.culture-quote {
  font-family: var(--font-head); font-style: italic; font-size: 1.25rem; line-height: 1.4;
  color: #fff; border-left: 3px solid var(--red); padding-left: 1.1rem; margin: 1.4rem 0;
}
.values { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.values li {
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.03em;
  border: 1px solid rgba(229,180,181,0.4); color: #E5B4B5;
  padding: 0.35rem 0.9rem; border-radius: 999px;
}
.nosotros-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.nosotros-photos figure { text-align: center; }
.nosotros-photos img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius); }
.nosotros-photos figcaption { margin-top: 0.6rem; font-weight: 600; color: rgba(244,238,226,0.9); }

/* ---------- Opiniones ---------- */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; }
.testimonial {
  background: #fff; border: 1px solid var(--cream-200); border-radius: var(--radius);
  padding: 1.7rem 1.6rem; display: flex; flex-direction: column;
}
.testimonial p { color: #3d3733; font-size: 0.98rem; font-style: italic; margin-bottom: 1.1rem; }
.testimonial footer { margin-top: auto; }
.testimonial strong { display: block; color: var(--blue); font-size: 1rem; }
.testimonial span { font-size: 0.85rem; color: #7a716c; }
.clients-label {
  text-align: center; text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem;
  font-weight: 700; color: #9a8f84; margin: 2.75rem 0 1.1rem;
}
.clients { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 2rem; }
.clients li { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; color: var(--navy); opacity: 0.75; }

/* ---------- Formulario ---------- */
.form-wrap { max-width: 760px; }
.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.9rem; font-weight: 600; color: rgba(244,238,226,0.92); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; padding: 0.72rem 0.9rem; border-radius: 10px;
  border: 1px solid rgba(244,238,226,0.28); background: rgba(244,238,226,0.06); color: var(--cream);
}
.field input::placeholder { color: rgba(244,238,226,0.45); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: #E5B4B5; box-shadow: 0 0 0 3px rgba(229,180,181,0.2);
}
.field select option { color: #111; }
.field input.invalid, .field select.invalid { border-color: #E8756F; }
.form-submit { width: 100%; margin-top: 0.5rem; }
.form-error { color: #F0A9A4; font-size: 0.9rem; margin-top: 0.5rem; text-align: center; }
@media (max-width: 620px) { .quote-form { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); padding: 3rem 0 2.25rem; text-align: center; border-top: 1px solid rgba(244,238,226,0.12); }
.footer-logo { height: 40px; width: auto; margin: 0 auto 1rem; }
.footer-tag { color: rgba(244,238,226,0.75); margin-bottom: 0.3rem; }
.footer-slogan { font-family: var(--font-head); font-style: italic; color: #E5B4B5; margin-bottom: 1.25rem; }
.footer-links { display: flex; gap: 1.4rem; justify-content: center; margin-bottom: 1.25rem; flex-wrap: wrap; }
.footer-links a { color: rgba(244,238,226,0.9); font-weight: 600; font-size: 0.95rem; transition: color .2s; }
.footer-links a:hover { color: #E5B4B5; }
.footer-copy { font-size: 0.82rem; color: rgba(244,238,226,0.5); }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60; width: 56px; height: 56px;
  border-radius: 50%; background: var(--wa); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Responsive ---------- */
@media (max-width: 780px) {
  .nosotros-inner { grid-template-columns: 1fr; gap: 2rem; }
  .section-title.left, .nosotros-text .eyebrow { text-align: center; }
  .culture-quote { text-align: left; }
  .values { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .btn:hover, .card:hover, .incluye-item:hover, .wa-float:hover { transform: none; }
}
