/* =========================================================
   ACTIVAMENTE — Centro de Psicología
   Paleta calma inspirada en el logo (verde bosque + ocre suave),
   desaturada a propósito para transmitir tranquilidad sobre crema
   ========================================================= */

:root {
  /* Neutros cálidos */
  --color-cream: #FBF8F3;
  --color-cream-mid: #F4EEE3;
  --color-cream-deep: #ECE3D3;

  /* Texto */
  --color-text: #37342C;
  --color-text-soft: #6B6558;
  --color-text-faint: #948C7C;

  /* Verde bosque (color principal, tomado del logo y muy desaturado) */
  --color-sage: #74936D;
  --color-sage-dark: #56704F;
  --color-sage-darker: #3C4F38;
  --color-sage-light: #A6BF9F;
  --color-sage-pale: #E3EBDF;

  /* Ocre suave (acento, tomado del amarillo de la cabeza del logo) */
  --color-terracotta: #B69248;
  --color-terracotta-dark: #93753A;
  --color-terracotta-pale: #EFE6CD;

  /* Utilidad */
  --color-whatsapp: #25D366;
  --color-whatsapp-dark: #1EBE57;
  --color-white: #FFFFFF;

  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --shadow-soft: 0 4px 24px rgba(55, 52, 44, 0.08);
  --shadow-mid: 0 10px 40px rgba(55, 52, 44, 0.12);

  --container-w: 1180px;
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-sage-darker);
  line-height: 1.2;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 500; }
h3 { font-size: 1.3rem; }

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

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-terracotta-dark);
  margin-bottom: 12px;
}

.section { padding: 88px 0; }
.section--tight { padding: 64px 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head--wide { max-width: 760px; }

@media (min-width: 701px) {
  .nowrap-desktop { white-space: nowrap; }
}
.section-head p { color: var(--color-text-soft); font-size: 1.05rem; margin-top: 14px; }

.bg-cream-mid { background: var(--color-cream-mid); }
.bg-sage { background: var(--color-sage-darker); color: var(--color-cream); }
.bg-sage h2, .bg-sage h3 { color: var(--color-cream); }

/* Placeholder / editable flag */
.tag-editar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFF4E0;
  color: #8A5A00;
  border: 1px dashed #D9A441;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  margin-top: 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-align: center;
  max-width: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}
@media (hover: hover) {
  .btn--whatsapp:hover {
    background: var(--color-whatsapp-dark);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  }
}

.btn--primary {
  background: var(--color-sage);
  color: #fff;
  box-shadow: 0 6px 20px rgba(124, 145, 121, 0.35);
}
.btn--primary:hover { background: var(--color-sage-dark); }

.btn--outline {
  background: transparent;
  color: var(--color-sage-darker);
  border: 2px solid var(--color-sage);
}
.btn--outline:hover { background: var(--color-sage-pale); }

.btn--ghost-light {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn--ghost-light:hover { background: rgba(255,255,255,0.22); }

.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn--sm { padding: 10px 18px; font-size: 0.88rem; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(236, 227, 211, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(60, 79, 56, 0.1);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.logo {
  display: flex;
  align-items: center;
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(60, 79, 56, 0.08);
  color: var(--color-sage-darker);
  border: 1px solid rgba(60, 79, 56, 0.18);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 34px;
  align-items: center;
}
.nav-links a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--color-text-soft);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--color-sage-dark); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-sage-darker);
}
.header-phone svg { width: 16px; height: 16px; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(60, 79, 56, 0.08);
  border: 1px solid rgba(60, 79, 56, 0.18);
  border-radius: 10px;
  position: relative;
  z-index: 160;
}
.nav-toggle-icon {
  position: relative;
  width: 20px;
  height: 14px;
}
.nav-toggle-icon span {
  width: 100%;
  height: 2px;
  background: var(--color-sage-darker);
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.nav-toggle-icon span:nth-child(1) { top: 0; }
.nav-toggle-icon span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle-icon span:nth-child(3) { bottom: 0; top: auto; }
.nav-toggle.active .nav-toggle-icon span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav-toggle.active .nav-toggle-icon span:nth-child(2) { opacity: 0; }
.nav-toggle.active .nav-toggle-icon span:nth-child(3) { bottom: 50%; top: auto; transform: translateY(50%) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 48px 0 80px;
  background:
    radial-gradient(circle at 85% 15%, rgba(201, 123, 93, 0.14), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(124, 145, 121, 0.18), transparent 45%),
    var(--color-cream);
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-areas:
    "intro visual"
    "trust visual";
  column-gap: 56px;
  row-gap: 28px;
  align-items: center;
}
.hero-intro { grid-area: intro; }
.hero-visual { grid-area: visual; }
.hero-trust { grid-area: trust; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-sage-pale);
  color: var(--color-sage-darker);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-badge svg { width: 16px; height: 16px; }
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--color-terracotta-dark); }
.hero-sub {
  font-size: 1.12rem;
  color: var(--color-text-soft);
  max-width: 520px;
  margin-bottom: 8px;
}
.hero-trust {
  max-width: 480px;
  border-top: 1px solid var(--color-cream-deep);
  padding-top: 20px;
}
.hero-trust p {
  font-size: 0.95rem;
  color: var(--color-text-soft);
  margin-bottom: 18px;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-mid);
}
@media (min-width: 961px) {
  .hero-visual { aspect-ratio: 6/5; }
}

/* ---------- Value strip ---------- */
.value-strip {
  background: var(--color-white);
  border-top: 1px solid var(--color-cream-deep);
  border-bottom: 1px solid var(--color-cream-deep);
}
.value-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 24px;
}
.value-item { display: flex; align-items: flex-start; gap: 14px; }
.value-item svg {
  width: 26px; height: 26px;
  color: var(--color-sage-dark);
  flex-shrink: 0;
  margin-top: 2px;
}
.value-item strong { display: block; font-size: 0.95rem; margin-bottom: 3px; }
.value-item span { font-size: 0.85rem; color: var(--color-text-soft); }

/* ---------- Especialidades ---------- */
.spec-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.spec-card {
  flex: 0 1 calc(25% - 12px);
  background: var(--color-white);
  border-radius: 14px;
  padding: 18px;
  border: 1px solid var(--color-cream-deep);
  border-top: 3px solid var(--color-sage-light);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.spec-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-top-color: var(--color-sage);
}
.spec-card--accent { border-top-color: var(--color-terracotta); }
.spec-card--accent:hover { border-top-color: var(--color-terracotta-dark); }

.spec-card h3 { font-size: 1.02rem; margin: 0 0 8px; }
.spec-card p { color: var(--color-text-soft); font-size: 0.86rem; line-height: 1.55; }

/* ---------- Proceso ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
  position: relative;
}
.process-step { position: relative; text-align: center; padding: 0 10px; }
.process-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--color-sage-darker);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.process-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.process-step p { font-size: 0.88rem; color: var(--color-text-soft); }

/* ---------- Instalaciones ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, var(--color-cream-deep), var(--color-sage-pale));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.gallery-item svg { width: 34px; height: 34px; color: var(--color-sage-dark); margin-bottom: 10px; }
.gallery-item strong { font-size: 0.95rem; color: var(--color-text); }
.gallery-item span { font-size: 0.78rem; color: var(--color-text-faint); margin-top: 4px; }
.gallery-item--wide { grid-column: span 2; }

/* ---------- Sobre nosotros ---------- */
.about-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  grid-template-areas:
    "visual heading"
    "visual copy";
  column-gap: 56px;
  row-gap: 16px;
  align-items: center;
}
.about-heading { grid-area: heading; align-self: end; }
.about-visual {
  grid-area: visual;
  aspect-ratio: 1/1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(55, 52, 44, 0.22), 0 8px 20px rgba(55, 52, 44, 0.12);
}
.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-copy { grid-area: copy; align-self: start; }
.about-copy p { color: var(--color-text-soft); margin-bottom: 16px; font-size: 1.02rem; }


/* ---------- Contacto ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}
.contact-info-card {
  background: var(--color-sage-darker);
  color: var(--color-cream);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
}
.contact-info-card h3 { color: #fff; margin-bottom: 24px; }
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}
.contact-row svg { width: 22px; height: 22px; color: var(--color-sage-light); flex-shrink: 0; margin-top: 2px; }
.contact-row strong { display: block; font-size: 0.92rem; margin-bottom: 2px; }
.contact-row span, .contact-row a { font-size: 0.88rem; color: rgba(251,248,243,0.78); }
.contact-row a:hover { color: #fff; }
.contact-social {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}
.contact-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
}
.contact-social a:hover { background: rgba(255,255,255,0.22); }
.contact-social svg { width: 18px; height: 18px; }

.contact-map-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}
.contact-map {
  flex: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 280px;
}
.contact-map iframe { width: 100%; height: 100%; border: 0; }
.contact-map-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-cream-deep);
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.contact-map-link svg { width: 18px; height: 18px; color: var(--color-terracotta); }
.contact-map-link:hover { border-color: var(--color-sage-light); background: var(--color-cream-mid); }



/* ---------- Footer ---------- */
.footer {
  background: #2E3A2C;
  color: rgba(251,248,243,0.75);
  padding: 56px 0 24px;
  margin-top: 88px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo {
  display: inline-block;
  background: var(--color-cream);
  padding: 10px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
}
.footer-logo img { height: 40px; width: auto; display: block; }

@media (min-width: 701px) {
  .footer-logo { display: none; }
}
.footer-col h4 { color: #fff; font-size: 0.9rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col li { margin-bottom: 10px; font-size: 0.88rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- WhatsApp float button ---------- */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  background: var(--color-whatsapp);
  color: #fff;
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: 0.2s ease;
  opacity: 1;
  visibility: visible;
}
body.menu-open .wa-float {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@media (hover: hover) {
  .wa-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
  }
}
.wa-float svg { width: 32px; height: 32px; }

/* Pulso */
.wa-float::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--color-whatsapp);
  animation: wa-pulse 2s infinite;
  z-index: -1;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* El header ya muestra el botón de WhatsApp a partir de 701px */
@media (min-width: 701px) {
  .wa-float { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .header-badge { display: none; }
}

@media (max-width: 960px) {
  .hero .container {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "visual"
      "trust";
    row-gap: 16px;
  }
  .hero-sub { margin-bottom: 20px; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .value-strip .container { grid-template-columns: repeat(2, 1fr); }
  .spec-card { flex-basis: calc(50% - 8px); }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .about-wrap {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "visual"
      "copy";
  }
  .about-heading { text-align: center; }
  .about-visual { max-width: 360px; margin: 0 auto; }
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-map { min-height: 280px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .break-mobile { display: block; }
  .nav-links, .header-phone, .header-cta, .header-badge { display: none; }
  .footer { display: none; }
  .contact-wrap { display: flex; flex-direction: column-reverse; gap: 0; }
  .contact-map-wrap { height: auto; margin-top: 0; margin-bottom: 28px; }
  .contact-map { flex: none; aspect-ratio: 16/10; min-height: 0; }
  #contacto { padding-top: 4px; padding-bottom: 0; }
  #nosotros { padding-top: 16px; padding-bottom: 24px; }
  .contact-info-card {
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    border-radius: 0;
    padding: 40px 24px 48px;
  }
  .contact-social { display: none; }
  .nav-toggle { display: flex; }
  .logo img { height: 46px; }
  .section { padding: 40px 0 56px; }
  .spec-card--wide { padding: 28px 24px; }
  .spec-card { flex-basis: 100%; }
  .process-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .hero { padding: 24px 0 56px; }
  .hero h1 { font-size: clamp(1.6rem, 8vw, 2.3rem); }
  .hero-intro, .hero-trust { text-align: center; }
  .hero-sub, .hero-trust { margin-left: auto; margin-right: auto; }
  .hero-trust p { font-size: 0.85rem; }
  .hero-trust .btn { width: 100%; }

  .contact-info-card { padding: 32px 24px; }

  .wa-float { width: 52px; height: 52px; bottom: 18px; right: 18px; }
  .wa-float svg { width: 26px; height: 26px; }
}

@media (max-width: 380px) {
  .logo img { height: 40px; }
}

/* Mobile nav drawer — mismo fondo que el header, ancho completo, se desliza desde la derecha */
.mobile-nav {
  position: fixed;
  top: 78px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(236, 227, 211, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 130;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
  overflow-y: auto;
}
.mobile-nav.open { visibility: visible; transform: translateX(0); }

.mobile-nav-links { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-links a {
  font-size: 1.3rem;
  font-family: var(--font-heading);
  color: var(--color-sage-darker);
  padding: 8px 0;
}

.mobile-nav-ctas { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.mobile-nav-ctas .btn { width: 100%; }

.mobile-nav-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid rgba(60, 79, 56, 0.12);
}
.mobile-nav-info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-soft);
  font-size: 0.88rem;
}
.mobile-nav-info-row svg { width: 18px; height: 18px; color: var(--color-sage-dark); flex-shrink: 0; }

.mobile-nav-footer { text-align: center; }
.mobile-nav-footer p { color: var(--color-text-faint); font-size: 0.85rem; }

/* Overlay detrás del drawer, tambien debajo del header */
.mobile-nav-overlay {
  position: fixed;
  top: 78px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 28, 22, 0.5);
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.mobile-nav-overlay.open { opacity: 1; visibility: visible; }

body.menu-open { overflow: hidden; }

/* ---------- Modal de contacto (desktop) ---------- */
.cmodal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 28, 22, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.cmodal-overlay.is-open { opacity: 1; visibility: visible; }

.cmodal {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  padding: 28px 30px 30px;
  box-shadow: var(--shadow-mid);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s ease;
}
.cmodal-overlay.is-open .cmodal { transform: translateY(0) scale(1); }

.cmodal__close {
  position: absolute;
  top: 16px; right: 16px;
  color: var(--color-text-faint);
  padding: 4px;
  line-height: 0;
  border-radius: 8px;
  transition: color 0.15s ease;
}
.cmodal__close:hover { color: var(--color-text); }
.cmodal__close svg { width: 22px; height: 22px; }

.cmodal__header { margin-bottom: 18px; padding-right: 30px; }
.cmodal__header h2 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
  line-height: 1.25;
}
.cmodal__header p { font-size: 0.9rem; color: var(--color-text-faint); line-height: 1.4; }

.cmodal__methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.cmodal__method {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border: 2px solid var(--color-cream-deep);
  border-radius: var(--radius-sm);
  background: var(--color-cream-mid);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-soft);
  transition: all 0.15s ease;
  text-align: center;
  line-height: 1.2;
}
.cmodal__method svg { width: 22px; height: 22px; flex-shrink: 0; }
.cmodal__method:hover { border-color: var(--color-sage-light); background: var(--color-white); color: var(--color-text); }

.cmodal__method.is-active[data-via="llamada"] {
  border-color: var(--color-sage);
  background: var(--color-sage-pale);
  color: var(--color-sage-darker);
}
.cmodal__method.is-active[data-via="whatsapp"] {
  border-color: var(--color-whatsapp-dark);
  background: #e6f8ee;
  color: var(--color-whatsapp-dark);
}
.cmodal__method.is-active[data-via="email"] {
  border-color: var(--color-terracotta);
  background: var(--color-terracotta-pale);
  color: var(--color-terracotta-dark);
}

.cmodal__divider { border: none; border-top: 1px solid var(--color-cream-deep); margin: 18px 0; }

.cmodal__fields { display: flex; flex-direction: column; gap: 14px; }
.cmodal__field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 5px;
}
.cmodal__field input, .cmodal__field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--color-cream-deep);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-white);
  outline: none;
  transition: border-color 0.15s ease;
}
.cmodal__field input:focus, .cmodal__field textarea:focus { border-color: var(--color-sage); }
.cmodal__field textarea { resize: vertical; min-height: 64px; line-height: 1.5; }

.cmodal__error {
  font-size: 0.88rem;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.cmodal__submit {
  width: 100%;
  padding: 14px;
  background: var(--color-sage-darker);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.15s ease;
  margin-top: 2px;
}
.cmodal__submit:hover { background: var(--color-sage-dark); }
.cmodal__submit:disabled { opacity: 0.6; cursor: not-allowed; }

.cmodal__success { text-align: center; padding: 8px 0; }
.cmodal__success svg { width: 52px; height: 52px; color: var(--color-sage); margin-bottom: 14px; }
.cmodal__success h3 { font-size: 1.3rem; color: var(--color-sage-darker); margin-bottom: 8px; }
.cmodal__success p { color: var(--color-text-soft); font-size: 0.9rem; margin-bottom: 6px; line-height: 1.5; }
.cmodal__success a { color: var(--color-sage-dark); font-weight: 600; }

/* ---------- Carrusel de instalaciones (dentro del hero) ---------- */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}
.hero-carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.hero-carousel-track::-webkit-scrollbar { display: none; }
.hero-carousel-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
}
.hero-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-carousel-caption {
  position: absolute;
  left: 14px;
  bottom: 38px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(30, 28, 22, 0.55);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
}

.hero-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(30, 28, 22, 0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.2s ease, background 0.2s ease;
  z-index: 3;
}
.hero-carousel-arrow:hover { opacity: 1; background: rgba(30, 28, 22, 0.6); }
.hero-carousel-arrow svg { width: 15px; height: 15px; }
.hero-carousel-arrow--prev { left: 8px; }
.hero-carousel-arrow--next { right: 8px; }

.hero-carousel-dots {
  position: absolute;
  left: 0; right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.hero-carousel-dots button {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
  transition: background 0.15s ease, transform 0.15s ease;
}
.hero-carousel-dots button.active {
  background: #fff;
  transform: scale(1.3);
}
