/* =========================================================
   Estudio Chulia — style.css (mejorado)
   Paleta: azul marino neutro + escala de grises
   Incluye fixes para contacto, checkbox alineado y hero.
========================================================= */

/* ---------- Tokens / Variables ---------- */
:root{
  --bg: #f3f4f6;
  --surface: #ffffff;
  --surface-2: #f1f2f4;
  --surface-3: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;

  --brand: #0b1726;      /* texto / marca */
  --brand-2: #1f2937;
  --accent: #0b2340;     /* azul marino CTA */
  --accent-contrast: #ffffff;

  --success: #1b9e4b;
  --warning: #ffb020;
  --danger: #d7263d;
  --info: #0aa1dd;

  --s-0: 0;
  --s-1: .25rem;
  --s-2: .5rem;
  --s-3: .75rem;
  --s-4: 1rem;
  --s-5: 1.25rem;
  --s-6: 1.5rem;
  --s-7: 1.75rem;
  --s-8: 2rem;

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-300: .875rem;
  --fs-400: 1rem;
  --fs-500: 1.125rem;
  --fs-600: 1.35rem;
  --fs-700: 1.75rem;
  --radius-1: .5rem;
  --radius-2: .75rem;
  --shadow-1: 0 6px 18px rgba(15,23,42,.06);
  --shadow-2: 0 20px 40px rgba(15,23,42,.10);
  --ring: 0 0 0 3px rgba(11,35,64,.18);
}

/* ---------- Base / Reset ---------- */
*{box-sizing:border-box}
html,body{margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:var(--font-sans);
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
img,video{max-width:100%;height:auto;display:block}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
button{cursor:pointer;font-family:inherit}

/* Accessible focus */
:focus{outline:none}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;box-shadow:var(--ring)}

/* ---------- Typography ---------- */
h1,h2,h3,h4{margin:0 0 .75rem;color:var(--brand)}
h1{font-size:clamp(1.6rem,3.5vw,2.6rem);line-height:1.05}
h2{font-size:1.4rem}
h3{font-size:1.125rem}
.lead{font-size:var(--fs-500);color:var(--muted)}
.small{font-size:var(--fs-300);color:var(--muted)}
.bold{font-weight:700}

/* ---------- Layout ---------- */
.container{max-width:1120px;margin:0 auto;padding:0 var(--s-4)}
.section{padding:var(--s-8) 0}
.grid{display:grid;gap:var(--s-6)}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:var(--s-6)}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--s-6)}
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:18px}

/* ---------- Header / Nav ---------- */
.site-header{
  position:sticky;top:0;z-index:50;border-bottom:1px solid var(--line);
  background:rgba(248,249,251,.96);backdrop-filter:saturate(1.1) blur(6px);
}
.site-header .bar{display:flex;align-items:center;justify-content:space-between;padding:.75rem 0}
.brand-wrap{display:flex;align-items:center;gap:.75rem}
.brand-logo{max-height:48px}
.brand-text{font-weight:700;color:var(--brand);text-transform:uppercase;letter-spacing:.04em;font-size:.9rem}
.nav{display:flex;gap:1rem;margin-left:auto;text-transform:uppercase;font-size:.82rem}
.nav a{padding:.4rem .6rem;border-radius:.35rem;color:var(--text);font-weight:600}
.nav a:hover{background:var(--surface-2)}

/* Small screens */
@media (max-width:960px){
  .nav{display:none;position:absolute;left:0;right:0;top:64px;background:var(--surface);padding:12px;border-bottom:1px solid var(--line);flex-direction:column}
  .site-header.open .nav{display:flex}
  .menu-btn{display:inline-flex}
}

/* ---------- Hero (contacto image handling) ---------- */
.contact-hero-img{margin:0 0 1rem;border-radius:12px;overflow:hidden}
.contact-hero-img img{width:100%;height:auto;display:block;object-fit:cover;max-height:360px}

/* ---------- Contact layout ---------- */
.layout-contacto{max-width:1200px;margin:0 auto;padding:1.75rem 1rem 3rem}
.intro-contacto h1{font-size:1.6rem;margin:0 0 .5rem}
.intro-contacto p{max-width:72ch;color:var(--muted)}

.grid-contacto{display:grid;grid-template-columns:2fr 1.2fr;gap:2rem;margin-top:1.25rem;align-items:start}

/* datos + mapa */
.datos-contacto-list{list-style:none;margin:1rem 0 1.25rem;padding:0}
.datos-contacto-list li{display:flex;gap:.6rem;align-items:flex-start;margin:.45rem 0}
.datos-contacto-list strong{min-width:90px;display:inline-block;color:var(--brand)}
.datos-contacto-list a{color:var(--accent)}

/* mapa */
.mapa-wrapper{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--surface-2)}
.mapa-wrapper iframe{width:100%;height:320px;border:0}

/* panel-form */
.panel-form{
  border:1px solid var(--line);
  border-radius:12px;
  padding:1.05rem;
  background:var(--surface);
  box-shadow:var(--shadow-1);
  color:var(--brand-2);
}
.panel-form h2{font-size:1rem;margin:.25rem 0 .75rem}
.form-grid-2col{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}
.panel-form label{display:block;font-size:.93rem;margin-bottom:.25rem;color:var(--brand)}
.panel-form input,.panel-form textarea,.panel-form select{
  width:100%;padding:.6rem .75rem;border:1px solid #cfd8e1;border-radius:8px;background:#fbfdff;color:var(--brand-2);
  transition:border-color .12s ease, box-shadow .12s ease;
}
.panel-form textarea{min-height:110px;resize:vertical}
.panel-form input:focus-visible,.panel-form textarea:focus-visible,.panel-form select:focus-visible{
  border-color:var(--accent);box-shadow:var(--ring)
}
.panel-form input::placeholder,.panel-form textarea::placeholder{color:#9aa3ad}

/* select arrow */
.panel-form select{
  background-image:
    linear-gradient(45deg, transparent 50%, #9aa3ad 50%),
    
  background-position:calc(100% - 14px) 50%, calc(100% - 8px) 50%;
  background-size:6px 6px,6px 6px;background-repeat:no-repeat;
  padding-right:2.25rem;
}

/* legal / consent (fix checkbox alignment) */
.consent-mini{margin-top:.75rem;display:flex;flex-direction:column;gap:.35rem;font-size:.9rem;color:var(--muted)}
.check-inline{
  display:inline-flex;
  align-items:center;
  gap:.6rem;
  cursor:pointer;
  user-select:none;
}
/* checkbox visual sizing for touch */
.check-inline input[type="checkbox"]{
  width:18px;height:18px;
  margin:0;
  flex:0 0 18px;
  accent-color:var(--accent); /* modern browsers */
  border-radius:3px;
  border:1px solid #c7d0da;
  background:#fff;
  transform:translateY(0); /* ensure no vertical offset */
}
/* span text next to checkbox */
.check-inline span{color:var(--brand-2);font-size:.95rem;line-height:1.2}
.check-inline a{color:var(--accent);text-decoration:underline}

/* helper text */
.legal-hint{font-size:.85rem;color:var(--muted);margin-top:0}

/* enviar row (buttons) */
.enviar-row{margin-top:.9rem;display:flex;gap:.6rem;align-items:center;flex-wrap:wrap}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:.6rem .95rem;border-radius:10px;border:1px solid var(--accent);
  background:var(--accent);color:var(--accent-contrast);font-weight:600;
  text-decoration:none;box-shadow:none;transition:transform .08s ease, box-shadow .12s ease, opacity .12s ease;
}
.btn:hover{transform:translateY(-2px);box-shadow:var(--shadow-1)}
.btn.outline{background:transparent;color:var(--accent);border-color:var(--accent)}
.btn[disabled]{opacity:.6;cursor:not-allowed}

/* small status */
#form-status.small, .panel-form .small{font-size:.85rem;color:var(--muted);margin-top:.5rem}

/* Footer */
.site-footer{border-top:1px solid var(--line);padding:24px 0;background:var(--brand);color:#fff}
.site-footer a{color:#fff;opacity:.95}
.site-footer .small{color:rgba(255,255,255,.8)}

/* ---------- Responsive tweaks ---------- */
@media (max-width:900px){
  .grid-contacto{grid-template-columns:1fr}
  .mapa-wrapper iframe{height:260px}
  .form-grid-2col{grid-template-columns:1fr}
  .contact-hero-img img{max-height:220px}
  .panel-form{order:-1}
}

/* ---------- Print ---------- */
@media print{
  *{box-shadow:none !important}
  a{text-decoration:underline;color:black}
  .site-header,.site-footer,.float-whatsapp,.hero-media{display:none !important}
  .btn{border:1px solid #000;background:#fff;color:#000}
}

