/* =============================================
   SSCC — Cámaras de Seguridad: Reparación
   style.css
   ============================================= */

/* --- FUENTES --- */
@font-face {
  font-family: 'Montserrat';
  src: url('fonts/Montserrat-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('fonts/Montserrat-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Exo2';
  src: url('fonts/Exo2-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Exo2';
  src: url('fonts/Exo2-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Exo2';
  src: url('fonts/Exo2-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* --- TOKENS --- */
:root {
  --azul:       #04153b;
  --azul-medio: #071e4a;
  --azul-card:  #071e4a;
  --rojo:       #CC1A1A;
  --rojo-hover: #b01515;
  --amarillo:   #F5A623;
  --amarillo-hover: #e09510;
  --blanco:     #FFFFFF;
  --gris-claro: rgba(255,255,255,0.85);
  --gris-sub:   rgba(255,255,255,0.75);
  --borde:      rgba(255,255,255,0.10);

  --font-display: 'Montserrat', sans-serif;
  --font-body:    'Exo2', sans-serif;

  --radius:     12px;
  --radius-lg:  20px;
  --shadow-card:0 8px 32px rgba(0,0,0,0.45);
}
/* Sistema de tiers: las secciones son SIEMPRE oscuras (--azul) o claras
   (--blanco), nunca --azul-medio — ese token es solo para SUPERFICIES
   elevadas (cards) sobre fondo oscuro, nunca fondo de sección completa.
   El contraste entre vecinos vive en la card, no en el fondo de sección. */

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--azul);
  color: var(--blanco);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font: inherit; }

/* --- UTILIDADES --- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.btn-wsp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #128C7E;
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.btn-wsp:hover { background: #0f7268; transform: translateY(-2px); }
.btn-wsp svg { flex-shrink: 0; }

/* Sombra tinte del propio color del botón (mismo patrón que .wsp-float) —
   marca visualmente los botones como los puntos de acción de la página */
.btn-wsp { box-shadow: 0 6px 20px rgba(18,140,126,0.35); }

.btn-wsp-rojo { background: var(--rojo); color: var(--blanco); box-shadow: 0 6px 20px rgba(204,26,26,0.35); }
.btn-wsp-rojo:hover { background: var(--rojo-hover); }

.btn-wsp-outline {
  background: transparent;
  color: var(--blanco);
  border: 2px solid rgba(255,255,255,0.5);
  box-shadow: none;
}
.btn-wsp-outline:hover {
  background: rgba(255,255,255,0.10);
  border-color: var(--blanco);
  transform: translateY(-2px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amarillo);
  margin-bottom: 14px;
}

/* =============================================
   BARRA FLOTANTE SUPERIOR
   Ver landings/CLAUDE.md → «Barra flotante superior» para el porqué de
   position:absolute (no fixed, no sticky).
   ============================================= */
.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  height: 56px;
  background: var(--azul);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.topbar__logo img { display: block; height: 28px; width: auto; }
/* Logo sin link — tráfico pago, no queremos que un clic en el logo saque
   al visitante de la landing hacia sscc.com.ar. Puramente decorativo. */

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 82% 30%, rgba(245,166,35,0.10) 0%, transparent 60%),
    linear-gradient(160deg, #061a45 0%, var(--azul) 55%, #030d26 100%);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  padding: 64px 20px 64px;
}
.hero__content { max-width: 620px; }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 6vw, 3.5rem);
  font-weight: 900;
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
  color: var(--blanco);
}
.hero__title span { color: var(--amarillo); display: block; }
.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  margin-bottom: 30px;
  max-width: 480px;
}
.hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}
.hero__cta-note {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.hero__cta-alt { font-size: 0.86rem; color: var(--gris-sub); }
.hero__cta-alt a { color: var(--amarillo); font-weight: 700; text-decoration: underline; }

/* =============================================
   SÍNTOMAS COMUNES
   Sección clara — mismo tratamiento que "Beneficios" en instalación:
   fondo blanco, cards con borde/ícono rojo (el amarillo no contrasta
   bien sobre blanco, ver landings/CLAUDE.md «Jerarquía visual»).
   ============================================= */
.sintomas { background: var(--blanco); padding: 56px 0; }
.sintomas__title {
  text-align: center; font-family: var(--font-display); font-weight: 900; font-size: clamp(1.1rem, 3vw, 1.5rem);
  text-transform: uppercase; margin-bottom: 36px; letter-spacing: 0.02em; color: var(--azul);
}
.sintomas__title span { color: var(--rojo); }
.sintomas__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sintoma-item {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 24px 16px;
  background: var(--blanco); border: 1.5px solid var(--rojo); border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(4,21,59,0.06);
}
.sintoma-item__icon {
  width: 46px; height: 46px; background: rgba(204,26,26,0.08); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sintoma-item__icon svg { color: var(--rojo); }
.sintoma-item__label { font-weight: 700; font-size: 0.92rem; line-height: 1.3; color: var(--azul); }
.sintoma-item__sub { font-size: clamp(0.85rem, 0.8rem + 0.3vw, 0.95rem); font-weight: 600; color: rgba(4,21,59,0.78); line-height: 1.45; }

/* =============================================
   PROCESO — 3 pasos simplificados, cards tipo wizard
   ============================================= */
/* Sección oscura — sigue a Síntomas (clara), completa la alternancia. */
.proceso { background: var(--azul); padding: 72px 0; }
.proceso__header { text-align: center; margin-bottom: 48px; }
.proceso__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  text-transform: uppercase;
  line-height: 1.15;
}
.proceso__title span { color: var(--amarillo); }
.proceso__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.proceso-card {
  border: 1.5px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  transition: border-color 0.15s, background 0.15s;
}
.proceso-card:hover { border-color: rgba(245,166,35,0.5); }
.proceso-card__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.2rem;
  color: var(--amarillo);
  line-height: 1;
  margin-bottom: 10px;
}
.proceso-card__title { font-weight: 800; font-size: 1rem; text-transform: uppercase; margin-bottom: 8px; letter-spacing: 0.01em; }
.proceso-card__desc { font-size: 0.86rem; color: var(--gris-sub); line-height: 1.55; }

.proceso__regalo {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  padding: 20px 22px;
  border: 1.5px dashed rgba(245,166,35,0.4);
  border-radius: var(--radius-lg);
  background: rgba(245,166,35,0.08);
}
.proceso__regalo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--rojo);
  color: var(--blanco);
  padding: 8px 16px;
  border-radius: 50px;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(204,26,26,0.35);
}
.proceso__regalo-text { font-size: 0.9rem; color: var(--blanco); }
.proceso__regalo-btn { flex: 0 0 100%; justify-content: center; margin-top: 4px; }

/* =============================================
   TESTIMONIOS — carrusel con cards oscuras flotando
   sobre la sección clara (autoplay, ver initCarrusel en main.js)
   ============================================= */
.testimonios { background: var(--blanco); padding: 64px 0; }
.testimonios .eyebrow { color: var(--rojo); }
.testimonios__header { text-align: center; margin-bottom: 40px; }
.testimonios__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.2rem, 3.5vw, 1.8rem);
  text-transform: uppercase;
  color: var(--azul);
}
.testimonios__title span { color: var(--rojo); }

.carrusel { max-width: 1000px; margin: 0 auto; overflow: hidden; border-radius: var(--radius); }
/* Riel con transform: translateX real en px (no fade) — mismo criterio
   que el resto de las landings SSCC, ver landings/CLAUDE.md → «Carrusel
   de testimonios». Base = desktop, 3 cards a la vista con asomo del 4to;
   mobile pisa esto en @media(max-width:768px) y vuelve al card único. */
.carrusel__track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease, height 0.3s ease;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}
.carrusel__track.arrastrando { cursor: grabbing; transition: height 0.3s ease; }
.carrusel__track > .testimonio-card { flex: 0 0 30%; height: 100%; }
.testimonio-card {
  background: var(--azul-card);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(4,21,59,0.18);
}
.testimonio-card__header { display: flex; align-items: center; gap: 12px; }
.testimonio-card__foto {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: rgba(245,166,35,0.16); color: var(--amarillo);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 900; font-size: 1.05rem;
  overflow: hidden;
}
.testimonio-card__foto img { width: 100%; height: 100%; object-fit: cover; }
.testimonio-card__foto--google,
.testimonio-card__foto--facebook { background: none; }
.testimonio-card__foto--google svg,
.testimonio-card__foto--facebook svg { width: 100%; height: 100%; }
.testimonio-card__stars { display: flex; gap: 3px; color: var(--amarillo); }
.testimonio-card__recomienda { font-size: 0.82rem; font-weight: 700; color: var(--amarillo); }
.testimonio-card__texto { font-size: 0.88rem; line-height: 1.6; color: var(--gris-claro); }
.testimonio-card__autor { font-size: 0.82rem; font-weight: 700; color: var(--blanco); }
.testimonio-card__meta { font-size: 0.74rem; color: var(--gris-sub); }

.carrusel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.carrusel__dot {
  width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0;
  background: rgba(4,21,59,0.2); cursor: pointer; transition: background 0.2s, width 0.2s;
}
.carrusel__dot.activo { background: var(--rojo); width: 22px; border-radius: 5px; }

/* =============================================
   FAQ — ACORDEÓN
   ============================================= */
/* Sección clara plana — contenido de consulta, no de venta. */
.faq { background: var(--blanco); padding: 64px 0; }
.faq .eyebrow { color: var(--rojo); }
.faq__header { text-align: center; margin-bottom: 36px; }
.faq__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.2rem, 3.5vw, 1.8rem);
  text-transform: uppercase;
  color: var(--azul);
}
.faq__title span { color: var(--rojo); }
.faq__list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border: 1px solid rgba(4,21,59,0.12);
  border-radius: var(--radius);
  background: var(--blanco);
  box-shadow: 0 2px 10px rgba(4,21,59,0.06);
  overflow: hidden;
}
.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  background: none;
  border: none;
  color: var(--azul);
  font-weight: 700;
  font-size: 0.94rem;
  text-align: left;
  cursor: pointer;
}
.faq-item__q svg {
  flex-shrink: 0;
  color: var(--rojo);
  transition: transform 0.2s ease;
}
.faq-item.abierto .faq-item__q svg { transform: rotate(180deg); }
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-item__a p {
  padding: 0 20px 18px;
  font-size: clamp(0.9rem, 0.86rem + 0.2vw, 1rem);
  font-weight: 600;
  color: rgba(4,21,59,0.8);
  line-height: 1.6;
}

/* =============================================
   POR QUÉ ELEGIRNOS
   ============================================= */
/* Pico de énfasis intencional — mismo gradiente que el hero:
   es donde se argumenta por qué confiar en la empresa. */
.diferenciales { background: linear-gradient(160deg, #061a45 0%, var(--azul) 100%); padding: 64px 0; }
.diferenciales__header { text-align: center; margin-bottom: 40px; }
.diferenciales__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.2rem, 3.5vw, 1.8rem);
  text-transform: uppercase;
  line-height: 1.15;
}
.diferenciales__title span { color: var(--amarillo); }
.diferenciales__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.dif-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 28px 20px;
  background: var(--azul-card);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.dif-item__icon {
  width: 52px; height: 52px;
  background: rgba(245,166,35,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.dif-item__icon svg { color: var(--amarillo); }
.dif-item__title { font-weight: 800; font-size: 1rem; }
.dif-item__desc { font-size: 0.82rem; color: var(--gris-sub); line-height: 1.5; }

/* =============================================
   CTA FINAL — sección clara, cierra el scroll antes
   del footer oscuro
   ============================================= */
.cta-final {
  padding: 80px 0;
  text-align: center;
  background: var(--blanco);
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(204,26,26,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.cta-final__eyebrow {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--rojo); margin-bottom: 12px;
}
.cta-final__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 5vw, 2.6rem);
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--azul);
}
.cta-final__title span { color: var(--rojo); }
.cta-final__desc {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem); font-weight: 600; color: rgba(4,21,59,0.78);
  max-width: 520px; margin: 0 auto 36px;
}
.cta-final__group { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.cta-final__alt { margin-top: 18px; font-size: 0.85rem; font-weight: 600; color: rgba(4,21,59,0.75); }
.cta-final__alt a { color: var(--rojo); font-weight: 700; text-decoration: underline; }

/* =============================================
   FOOTER
   ============================================= */
.footer { background: #02102e; border-top: 1px solid var(--borde); padding: 28px 0; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; width: 100%; }
.footer__logo img { height: 36px; width: auto; opacity: 0.85; }
.footer__copy { font-size: 0.76rem; color: rgba(255,255,255,0.85); text-align: center; }

/* =============================================
   BOTÓN FLOTANTE + PANEL WHATSAPP
   ============================================= */
.wsp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 60px; height: 60px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform 0.2s, box-shadow 0.2s; cursor: pointer;
}
.wsp-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.6); }
.wsp-float svg { color: #fff; }
.wsp-float::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.45); animation: wsp-pulse 2s ease-out infinite;
}
@keyframes wsp-pulse { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }

/* Botón flotante de llamada — mismo patrón que .wsp-float, espejado a la
   izquierda, en el celeste de marca (#1565C0). */
.llamar-float {
  position: fixed; bottom: 28px; left: 28px; z-index: 999;
  width: 60px; height: 60px; background: #1565C0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; border: none;
  box-shadow: 0 4px 20px rgba(21,101,192,0.45);
  transition: transform 0.2s, box-shadow 0.2s; cursor: pointer;
}
.llamar-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(21,101,192,0.6); }
.llamar-float svg { color: #fff; }
.llamar-float::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(21,101,192,0.45); animation: wsp-pulse 2s ease-out infinite;
}

/* Confirmación de llamada (mobile) — modal centrado propio. */
.confirmar-llamada {
  display: none; position: fixed; inset: 0; z-index: 1100;
  background: rgba(4,21,59,0.75); align-items: center; justify-content: center; padding: 24px;
}
.confirmar-llamada.visible { display: flex; }
.confirmar-llamada__card {
  width: 100%; max-width: 320px; background: var(--azul-card); border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 28px 24px; text-align: center;
}
.confirmar-llamada__icono {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 50%; background: rgba(245,166,35,0.16); border: 1px solid rgba(245,166,35,0.45);
  color: var(--amarillo); margin-bottom: 14px;
}
.confirmar-llamada__titulo {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase; color: var(--blanco);
  font-size: 1.3rem; line-height: 1.25; margin-bottom: 22px;
}
.confirmar-llamada__titulo span { color: var(--amarillo); display: block; }
.confirmar-llamada__botones { display: flex; gap: 12px; }
.confirmar-llamada__si, .confirmar-llamada__no {
  flex: 1; border: none; border-radius: 50px; padding: 13px; font-family: var(--font-body);
  font-weight: 800; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--blanco); cursor: pointer; transition: filter 0.15s;
}
.confirmar-llamada__si:hover, .confirmar-llamada__no:hover { filter: brightness(1.1); }
.confirmar-llamada__botones { align-items: center; }
/* La acción ocupa el 70% y lleva ícono; «No» queda chico, 30%. Así se ve qué hace cada uno. */
.confirmar-llamada__si {
  flex: 1 1 70%; background: #128C7E; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 15px 10px; font-size: 0.95rem; letter-spacing: 0.01em; box-shadow: 0 4px 14px rgba(18,140,126,0.4);
}
.confirmar-llamada__si svg { flex-shrink: 0; }
.confirmar-llamada__no { flex: 0 0 30%; background: var(--rojo); padding: 10px 6px; font-size: 0.8rem; }

.wsp-panel {
  position: fixed; bottom: 100px; right: 28px; z-index: 1000; width: 320px;
  background: #fff; border-radius: 16px; box-shadow: 0 8px 40px rgba(0,0,0,0.25);
  overflow: hidden; opacity: 0; transform: translateY(16px) scale(0.97);
  pointer-events: none; transition: opacity 0.22s ease, transform 0.22s ease;
}
.wsp-panel--open { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }
.wsp-panel__header { background: #075E54; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.wsp-panel__avatar {
  width: 40px; height: 40px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff;
}
.wsp-panel__info { flex: 1; }
.wsp-panel__name { font-weight: 700; font-size: 0.92rem; color: #fff; margin: 0; font-family: var(--font-body); }
.wsp-panel__status { font-size: 0.75rem; color: rgba(255,255,255,0.8); margin: 0; font-family: var(--font-body); }
.wsp-panel__close { background: none; border: none; cursor: pointer; color: rgba(255,255,255,0.7); padding: 4px; display: flex; align-items: center; transition: color 0.15s; line-height: 1; }
.wsp-panel__close:hover { color: #fff; }
.wsp-panel__body { padding: 16px 16px 8px; background: #ece5dd; }
.wsp-panel__label { font-size: 0.78rem; font-weight: 600; color: #333; margin: 0 0 6px; font-family: var(--font-body); }
.wsp-panel__req { color: var(--rojo); }
.wsp-panel__opt { color: #888; font-weight: 400; }
.wsp-panel__input {
  width: 100%; padding: 10px 12px; border: 1.5px solid #ccc; border-radius: 8px;
  font-family: var(--font-body); font-size: 0.9rem; color: #222; background: #fff;
  outline: none; transition: border-color 0.15s; margin-bottom: 10px; resize: none;
}
.wsp-panel__input:focus { border-color: #25D366; }
.wsp-panel__textarea { min-height: 68px; }
.wsp-panel__error { display: none; font-size: 0.75rem; color: var(--rojo); margin: -6px 0 10px; font-family: var(--font-body); }
.wsp-panel__footer { padding: 10px 16px 16px; background: #ece5dd; }
.wsp-panel__btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #128C7E; color: #fff; font-family: var(--font-body); font-weight: 800;
  font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.04em; border: none;
  border-radius: 50px; padding: 13px 20px; cursor: pointer; transition: background 0.2s, transform 0.15s;
}
.wsp-panel__btn:hover { background: #0f7268; transform: translateY(-1px); }

/* Campo de teléfono compartido (panel de WhatsApp + panel de llamada).
   Prefijo fijo Argentina (+54, banderita) — no hay selector de país, todo
   el tráfico hoy es de Tucumán/Argentina. */
.tel-field { display: flex; align-items: stretch; gap: 6px; margin-bottom: 4px; }
.tel-field__prefix {
  display: flex; align-items: center; gap: 5px; flex-shrink: 0;
  padding: 10px 10px; border: 1.5px solid #ccc; border-radius: 8px;
  background: #f4f4f4; font-family: var(--font-body); font-size: 0.86rem;
  font-weight: 700; color: #444;
}
.tel-field__input {
  flex: 1; min-width: 0; padding: 10px 12px; border: 1.5px solid #ccc; border-radius: 8px;
  font-family: var(--font-body); font-size: 0.9rem; color: #222; background: #fff;
  outline: none; transition: border-color 0.15s;
}
.tel-field__input:focus { border-color: #25D366; }
.tel-field__hint { font-size: 0.72rem; color: #888; margin: 4px 0 10px; font-family: var(--font-body); }

/* ---- Variante celeste: panel "Te llamamos" (desktop) ---- */
.wsp-panel--llamada { right: auto; left: 28px; }
.wsp-panel--llamada .wsp-panel__header { background: #1565C0; }
.wsp-panel--llamada .wsp-panel__avatar { background: #1E88E5; }
.wsp-panel--llamada .wsp-panel__input:focus,
.wsp-panel--llamada .tel-field__input:focus { border-color: #1E88E5; }
.wsp-panel--llamada .wsp-panel__btn { background: #1565C0; }
.wsp-panel--llamada .wsp-panel__btn:hover { background: #0d47a1; }

/* =============================================
   ANIMACIONES DE ENTRADA
   ============================================= */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  will-change: opacity, transform;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 860px) {
  .proceso__grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .sintomas__grid { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 100svh; }
  .hero__bg img { object-position: center center; }
  /* En mobile el recorte deja la fachada iluminada justo donde cae el
     texto (izquierda) — acá sí hace falta el tinte que en desktop no. */
  .hero__overlay {
    background: linear-gradient(to right, rgba(4,21,59,0.99) 0%, rgba(4,21,59,0.8) 55%, rgba(4,21,59,0.5) 85%, rgba(4,21,59,0.3) 100%);
  }
  .hero__inner { padding: 48px 20px 48px; }
  .hero__cta-group { flex-direction: column; align-items: stretch; }
  .hero__cta-group .btn-wsp { justify-content: center; }
  .sintomas { padding: 48px 0; }
  .proceso { padding: 48px 0; }
  .diferenciales { padding: 48px 0; }
  .testimonios { padding: 48px 0; }
  .faq { padding: 48px 0; }
  .cta-final { padding: 56px 0; }
  .footer__inner { flex-direction: column; align-items: center; }
  /* Punto intermedio entre el tamaño mobile de antes (54px) y el 25%
     más chico que se probó después (40px) -> 47px. */
  .wsp-float, .llamar-float { bottom: 20px; width: 47px; height: 47px; }
  .wsp-float { right: 20px; }
  .llamar-float { left: 20px; }
  .wsp-float svg { width: 26px; height: 26px; }
  .llamar-float svg { width: 22px; height: 22px; }
  /* En mobile, un solo card a la vez (ver comentario en la regla base
     de .carrusel más arriba) — en pantallas chicas 3 a la vez quedarían
     demasiado angostos para leerse. */
  .carrusel { max-width: 480px; }
  .carrusel__track { gap: 10px; }
  .carrusel__track > .testimonio-card { flex: 0 0 95%; }
}
@media (max-width: 480px) {
  .sintomas__grid { grid-template-columns: repeat(2, 1fr); }
  .diferenciales__grid { grid-template-columns: 1fr 1fr; }
  .wsp-panel { width: calc(100vw - 32px); right: 16px; bottom: 86px; }
  /* .wsp-panel--llamada solo se abre en desktop (ver esTactil en
     main.js), pero por si una ventana desktop queda muy angosta. */
  .wsp-panel--llamada { left: 16px; right: auto; }
}

/* Reducir movimiento si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
  .fade-up { transition: none; opacity: 1; transform: none; }
  .wsp-float::after { animation: none; }
  .llamar-float::after { animation: none; }
}

/* Teléfono mal cargado (2026-10-07): borde rojo y la ayuda en rojo y negrita. Va al final para
   ganarle al borde de foco, incluido el azul del panel de llamada. */
.tel-field--mal .tel-field__input,
.tel-field--mal .tel-field__input:focus,
.wsp-panel--llamada .tel-field--mal .tel-field__input:focus { border-color: var(--rojo, #d32f2f); }
.tel-field__hint--mal { color: var(--rojo, #d32f2f); font-weight: 700; }
