/* ============================================
   SATIO PROPIEDADES - Base Styles 2026
   ============================================ */

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-primary-dark); }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; }
input, select, textarea { outline: none; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-tight);
  color: var(--color-text);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }

@media (min-width: 1024px) {
  h1 { font-size: var(--font-size-5xl); }
  h2 { font-size: var(--font-size-4xl); }
}

p { color: var(--color-text-light); line-height: var(--line-height-relaxed); }

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 640px) {
  .container { padding: 0 var(--space-6); }
}

@media (min-width: 1024px) {
  .container { padding: 0 var(--space-8); }
}

.section {
  padding: var(--space-16) 0;
}

@media (min-width: 1024px) {
  .section { padding: var(--space-24) 0; }
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: var(--font-size-lg);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4);
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

/* Grid System */
.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Flex utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* Text utilities */
.text-center { text-align: center; }
.text-sm { font-size: var(--font-size-sm); }
.text-lg { font-size: var(--font-size-lg); }
.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.text-muted { color: var(--color-text-muted); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold { font-weight: var(--font-weight-bold); }

/* Visibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hidden { display: none !important; }

@media (max-width: 639px) {
  .hide-mobile { display: none !important; }
}

@media (min-width: 640px) {
  .hide-desktop { display: none !important; }
}

/* ============================================
   PULSO — motivo signature de Satio (ECG animado)
   "Satio" = el pulso de tu próximo hogar.
   ============================================ */
/* Camino de hormiga — motivo signature Satio: senda punteada + hormiga al final */
.latido-pulse { display:block; position:relative; width:100%; max-width:280px; height:46px; overflow:visible; color: var(--color-pulse); }
.latido-pulse svg { width:100%; height:100%; overflow:visible; display:block; }
.latido-pulse .ecg-base { fill:none; stroke: currentColor; stroke-width:2.4; opacity:.25; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray: 1 9; }
.latido-pulse .ecg-lead {
  fill:none; stroke: var(--color-pulse); stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round;
  stroke-dasharray: 34 600; stroke-dashoffset: 600;
  filter: drop-shadow(0 0 5px var(--color-pulse));
  animation: ecg-sweep 2.6s linear infinite;
}
@keyframes ecg-sweep { from { stroke-dashoffset: 600; } to { stroke-dashoffset: -44; } }
.latido-pulse::after { content:''; position:absolute; right:-10px; top:2px; width:17px; height:21px; background:url('/assets/ant-navy.png?v=22') center/contain no-repeat; opacity:.9; }
.latido-pulse.on-dark { color:#fff; }
.latido-pulse.on-dark .ecg-lead { stroke:#fff; filter: drop-shadow(0 0 7px rgba(255,255,255,.95)); }
.latido-pulse.on-dark::after { background-image:url('/assets/ant-white.png?v=22'); }
@media (prefers-reduced-motion: reduce){
  .latido-pulse .ecg-lead{ animation:none; stroke-dasharray:none; stroke-dashoffset:0; opacity:.9; }
}

/* Divisor de sección con pulso centrado */
.pulse-divider { display:flex; align-items:center; justify-content:center; gap:var(--space-3); margin:0 auto var(--space-3); color:var(--color-primary); }
.pulse-divider::before, .pulse-divider::after { content:''; height:1px; width:48px; background:linear-gradient(90deg, transparent, var(--color-border)); }
.pulse-divider .latido-pulse { max-width:120px; height:30px; }

/* Tipografía display — títulos con carácter editorial cálido */
h1, h2, h3, .display { font-family: var(--font-display); letter-spacing:-0.015em; }
h1 { font-weight: 600; }
h2, h3 { font-weight: 600; }
