/* =========================================================
   CARPI INSTAL·LACIONS · STYLES v2
   Optimizado para móvil + performance
   ========================================================= */

:root {
  --red: #D73A2C;
  --red-dark: #B82E22;
  --red-soft: #FDEDEB;
  --ink: #1a1a1d;
  --ink-soft: #2d2d33;
  --ink-mute: #6b7076;
  --line: #e8e8ea;
  --line-soft: #f2f2f4;
  --bg: #ffffff;
  --bg-warm: #faf9f7;
  --bg-dark: #1a1a1d;
  --display: 'Instrument Serif', 'Times New Roman', serif;
  --body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 32px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a, button {
  -webkit-tap-highlight-color: rgba(215,58,44,0.15);
  touch-action: manipulation;
}

body, html { max-width: 100vw; }

/* ============== NAV ============== */
nav {
  position: fixed;
  top: 16px; left: 16px; right: 16px;
  padding: 10px 16px 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 100px;
  transition: background .3s ease, box-shadow .3s ease;
}
nav.scrolled {
  background: rgba(255,255,255,0.96);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding-right: 12px;
}
.nav-brand img { height: 36px; width: auto; }
.nav-brand .brand-text {
  font-family: var(--display);
  font-size: 20px;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1;
}
.nav-brand .brand-text em { font-style: italic; color: var(--red); }
.nav-brand .brand-sub {
  display: block;
  font-family: var(--body);
  font-size: 9px;
  font-style: normal;
  color: var(--ink-mute);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .2s ease;
  position: relative;
}
.nav-links a:hover { color: var(--red); }
.nav-links a.active { color: var(--red); font-weight: 600; }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  background: var(--red);
  border-radius: 50%;
}

.nav-cta {
  padding: 10px 20px;
  background: var(--ink);
  color: #fff !important;
  border-radius: 100px;
  font-weight: 600;
  transition: background .25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--red) !important; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  padding: 8px;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
}
.mobile-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  position: relative;
  transition: background .3s;
}
.mobile-toggle span::before,
.mobile-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px; height: 2px;
  background: var(--ink);
  transition: transform .3s, top .3s;
}
.mobile-toggle span::before { top: -7px; }
.mobile-toggle span::after { top: 7px; }
.mobile-toggle.open span { background: transparent; }
.mobile-toggle.open span::before { top: 0; transform: rotate(45deg); }
.mobile-toggle.open span::after { top: 0; transform: rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  z-index: 99;
  padding: 100px 24px 40px;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--display);
  font-size: 32px;
  color: var(--ink);
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1;
}
.mobile-menu a.cta {
  background: var(--ink);
  color: #fff;
  padding: 18px 28px;
  border-radius: 100px;
  text-align: center;
  font-family: var(--body);
  font-size: 16px;
  font-weight: 600;
  border: none;
  margin-top: 24px;
  line-height: 1;
}
.mobile-menu a.cta.wa { background: #25D366; margin-top: 12px; }

/* ============== TYPOGRAPHY ============== */
h1 {
  font-family: var(--display);
  font-size: clamp(40px, 7vw, 96px);
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}
h1 em { font-style: italic; color: var(--red); }

h2 {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.025em;
  max-width: 18ch;
}
h2 em { font-style: italic; color: var(--red); }

h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.015em;
}

/* ============== BUTTONS ============== */
.btn-primary,
.btn-whatsapp,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  min-height: 48px;
  text-decoration: none;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  font-family: var(--body);
  transition: all .3s ease;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  border: none;
}
.btn-primary:hover { background: var(--red); transform: translateY(-2px); }
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border: none;
}
.btn-whatsapp:hover { background: #1fb755; transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-outline:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.btn-primary svg, .btn-whatsapp svg, .btn-outline svg {
  width: 18px; height: 18px; flex-shrink: 0;
}

/* ============== SECTIONS ============== */
section { padding: clamp(60px, 10vw, 100px) var(--gutter); }
.container { max-width: var(--container); margin: 0 auto; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.section-label::before {
  content: '';
  width: 20px; height: 2px;
  background: var(--red);
  flex-shrink: 0;
}

.section-intro {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--ink-mute);
  max-width: 560px;
  margin-top: 20px;
  line-height: 1.65;
}

/* ============== PAGE HERO ============== */
.page-hero {
  padding: clamp(110px, 14vw, 160px) var(--gutter) clamp(50px, 8vw, 80px);
  background: var(--bg-warm);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(215,58,44,0.08), transparent 70%);
  pointer-events: none;
}
.page-hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
}
.breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--ink-mute); text-decoration: none; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .current { color: var(--ink); font-weight: 600; }
.breadcrumb span.sep { opacity: 0.4; }

.page-hero h1 { max-width: 16ch; margin-bottom: 20px; }
.page-hero-sub {
  font-size: clamp(16px, 2.3vw, 19px);
  color: var(--ink-mute);
  max-width: 640px;
  line-height: 1.6;
}

/* ============== WHATSAPP FLOAT ============== */
.wa-float {
  position: fixed;
  bottom: 20px; right: 20px;
  width: 58px; height: 58px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37,211,102,0.4);
  z-index: 98;
  text-decoration: none;
  transition: transform .3s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }
.wa-float::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: ring 2s infinite;
  pointer-events: none;
}
@keyframes ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* ============== FOOTER ============== */
footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: clamp(60px, 8vw, 80px) var(--gutter) 32px;
}
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(32px, 5vw, 60px);
  margin-bottom: 60px;
}
.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.footer-brand img { height: 48px; width: auto; }
.footer-brand .txt {
  font-family: var(--display);
  font-size: clamp(20px, 3vw, 24px);
  color: #fff;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.footer-brand .txt em { font-style: italic; color: #ff8a7e; }
.footer-brand .txt span {
  display: block;
  font-family: var(--body);
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 4px;
}
.footer-brand-block p {
  font-size: 14px;
  max-width: 340px;
  line-height: 1.6;
}
.footer-col h4 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 18px;
  font-style: italic;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 14px;
  transition: color .2s;
  display: inline-block;
  padding: 4px 0;
}
.footer-col a:hover { color: #ff8a7e; }

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  gap: 12px;
  flex-wrap: wrap;
}

/* ============== CTA BANNER ============== */
.cta-banner {
  background: var(--bg-dark);
  color: #fff;
  padding: clamp(70px, 10vw, 100px) var(--gutter);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -150px; right: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(215,58,44,0.25), transparent 70%);
  pointer-events: none;
}
.cta-banner-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.cta-banner h2 { color: #fff; margin: 0 auto 24px; max-width: 20ch; }
.cta-banner p {
  color: rgba(255,255,255,0.7);
  font-size: clamp(16px, 2vw, 18px);
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner .btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-banner .btn-primary { background: #fff; color: var(--ink); }
.cta-banner .btn-primary:hover { background: var(--red); color: #fff; }

/* ============== REVEAL ============== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ============== UTILS ============== */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}
.pill.red { background: var(--red-soft); color: var(--red-dark); border-color: transparent; }
.pill.dark { background: var(--ink); color: #fff; border-color: var(--ink); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============== RESPONSIVE ============== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 840px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .nav-brand .brand-text { font-size: 15px; }
  .nav-brand .brand-sub { font-size: 8px; }
  .nav-brand img { height: 28px; }
  nav { padding: 8px 12px; top: 8px; left: 8px; right: 8px; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .nav-brand .brand-text { font-size: 14px; }
  .nav-brand img { height: 26px; }
  .wa-float { bottom: 16px; right: 16px; width: 52px; height: 52px; }
  .wa-float svg { width: 24px; height: 24px; }
}

@media (max-width: 380px) {
  .nav-brand .brand-sub { display: none; }
  .cta-banner .btns { flex-direction: column; align-items: stretch; }
}

/* =========================================================
   MODAL PRESUPUESTO (Pop-up del formulario)
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 15, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .3s ease;
  overflow-y: auto;
}
.modal-overlay.open {
  display: flex;
  opacity: 1;
}

.modal-box {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  position: relative;
  transform: translateY(30px) scale(0.96);
  transition: transform .35s cubic-bezier(0.34, 1.3, 0.4, 1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  -webkit-overflow-scrolling: touch;
}
.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all .2s;
  z-index: 2;
  font-family: var(--body);
  line-height: 1;
}
.modal-close:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: rotate(90deg);
}

.modal-header {
  padding: clamp(28px, 4vw, 36px) clamp(28px, 4vw, 40px) 0;
}
.modal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--red-soft);
  color: var(--red-dark);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.modal-eyebrow .dot {
  width: 7px; height: 7px;
  background: var(--red);
  border-radius: 50%;
}
.modal-title {
  font-family: var(--display);
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 8px;
}
.modal-title em {
  font-style: italic;
  color: var(--red);
}
.modal-sub {
  font-size: 14px;
  color: var(--ink-mute);
  margin-bottom: 28px;
}

.modal-body {
  padding: 0 clamp(28px, 4vw, 40px) clamp(28px, 4vw, 36px);
}

/* Reutiliza estilos del form de la home */
.modal-body .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.modal-body .field { display: flex; flex-direction: column; }
.modal-body .field.full { grid-column: 1 / -1; }
.modal-body .field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.modal-body .field input,
.modal-body .field select,
.modal-body .field textarea {
  padding: 13px 14px;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--body);
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  transition: border-color .25s, box-shadow .25s;
  outline: none;
  width: 100%;
}
.modal-body .field textarea {
  min-height: 80px;
  resize: vertical;
}
.modal-body .field input:focus,
.modal-body .field select:focus,
.modal-body .field textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
}

.modal-submit {
  width: 100%;
  margin-top: 8px;
  padding: 16px;
  min-height: 52px;
  background: var(--ink);
  color: #fff;
  border: none;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 100px;
  transition: background .25s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.modal-submit:hover { background: var(--red); }
.modal-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.modal-note {
  font-size: 11px;
  color: var(--ink-mute);
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}

.modal-wa-bridge {
  margin-top: 20px;
  padding: 16px;
  background: var(--bg-warm);
  border-radius: 12px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-mute);
}
.modal-wa-bridge a {
  color: #25D366;
  font-weight: 600;
  text-decoration: none;
}

/* Estado éxito dentro del modal */
.modal-success {
  display: none;
  padding: 50px 30px;
  text-align: center;
}
.modal-success.show { display: block; }
.modal-success .check {
  width: 72px; height: 72px;
  background: var(--red-soft);
  color: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 36px;
}
.modal-success h3 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 10px;
}
.modal-success p {
  color: var(--ink-mute);
  font-size: 15px;
  margin-bottom: 24px;
}
.modal-success .close-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
}
.modal-success .close-btn:hover { background: var(--red); }

/* Bloqueo scroll cuando modal abierto */
body.modal-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-box {
    max-height: 95vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transform: translateY(100%);
  }
  .modal-overlay.open .modal-box {
    transform: translateY(0);
  }
  .modal-body .form-row { grid-template-columns: 1fr; gap: 12px; }
}

/* =========================================================
   v4 — ESTRUCTURA TIPO CORPORATIVO (Cuidacasa)
   Manteniendo paleta roja/negra de CARPI
   ========================================================= */

/* ============== HERO SLIDER ============== */
.hero-slider {
  position: relative;
  width: 100%;
  height: clamp(520px, 85vh, 780px);
  overflow: hidden;
  background: var(--bg-dark);
  margin-top: 0;
}
.slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  display: flex;
  align-items: center;
  padding: 100px clamp(20px, 5vw, 80px) 40px;
}
.slide.active { opacity: 1; z-index: 2; }
.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.slide-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(13,13,15,0.92) 0%,
    rgba(13,13,15,0.78) 40%,
    rgba(13,13,15,0.5) 80%,
    rgba(13,13,15,0.35) 100%
  );
}
.slide-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  color: #fff;
}
.slide-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(215, 58, 44, 0.2);
  border: 1px solid rgba(215, 58, 44, 0.4);
  color: #ff8a7e;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}
.slide-eyebrow .num {
  color: var(--red);
  font-weight: 700;
}
.slide h1 {
  font-size: clamp(36px, 6.5vw, 76px);
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.02;
  max-width: 16ch;
}
.slide h1 em { color: #ff8a7e; font-style: italic; }
.slide-desc {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.6;
}
.slide-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.slide-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  min-height: 48px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  font-family: var(--body);
  transition: all .3s ease;
}
.slide-cta-primary:hover {
  background: #fff;
  color: var(--ink);
  transform: translateY(-2px);
}
.slide-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  min-height: 48px;
  background: transparent;
  color: #fff;
  text-decoration: none;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid rgba(255,255,255,0.3);
  transition: all .3s ease;
}
.slide-cta-secondary:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

/* Slider controls */
.slider-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.slider-dot {
  width: 40px;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background .3s ease;
  padding: 0;
}
.slider-dot.active {
  background: var(--red);
}

.slider-arrows {
  position: absolute;
  bottom: 28px;
  right: clamp(20px, 5vw, 60px);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.slider-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s ease;
}
.slider-arrow:hover {
  background: var(--red);
  border-color: var(--red);
}
.slider-arrow svg { width: 18px; height: 18px; }

/* Slide counter */
.slide-counter {
  position: absolute;
  top: 50%;
  right: 30px;
  transform: translateY(-50%);
  z-index: 10;
  color: rgba(255,255,255,0.5);
  font-family: var(--display);
  font-size: 18px;
  font-style: italic;
  writing-mode: vertical-rl;
  letter-spacing: 0.1em;
}
.slide-counter .current { color: var(--red); font-weight: 700; }

/* ============== 3 TARJETAS DE NAVEGACIÓN (tipo Cuidacasa) ============== */
.three-cards {
  padding: clamp(60px, 10vw, 100px) var(--gutter);
  background: var(--bg-warm);
  border-bottom: 1px solid var(--line);
}
.three-cards-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.three-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-decoration: none;
  color: inherit;
  transition: all .3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.three-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.three-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}
.three-card:hover::before { transform: scaleX(1); }

.three-card-eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.three-card h3 {
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.15;
}
.three-card h3 em { font-style: italic; color: var(--red); }
.three-card p {
  color: var(--ink-mute);
  font-size: 15px;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 24px;
}
.three-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.three-card-link::after {
  content: '→';
  transition: transform .3s;
}
.three-card:hover .three-card-link::after { transform: translateX(5px); }

/* ============== EXPANSION / STORYTELLING ============== */
.expansion {
  padding: clamp(80px, 12vw, 140px) var(--gutter);
  background: var(--bg-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.expansion::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(215,58,44,0.2), transparent 70%);
  pointer-events: none;
}
.expansion-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  position: relative;
  z-index: 2;
}
.expansion-label {
  color: #ff8a7e;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.expansion-label::before {
  content: '';
  width: 20px; height: 2px;
  background: #ff8a7e;
}
.expansion h2 {
  color: #fff;
  font-size: clamp(36px, 5.5vw, 68px);
  margin-bottom: 28px;
  max-width: 18ch;
}
.expansion h2 em { color: #ff8a7e; font-style: italic; }
.expansion-lead {
  font-size: clamp(17px, 2.2vw, 21px);
  color: rgba(255,255,255,0.85);
  line-height: 1.55;
  margin-bottom: 24px;
}
.expansion-body {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 20px;
}
.expansion-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 32px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
}
.exp-metric .num {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 56px);
  color: #ff8a7e;
  font-style: italic;
  line-height: 1;
  margin-bottom: 6px;
}
.exp-metric .label {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
}

/* ============== 4 VALORES NUMERADOS (01-04) ============== */
.values-numbered {
  padding: clamp(60px, 10vw, 100px) var(--gutter);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.values-numbered-header {
  max-width: var(--container);
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(40px, 5vw, 60px);
  align-items: end;
}
.values-numbered-header h2 { max-width: 14ch; }
.values-numbered-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.value-num-card {
  padding: 40px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  transition: background .25s;
}
.value-num-card:hover {
  background: var(--bg-warm);
}
.value-num-card .big-num {
  font-family: var(--display);
  font-size: clamp(60px, 7vw, 80px);
  color: var(--red);
  line-height: 1;
  margin-bottom: 28px;
  font-weight: 400;
  letter-spacing: -0.03em;
}
.value-num-card h4 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 14px;
  line-height: 1.2;
}
.value-num-card p {
  font-size: 14px;
  color: var(--ink-mute);
  line-height: 1.6;
}

/* ============== BLOG / NOTICIAS ============== */
.blog-section {
  padding: clamp(60px, 10vw, 100px) var(--gutter);
  background: var(--bg-warm);
  border-bottom: 1px solid var(--line);
}
.blog-header {
  max-width: var(--container);
  margin: 0 auto 50px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 20px;
}
.blog-header h2 { max-width: 20ch; }
.blog-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-post {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all .3s ease;
  display: flex;
  flex-direction: column;
}
.blog-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}
.blog-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-warm);
}
.blog-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s;
}
.blog-post:hover .blog-img img { transform: scale(1.05); }
.blog-body {
  padding: 24px 28px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 14px;
}
.blog-meta .cat { color: var(--red); }
.blog-post h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  flex: 1;
}
.blog-post .read-more {
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-top: 12px;
}

/* ============== FOOTER EXPANDIDO (v4) ============== */
footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: clamp(60px, 8vw, 90px) var(--gutter) 32px;
}
.footer-top {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(32px, 5vw, 60px);
  margin-bottom: 60px;
}
.footer-brand-wide .footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.footer-brand-wide .footer-brand img { height: 56px; width: auto; }
.footer-brand-wide .txt {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 26px);
  color: #fff;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.footer-brand-wide .txt em { font-style: italic; color: #ff8a7e; }
.footer-brand-wide .txt span {
  display: block;
  font-family: var(--body);
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 4px;
}
.footer-intro {
  font-size: 14px;
  line-height: 1.65;
  max-width: 340px;
  margin-bottom: 24px;
}
.footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-socials-label {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-right: 4px;
}
.social-link {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: all .25s;
}
.social-link:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.footer-col h4 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 18px;
  font-style: italic;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 14px;
  transition: color .2s;
  display: inline-block;
  padding: 4px 0;
}
.footer-col a:hover { color: #ff8a7e; }
.footer-zones li {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  padding: 4px 0;
  position: relative;
  padding-left: 14px;
}
.footer-zones li::before {
  content: '•';
  color: var(--red);
  position: absolute;
  left: 0;
  font-weight: 700;
}

/* Offices (2 columnas) */
.footer-offices {
  max-width: var(--container);
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-office h5 {
  font-family: var(--display);
  font-size: 16px;
  color: #ff8a7e;
  font-style: italic;
  margin-bottom: 10px;
  font-weight: 400;
}
.footer-office p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 14px;
}
.footer-phone, .footer-email {
  display: inline-block;
  color: #fff !important;
  font-size: 15px;
  text-decoration: none;
  margin-right: 14px;
  margin-bottom: 6px;
  font-weight: 600;
  transition: color .2s;
}
.footer-phone:hover, .footer-email:hover { color: #ff8a7e !important; }
.footer-hours {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 6px;
}

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  gap: 12px;
  flex-wrap: wrap;
}

/* ============== RESPONSIVE v4 ============== */
@media (max-width: 1024px) {
  .three-cards-grid { grid-template-columns: 1fr; }
  .expansion-inner { grid-template-columns: 1fr; }
  .values-numbered-header { grid-template-columns: 1fr; gap: 20px; }
  .values-numbered-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand-wide { grid-column: span 2; }
  .footer-offices { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 640px) {
  .slide-counter { display: none; }
  .slider-arrows { bottom: 70px; }
  .slider-dots { bottom: 24px; }
  .values-numbered-grid { grid-template-columns: 1fr; }
  .value-num-card { border-right: none; }
  .blog-grid { grid-template-columns: 1fr; }
  .expansion-metrics { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand-wide { grid-column: span 1; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
