:root {
  --navy: #062A40;
  --yellow: #FFC400;
  --orange: #F26A21;
  --gray-bg: #F3F4F6;
  --dark: #111111;
  --text-body: #333333;
  --text-muted: #4a4a4a;
  --border: #E5E7EB;
  --font-head: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #FFFFFF;
  color: var(--dark);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); }
a:hover { color: var(--yellow); }
::selection { background: var(--yellow); color: var(--navy); }
img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: var(--font-body); }

h1, h2, h3 { font-family: var(--font-head); margin: 0; text-wrap: pretty; }

/* ---------- utility ---------- */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.wrap-form { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 24px; }
.section .wrap, .section .wrap-narrow, .section .wrap-form { padding: 0; }
.section-gray { background: var(--gray-bg); }
.section-navy { background: var(--navy); }
.center { text-align: center; }
.center-text { text-align: center; }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 2.5px;
  font-size: 13px;
  margin: 0 0 14px;
}
.eyebrow-orange { color: var(--orange); }
.eyebrow-yellow { color: var(--yellow); }
.eyebrow-light { color: var(--yellow); letter-spacing: 3px; font-size: 15px; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-weight: 700; font-size: clamp(28px, 4vw, 42px); color: var(--navy); }
h2.on-navy { color: #FFFFFF; }

.lead { font-size: 16.5px; line-height: 1.75; color: var(--text-body); }

.btn {
  display: inline-block;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15.5px;
  text-decoration: none;
  padding: 16px 30px;
  border: none;
  cursor: pointer;
  text-align: center;
}
.btn-accent { background: var(--yellow); color: var(--navy); }
.btn-accent:hover { color: var(--navy); filter: brightness(1.05); }
.btn-outline {
  background: transparent;
  color: #FFFFFF;
  border: 1.5px solid rgba(255,255,255,0.5);
  font-weight: 600;
}
.btn-outline:hover { color: #FFFFFF; border-color: #FFFFFF; }
.btn-lg { padding: 16px 30px; font-size: 15.5px; }
.btn-nav { padding: 11px 22px; font-size: 14px; }
.btn-block { width: 100%; padding: 16px 34px; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  height: 60px;
  background: #FFFFFF;
  border-radius: 8px;
  padding: 5px 12px;
  flex-shrink: 0;
}
.brand img { height: 100%; width: auto; object-fit: contain; }

.nav-desktop { display: flex; align-items: center; gap: 28px; }
.nav-desktop a { color: #FFFFFF; text-decoration: none; font-size: 14.5px; font-weight: 500; }
.nav-desktop a.btn { color: var(--navy); }

.burger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 34px;
  height: 34px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #FFFFFF;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-mobile {
  display: none;
  background: var(--navy);
  padding: 8px 24px 20px;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.nav-mobile a { color: #FFFFFF; text-decoration: none; padding: 10px 0; font-size: 15px; font-weight: 500; }
.nav-mobile a.btn { text-align: center; margin-top: 8px; color: var(--navy); }
.nav-mobile.open { display: flex; }

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .burger { display: flex; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 96px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, #0a3a56 0%, #062A40 55%, #041c2c 100%);
}
.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(6,42,64,0.94) 0%, rgba(6,42,64,0.82) 45%, rgba(6,42,64,0.55) 100%);
}
.hero-pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(335deg, rgba(255,255,255,0.12) 23px, transparent 23px),
    linear-gradient(155deg, rgba(255,255,255,0.12) 23px, transparent 23px),
    linear-gradient(335deg, rgba(255,255,255,0.12) 23px, transparent 23px),
    linear-gradient(155deg, rgba(255,255,255,0.12) 23px, transparent 23px);
  background-size: 58px 58px;
  animation: brickDrift 14s linear infinite;
}
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at 30% 45%, rgba(6,42,64,0.55) 0%, rgba(6,42,64,0.15) 55%, rgba(6,42,64,0.7) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 24px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-content > * { max-width: 760px; }
.hero-content h1 {
  font-weight: 700;
  font-size: clamp(34px, 5.5vw, 58px);
  line-height: 1.08;
  color: #FFFFFF;
  margin: 0 0 22px;
}
.hero-lead {
  color: rgba(255,255,255,0.88);
  font-size: 18px;
  line-height: 1.6;
  margin: 0 auto 34px;
  max-width: 560px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 52px;
  justify-content: center;
}
.hero-actions .btn-accent { box-shadow: 0 8px 24px rgba(255,196,0,0.25); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  max-width: 620px;
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.2);
  width: 100%;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.35;
  text-align: center;
  gap: 10px;
}
.hero-stat .dot { width: 8px; height: 8px; background: var(--yellow); border-radius: 2px; }

.stripe {
  width: 100%;
  height: 10px;
  background-image: repeating-linear-gradient(45deg, var(--yellow) 0 18px, var(--navy) 18px 36px);
  background-size: 200% 100%;
  animation: stripeMove 3.5s linear infinite;
}

/* ---------- two-col (nosotros / contacto) ---------- */
.two-col {
  max-width: 1280px;
  margin: 0 auto;
  padding: 100px 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
}
.about-text { text-align: center; display: flex; flex-direction: column; align-items: center; }
.about-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 440px;
}
.about-point {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
  font-size: 14.5px;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.4;
}
.bullet { width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }

.about-media { position: relative; }
.years-badge {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  padding: 22px 28px;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(6,42,64,0.3);
  text-align: center;
}
.years-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 32px;
  color: var(--yellow);
  line-height: 1;
}
.years-label { color: #FFFFFF; font-size: 12.5px; font-weight: 500; margin-top: 4px; }

/* ---------- placeholder photo/image slots ---------- */
.photo-slot {
  width: 100%;
  border-radius: 14px;
  background:
    repeating-linear-gradient(135deg, rgba(6,42,64,0.06) 0 16px, rgba(6,42,64,0.11) 16px 32px),
    linear-gradient(160deg, #DCE3E8 0%, #C7D0D6 100%);
  position: relative;
  overflow: hidden;
}
.photo-about { height: 440px; }
.photo-service { height: 180px; border-radius: 14px 14px 0 0; }
.photo-project { height: 210px; border-radius: 14px 14px 0 0; }

/* Shown until a real photo is uploaded via the CRM's "Ajustes del sitio" — a small
   watermark + the recommended pixel size so the space reads as "waiting for a photo"
   rather than broken/empty. site-settings.js hides this once a real image is set. */
.photo-slot-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
}
.photo-slot-empty img { width: 40px; height: 40px; opacity: 0.32; }
.photo-slot-empty span {
  font-size: 12px;
  font-weight: 600;
  color: rgba(6,42,64,0.4);
  letter-spacing: 0.4px;
}
.hero-bg .photo-slot-empty img { opacity: 0.5; }
.hero-bg .photo-slot-empty span { color: rgba(255,255,255,0.55); }

/* ---------- servicios / diferenciadores / sectores grids ---------- */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 28px;
}
.grid-projects { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: #FFFFFF;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(6,42,64,0.08);
  display: flex;
  flex-direction: column;
}
.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}
.card-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.card-icon span { color: var(--yellow); font-family: var(--font-head); font-weight: 700; font-size: 15px; }
.card-body h3 { font-weight: 600; font-size: 18.5px; color: var(--navy); margin: 0 0 10px; }
.card-body p { font-size: 14px; line-height: 1.6; color: #4a4a4a; margin: 0 0 18px; flex: 1; }
.card-link { color: var(--navy); font-weight: 700; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.card-link span { color: var(--yellow); }

.project-body { padding: 22px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.project-cat { color: var(--orange); font-size: 12px; font-weight: 700; letter-spacing: 1px; margin-bottom: 8px; text-transform: uppercase; }
.project-body h3 { font-weight: 600; font-size: 18px; color: var(--navy); margin: 0 0 10px; }
.project-meta { font-size: 13.5px; color: #555555; margin-bottom: 4px; }
.project-link { color: var(--navy); font-weight: 700; font-size: 14px; text-decoration: none; margin-top: 12px; }

/* ---------- filters ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 44px; }
.pill {
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid #D1D5DB;
  background: #FFFFFF;
  color: var(--navy);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.pill.active { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }

/* ---------- llave en mano / etapas ---------- */
.turnkey { text-align: center; }
.etapas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  margin: 56px 0 48px;
}
.etapa { padding: 0 16px; position: relative; }
.etapa-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,196,0,0.12);
  border: 2px solid var(--yellow);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  animation: pulseDot 2.4s ease-in-out infinite;
}
.etapa-circle span { color: var(--yellow); font-family: var(--font-head); font-weight: 700; font-size: 19px; }
.etapa-title { color: #FFFFFF; font-weight: 600; font-size: 15px; }

/* ---------- sectores ---------- */
.grid-sectors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}
.sector-card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 3px 12px rgba(6,42,64,0.06);
}
.sector-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--navy);
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
}
.sector-icon span { color: var(--yellow); font-family: var(--font-head); font-weight: 700; font-size: 14px; }
.sector-title { font-weight: 600; color: var(--navy); font-size: 15px; }

/* ---------- diferenciadores ---------- */
.grid-diffs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}
.diff-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.diff-dot-wrap {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,196,0,0.15);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.diff-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); }
.diff-title { font-weight: 600; color: var(--navy); font-size: 15.5px; line-height: 1.4; }

/* ---------- proceso ---------- */
.proceso { display: flex; flex-direction: column; gap: 0; }
.proceso-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.proceso-num { font-family: var(--font-head); font-weight: 700; font-size: 28px; color: var(--yellow); }
.proceso-title { color: #FFFFFF; font-weight: 600; font-size: 17px; }
.proceso-desc { color: rgba(255,255,255,0.7); font-size: 14.5px; line-height: 1.6; max-width: 480px; }

/* ---------- marca destacada ---------- */
.brand-showcase {
  padding: 80px 24px;
  background: #FFFFFF;
  display: flex;
  justify-content: center;
}
.brand-showcase img { animation: logoFloat 4s ease-in-out infinite; }

/* ---------- form ---------- */
.form-success {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 60px 32px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(6,42,64,0.08);
}
.success-check {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 26px; color: var(--navy); font-weight: 700;
}
.form-success h3 { color: var(--navy); margin: 0 0 10px; }
.form-success p { color: var(--text-muted); margin: 0; }

.quote-form {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 40px;
  box-shadow: 0 4px 18px rgba(6,42,64,0.08);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 900px) {
  .quote-form { grid-template-columns: 1fr; padding: 28px 20px; }
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  padding: 13px 14px;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  font-size: 14.5px;
  background: #FFFFFF;
}
.field textarea { resize: vertical; }
.field input.file-input { padding: 12px 14px; border: 1px dashed #9CA3AF; background: #FAFAFA; font-size: 13.5px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--yellow);
  outline-offset: 1px;
  border-color: var(--yellow);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  background: #FDECEC;
  border: 1px solid #F5B5B5;
  color: #9A2A2A;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
}

/* ---------- contacto ---------- */
.contact-col { max-width: 1280px; margin: 0 auto; padding: 100px 24px; }
.contact-text { display: flex; flex-direction: column; align-items: center; text-align: center; }
.contact-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
  width: 100%;
}
.contact-item { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.contact-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--gray-bg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-icon span { color: var(--navy); font-family: var(--font-head); font-weight: 700; font-size: 12.5px; }
.contact-label { font-size: 12.5px; font-weight: 700; color: var(--orange); letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 4px; }
.contact-value { font-size: 15px; color: var(--dark); font-weight: 500; line-height: 1.5; }

.map-slot {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border-radius: 14px;
  overflow: hidden;
  background: repeating-linear-gradient(45deg, var(--gray-bg), var(--gray-bg) 12px, #EBEDF0 12px, #EBEDF0 24px);
  display: flex; align-items: center; justify-content: center;
}
.map-slot span { font-family: monospace; color: #6B7280; font-size: 13px; }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); padding: 64px 24px 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
}
.footer-col { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 14px; line-height: 1.7; max-width: 320px; margin: 0; }
.footer-logo { display: flex; align-items: center; margin-bottom: 6px; background: #FFFFFF; border-radius: 8px; padding: 8px 14px; width: fit-content; }
.footer-title { color: var(--yellow); font-weight: 700; font-size: 13px; letter-spacing: 1px; margin-bottom: 6px; }
.footer-col a, .footer-col span { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 14px; }
.footer-social { display: flex; gap: 10px; margin-top: 6px; }
.social-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #FFFFFF; font-weight: 700;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom span, .footer-bottom a { color: rgba(255,255,255,0.45); font-size: 13px; text-decoration: none; }

/* ---------- whatsapp ---------- */
.whatsapp-fab {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
  z-index: 200;
  text-decoration: none;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 12px;
}

/* ---------- scroll reveal ---------- */
.reveal, .reveal-item {
  opacity: 0;
  transform: translateY(28px) scale(0.97);
}
.reveal.is-visible, .reveal-item.is-visible {
  animation: cardRise 0.7s ease both;
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-item { opacity: 1; transform: none; }
  .reveal.is-visible, .reveal-item.is-visible { animation: none; }
}

/* ---------- keyframes ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cardRise { from { opacity: 0; transform: translateY(28px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes stripeMove { from { background-position: 0 0; } to { background-position: 80px 0; } }
@keyframes brickDrift { from { background-position: 0px 2px, 4px 35px, 29px 31px, 34px 6px; } to { background-position: 58px 60px, 62px 93px, 87px 89px, 92px 64px; } }
@keyframes pulseDot { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,196,0,0.4); } 50% { box-shadow: 0 0 0 8px rgba(255,196,0,0); } }
@keyframes logoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
