/* SAME PEOPLE CONSTRUCTIONS
   Estructura: index.html + css/style.css + js/main.js
   Nota: Sin imágenes externas (solo estilos).
*/
:root{
  --bg: #ffffff;
  --text: #0b1220;
  --muted: #4b5565;
  --card: #ffffff;
  --line: rgba(15, 23, 42, .12);
  --shadow: 0 14px 40px rgba(2, 6, 23, .10);
  --shadow-soft: 0 10px 28px rgba(2, 6, 23, .08);
  --radius: 18px;
  --radius-sm: 14px;
  --max: 1120px;

  /* Acentos (no son "datos", solo color) */
  --accent: #0ea5e9;      /* azul */
  --accent2: #a78bfa;     /* violeta */
  --accent3: #22c55e;     /* verde */
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

a{ color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible{
  outline: 3px solid rgba(14,165,233,.45);
  outline-offset: 3px;
  border-radius: 10px;
}

.skip-link{
  position:absolute;
  left:-999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left: 14px;
  top: 14px;
  width:auto;
  height:auto;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  z-index: 9999;
}

.container{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.80);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 240px;
}
.brand-mark{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  font-weight: 800;
  letter-spacing: .06em;
  color: #fff;
  background:
    radial-gradient(120% 120% at 20% 20%, rgba(167,139,250,.95), rgba(14,165,233,.95)),
    linear-gradient(135deg, rgba(34,197,94,.8), rgba(14,165,233,.8));
  box-shadow: var(--shadow-soft);
}
.brand-name{
  font-weight: 900;
  letter-spacing: .02em;
  font-size: 14px;
}
.brand-tagline{
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.header-actions{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn{
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
  user-select: none;
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0); }

.btn-primary{
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover{ box-shadow: var(--shadow); }

.btn-outline{
  border-color: rgba(14,165,233,.35);
  background: rgba(14,165,233,.06);
}
.btn-ghost{
  border-color: var(--line);
  background: rgba(2,6,23,.02);
}
.btn-lg{
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 15px;
}

.site-main{ padding-bottom: 40px; }

.hero{
  position: relative;
  overflow: clip;
  border-bottom: 1px solid var(--line);
}
.hero-inner{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
  padding: 44px 0 34px;
}
.hero-bg{
  position:absolute;
  inset:-200px -100px auto -100px;
  height: 520px;
  background:
    radial-gradient(closest-side at 12% 26%, rgba(14,165,233,.22), transparent 62%),
    radial-gradient(closest-side at 62% 22%, rgba(167,139,250,.22), transparent 62%),
    radial-gradient(closest-side at 24% 84%, rgba(34,197,94,.14), transparent 58%),
    radial-gradient(closest-side at 84% 78%, rgba(14,165,233,.10), transparent 58%);
  filter: blur(2px);
  pointer-events:none;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(2,6,23,.10);
  background: rgba(255,255,255,.75);
  box-shadow: var(--shadow-soft);
  font-weight: 800;
  font-size: 13px;
}
.hero h1{
  margin: 14px 0 10px;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.lead{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  max-width: 60ch;
}
.cta-row{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}

.quick-contacts{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.chip{
  border: 1px dashed rgba(2,6,23,.18);
  background: rgba(255,255,255,.6);
  padding: 9px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  transition: background .12s ease, transform .12s ease;
}
.chip:hover{
  background: rgba(14,165,233,.08);
  transform: translateY(-1px);
}

.card{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow-soft);
  padding: 18px;
}
.card h2{
  margin:0 0 10px;
  font-size: 16px;
  letter-spacing: -.01em;
}
.checklist{
  list-style:none;
  padding:0;
  margin: 0;
  display:grid;
  gap: 10px;
}
.checklist li{
  position: relative;
  padding-left: 30px;
  font-weight: 700;
}
.checklist li::before{
  content:"✓";
  position:absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  display:grid;
  place-items:center;
  background: rgba(34,197,94,.14);
  border: 1px solid rgba(34,197,94,.28);
}
.card-cta{ margin-top: 14px; }

.section{ padding: 56px 0; }
.section-alt{
  background: linear-gradient(180deg, rgba(2,6,23,.02), rgba(2,6,23,.00));
  border-top: 1px solid var(--line);
}
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.section-head h2{
  margin:0;
  font-size: 26px;
  letter-spacing: -.01em;
}
.section-head p{
  margin:0;
  color: var(--muted);
  max-width: 70ch;
}

.grid{ display:grid; gap: 14px; }
.services-grid{
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.tile{
  grid-column: span 2;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  padding: 16px;
  position: relative;
  overflow:hidden;
}
.tile::after{
  content:"";
  position:absolute;
  inset:auto -40px -40px auto;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(14,165,233,.20), transparent 60%);
  transform: rotate(15deg);
  pointer-events:none;
}
.tile h3{
  margin: 0 0 6px;
  font-size: 16px;
}
.tile p{
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}
.tile-link{
  font-weight: 900;
  color: rgba(14,165,233,1);
}
.tile-link:hover{ text-decoration: underline; }

.callout{
  margin-top: 16px;
  border: 1px solid rgba(14,165,233,.22);
  background: rgba(14,165,233,.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.callout-inner{
  padding: 18px;
  display:flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.callout h3{ margin:0 0 4px; }
.callout p{ margin:0; color: var(--muted); }
.callout-actions{ display:flex; gap: 10px; flex-wrap: wrap; }

.contact-grid{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.contact-card{
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 18px;
}
.contact-card h3{ margin:0 0 6px; }
.muted{ color: var(--muted); margin: 0 0 14px; }
.contact-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items:center;
}

.final-cta{
  margin-top: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(167,139,250,.22);
  background: rgba(167,139,250,.06);
  box-shadow: var(--shadow-soft);
}
.final-cta-inner{
  padding: 18px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.final-cta h3{ margin:0 0 4px; }
.final-cta p{ margin:0; color: var(--muted); }
.final-cta-actions{ display:flex; gap: 10px; flex-wrap: wrap; }

.site-footer{
  border-top: 1px solid var(--line);
  padding: 26px 0;
}
.footer-inner{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-brand{
  font-weight: 900;
  letter-spacing: .02em;
}
.footer-tagline, .footer-note{
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}
.footer-contacts{
  display:flex;
  flex-direction: column;
  gap: 8px;
}
.footer-contacts a{
  font-weight: 800;
  color: rgba(14,165,233,1);
}
.footer-contacts a:hover{ text-decoration: underline; }

/* Floating WhatsApp */
.floating-bar{
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 60;
  display:flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.fab{
  border: 1px solid rgba(34,197,94,.28);
  background: rgba(34,197,94,.12);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: var(--shadow-soft);
  cursor:pointer;
  display:flex;
  align-items:center;
  gap: 10px;
}
.fab:hover{ box-shadow: var(--shadow); }
.fab-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(34,197,94,1);
  box-shadow: 0 0 0 6px rgba(34,197,94,.16);
}
.fab-panel{
  width: min(260px, calc(100vw - 28px));
  border: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow:hidden;
}
.fab-link{
  display:block;
  padding: 12px 14px;
  font-weight: 900;
  border-bottom: 1px solid var(--line);
}
.fab-link:last-child{ border-bottom: none; }
.fab-link:hover{ background: rgba(14,165,233,.06); }

/* Toast */
.toast{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: rgba(2,6,23,.88);
  color: #fff;
  padding: 10px 12px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  z-index: 70;
  font-weight: 800;
  font-size: 13px;
}

/* Responsive */
@media (max-width: 980px){
  .hero-inner{ grid-template-columns: 1fr; }
  .services-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile{ grid-column: auto; }
  .contact-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 420px){
  .header-actions .btn-ghost{ display:none; }
}


/* Ocultar barra fallback cuando el CSS está cargado */
#fallback{display:none;}
