/* ==========================================================
   Espacios Calderón — estilos basados en la identidad usada
   en cotizaciones e informes (azul oscuro #1A1A2E, Arial,
   grises neutros) + un acento cálido tipo madera caoba.
   ========================================================== */

:root{
  --dark: #1A1A2E;
  --dark-2: #24243f;
  --wood: #8B4A2B;
  --wood-dark: #6f3a21;
  --text: #1a1a1a;
  --gray-600: #666666;
  --gray-500: #888888;
  --gray-300: #cfcfcf;
  --gray-100: #F5F5F5;
  --gray-50: #FAFAFA;
  --white: #FFFFFF;
  --radius: 6px;
  --max-width: 1160px;
  --font: Arial, Helvetica, "Segoe UI", sans-serif;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

img{ max-width: 100%; display: block; }

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

.eyebrow{
  display: inline-block;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2px;
  color: var(--wood);
  margin-bottom: 12px;
}

h1, h2, h3{
  color: var(--dark);
  margin: 0 0 16px;
  line-height: 1.25;
}

h1{ font-size: clamp(28px, 5vw, 44px); }
h2{ font-size: clamp(22px, 3.5vw, 32px); }
h3{ font-size: 19px; }

p{ margin: 0 0 12px; color: var(--gray-600); }

a{ color: var(--dark); }

.btn{
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: bold;
  text-decoration: none;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: opacity .15s ease, transform .15s ease;
}
.btn:hover{ opacity: .9; transform: translateY(-1px); }

.btn-primary{
  background: var(--wood);
  color: var(--white);
}
.btn-outline{
  background: transparent;
  border-color: var(--dark);
  color: var(--dark);
}
.btn-full{ width: 100%; text-align: center; }

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand-logo{ height: 42px; width: auto; }

.nav{
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a{
  text-decoration: none;
  color: var(--dark);
  font-size: 15px;
  font-weight: 600;
}
.nav a:hover{ color: var(--wood); }
.nav-social{
  display: flex;
  align-items: center;
  color: var(--dark);
}
.nav-social svg{ width: 22px; height: 22px; }
.nav-social:hover{ color: var(--wood); }
.nav-cta{
  background: var(--dark);
  color: var(--white) !important;
  padding: 9px 18px;
  border-radius: var(--radius);
}
.nav-cta:hover{ background: var(--wood); }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span{
  display: block;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero{
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 100%);
  color: var(--white);
}
.hero-inner{
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 84px 24px;
  flex-wrap: wrap;
}
.hero-text{ flex: 1 1 420px; }
.hero-text .eyebrow{ color: var(--gray-300); }
.hero-text h1{ color: var(--white); }
.hero-text p{ color: #d8d8e0; max-width: 540px; }
.hero-actions{
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.hero .btn-outline{ border-color: var(--white); color: var(--white); }

.hero-visual{
  flex: 1 1 320px;
  display: flex;
  justify-content: center;
  max-width: 420px;
}
.hero-photo{
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
}

/* ---------- Sections ---------- */
.section{ padding: 80px 0; }
.section-head{ max-width: 640px; margin: 0 auto 40px; text-align: left; }
.section-sub{ margin-top: -6px; }

.nosotros{ background: var(--white); }
.nosotros-inner{
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.nosotros-img{ flex: 1 1 360px; max-width: 100%; }
.nosotros-img img{ width: 100%; height: auto; display: block; border-radius: var(--radius); box-shadow: 0 12px 30px rgba(26,26,46,.15); }
.nosotros-text{ flex: 1 1 420px; }

.check-list{ list-style: none; padding: 0; margin: 20px 0 0; }
.check-list li{
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--text);
}
.check-list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  background: var(--wood);
  border-radius: 2px;
}

/* ---------- Barra de confianza ---------- */
.trust-bar{
  background: var(--dark-2);
  padding: 28px 0;
}
.trust-inner{
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.trust-item{
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.trust-item strong{
  color: var(--white);
  font-size: 17px;
}
.trust-item span{
  color: #b6b6c2;
  font-size: 13px;
}

.servicios{ background: var(--gray-50); }
.cards{
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.cards-6 .card{ flex: 1 1 300px; }
.card{
  flex: 1 1 280px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.card-icon{
  width: 48px;
  height: 48px;
  color: var(--wood);
  margin-bottom: 14px;
}
.card-icon svg{ width: 100%; height: 100%; }

/* ---------- Cómo trabajamos ---------- */
.proceso{ background: var(--white); }
.steps{
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.step{
  flex: 1 1 240px;
  padding: 24px 20px;
  background: var(--gray-50);
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
}
.step-num{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--wood);
  color: var(--white);
  font-weight: bold;
  margin-bottom: 12px;
}
.step h3{ font-size: 16px; margin-bottom: 8px; }
.step p{ font-size: 14px; margin-bottom: 0; }

.galeria{ background: var(--white); }
.gallery-group{ margin-bottom: 36px; }
.gallery-group:last-of-type{ margin-bottom: 0; }
.gallery-cat{
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--wood);
  margin-bottom: 14px;
}
.gallery-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.gallery-item{
  flex: 1 1 250px;
  margin: 0;
  background: var(--gray-50);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-100);
}
.gallery-item img{
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  object-position: center;
  display: block;
}
.gallery-item figcaption{
  padding: 12px 14px;
  font-size: 13px;
  color: var(--gray-600);
}
.gallery-note{
  margin-top: 24px;
  font-size: 13px;
  color: var(--gray-500);
}
.gallery-note code{ background: var(--gray-100); padding: 2px 6px; border-radius: 4px; }

.contacto{ background: var(--gray-50); }
.contacto-inner{
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.contacto-info{ flex: 1 1 360px; }
.info-list{ list-style: none; padding: 0; margin: 20px 0 24px; }
.info-list li{ margin-bottom: 10px; color: var(--text); }
.map-wrap{ border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-100); box-shadow: 0 8px 20px rgba(26,26,46,.08); }
.map-wrap iframe{ width: 100%; height: 340px; border: 0; display: block; }

.contacto-form{
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
}
.contacto-form[hidden]{ display: none; }
.contacto-form label{
  font-size: 13px;
  font-weight: bold;
  color: var(--dark);
  margin-top: 10px;
}
.contacto-form input,
.contacto-form select,
.contacto-form textarea{
  font-family: var(--font);
  padding: 11px 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
}
.contacto-form input:focus,
.contacto-form select:focus,
.contacto-form textarea:focus{
  outline: none;
  border-color: var(--wood);
}
.hidden-field{ position: absolute; left: -9999px; }
.form-note{ font-size: 12px; color: var(--gray-600); margin-top: 10px; margin-bottom: 0; }
.form-error{
  font-size: 13px;
  color: #b3311c;
  background: #fdecea;
  border: 1px solid #f3c3bb;
  border-radius: var(--radius);
  padding: 10px 12px;
  margin: 12px 0 0;
}
.form-error a{ color: #b3311c; text-decoration: underline; }

/* ---------- Ventana emergente de éxito del formulario ---------- */
.modal-overlay{
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(26,26,46,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.modal-overlay[hidden]{ display: none; }
.modal-card{
  position: relative;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  background: var(--white);
  padding: 44px 32px;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
  margin: auto;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
}
.modal-close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--gray-100);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.modal-close:hover{ background: var(--gray-300); }
.modal-close svg{ width: 16px; height: 16px; }
.form-success-icon{
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wood);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  flex-shrink: 0;
}
.form-success-icon svg{ width: 26px; height: 26px; }
.modal-card h3{ margin: 0; color: var(--dark); }
.modal-card p{ margin: 0; color: var(--gray-600); max-width: 340px; }
.modal-card a{ color: var(--wood); font-weight: bold; }

/* ---------- WhatsApp flotante ---------- */
.whatsapp-float{
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  z-index: 200;
  transition: transform .15s ease;
}
.whatsapp-float:hover{ transform: scale(1.08); }
.whatsapp-float svg{ width: 30px; height: 30px; }

/* ---------- Footer ---------- */
.site-footer{
  background: var(--dark);
  color: #cfcfd6;
  padding: 40px 0;
}
.footer-inner{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.footer-logo{ height: 34px; width: 34px; filter: invert(1) brightness(1.6); margin-bottom: 6px; }
.footer-social{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cfcfd6;
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 4px;
}
.footer-social svg{ width: 18px; height: 18px; }
.footer-social:hover{ color: var(--white); }
.footer-inner p{ color: #b6b6c2; margin: 0; font-size: 13px; }
.footer-year{ font-size: 12px !important; }

/* ---------- Responsive ---------- */
@media (max-width: 860px){
  .nav{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--gray-100);
    display: none;
  }
  .nav.open{ display: flex; }
  .nav-cta{ align-self: flex-start; }
  .nav-toggle{ display: flex; }
  .hero-visual{ order: -1; max-width: 100%; }
  .hero-photo{ height: 200px; }
  .hero-inner{ padding: 56px 24px; }
  .section{ padding: 56px 0; }
}

@media (max-width: 480px){
  .contacto-form{ padding: 22px; }
  .whatsapp-float{ width: 52px; height: 52px; right: 14px; bottom: 14px; }
  .whatsapp-float svg{ width: 26px; height: 26px; }
  .map-wrap iframe{ height: 260px; }

  .modal-overlay{ padding: 12px; }
  .modal-card{ padding: 36px 20px 24px; gap: 8px; }
  .modal-close{ top: 8px; right: 8px; }
  .form-success-icon{ width: 48px; height: 48px; }
  .form-success-icon svg{ width: 22px; height: 22px; }
  .modal-card h3{ font-size: 18px; }
  .modal-card p{ font-size: 14px; max-width: none; }
}

/* ---------- Página legal (privacidad) ---------- */
.legal-content{ max-width: 720px; }
.legal-content h1{ margin-top: 4px; }
.legal-updated{ color: var(--gray-600); font-size: 13px; margin-bottom: 28px; }
.legal-content h2{ font-size: 18px; color: var(--dark); margin-top: 30px; margin-bottom: 10px; }
.legal-content p{ margin-bottom: 14px; }
.footer-links{ margin-top: 4px; }
.footer-links a{ color: #b6b6c2; font-size: 12px; text-decoration: underline; }
.footer-links a:hover{ color: var(--white); }
