/* =============================
   🎨 VARIABLES GLOBALES
============================= */
:root {
  --primary: #00b4d8;   /* CTA principal */
  --secondary: #007bff; /* Color secundario */
  --hover: #35d3ff;     /* Hover CTA */
  --success: #35d3ff;   /* Verde acciones */
  --whatsapp: #25D366;  /* WhatsApp */
  --dark: #0f172a;      /* Texto oscuro */
  --muted: #64748b;     /* Texto gris */
  --bg: #ffffff;        /* Fondo */
  --light: #f8fafc;     /* Fondo claro */
  --outline: #94a3b8;   /* Contorno accesible */
}

/* Reset básico y tipografía */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--dark);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =============================
   HEADER STICKY
============================= */
.header {
  position: sticky;
  top: 0;
  z-index: 1050;
  background: var(--bg);
  border-bottom: 1px solid #eef2f7;
}
.header .brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 0;
}
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand .title { font-weight: 700; font-size: 1.05rem; margin: 0; }
.header-cta { white-space: nowrap; }

/* =============================
   BOTONES (override Bootstrap 4)
============================= */
.btn {
  font-weight: 700;
  border-radius: 8px;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:focus { outline: none; }
.btn:focus-visible {
  outline: 3px solid var(--outline);
  outline-offset: 2px;
}
.btn:active { transform: translateY(0); }

.btn-primary, .btn-success {
  font-size: 1.05rem;
  padding: 12px 22px;
  border: none;
}
.btn-primary { background-color: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background-color: var(--hover); }
.btn-success { background-color: var(--success); border-color: var(--success); }
.btn-success:hover { filter: brightness(1.05); }

.btn[disabled], .btn:disabled {
  opacity: .7;
  cursor: not-allowed;
  transform: none;
}

/* =============================
   FORM / CONTROLES
============================= */
.form-control {
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: .65rem .8rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control::placeholder { color: #9aa4b2; }
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 .2rem rgba(0,180,216,.15);
}
.form-check-input:focus {
  box-shadow: 0 0 0 .2rem rgba(0,180,216,.25);
  border-color: var(--primary);
}
.small.muted, .muted { color: var(--muted); }

/* Honeypot completamente oculto */
.hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px; height: 1px; overflow: hidden;
}

/* Mensajería de formulario */
#formMsg.text-success { color: #16a34a !important; }
#formMsg.text-danger  { color: #dc2626 !important; }

/* =============================
   HERO
============================= */
.hero {
  /* Asegúrate de que la ruta sea correcta desde el CSS.
     Si el CSS está en /css, usa ../images/... */
  background:
    linear-gradient(0deg, rgba(15,23,42,.55), rgba(15,23,42,.55)),
    url('../images/residential_cleaning.jpeg') center/cover no-repeat;
  color: #fff;
  padding: 40px 0 20px;
  min-height: 60vh;
  display: flex; align-items: center;
}
@media (min-width:992px){ .price-grid { grid-template-columns: repeat(4,1fr); } }
.hero h1 { font-weight: 800; line-height: 1.1; max-width: 52ch; }
.hero .lead { opacity: .98; max-width: 52ch; }
.hero .card { border: 0; border-radius: 16px; }

/* Si algún texto sigue heredando blanco, fuerzalo dentro de la card */
.hero .card *:not(.btn):not(.btn *) { color: var(--dark); }

/* Colores del bloque Brief */
.quote-summary .muted,
.quote-summary strong {
  color: var(--dark) !important;   /* negro */
}

/* Si quieres azul en lugar de negro para los números */
.quote-summary strong {
  color: var(--secondary) !important; /* azul */
}


/* Badges (evita wrap feo) */
.trust-badges .badge-item { white-space: nowrap; }

/* =============================
   SECCIONES
============================= */
.section { padding: 56px 0; }
.section-light { background: var(--light); }

/* =============================
   TARJETAS
============================= */
.card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(2,8,23,.06);
  background-color: #fff;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(2,8,23,.1); }

.card.glass {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 10px 30px rgba(2,8,23,0.12);
  
}

.floating-card {
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(2,8,23,0.08);
}
.floating-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(2,8,23,0.12);
}

/* Icono dentro de cards de proceso */
.icon-circle {
  width: 52px; height: 52px; border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  background: #eef2ff;
  box-shadow: inset 0 0 0 1px rgba(99,102,241,0.25);
  font-size: 18px;
}

/* =============================
   LISTAS
============================= */
.list-group-item {
  display:flex; gap:.6rem; align-items:flex-start;
  border: 1px solid #eef2f7;
}
.list-group-item i { margin-top:.2rem; }
.text-success, .check { color: var(--success) !important; }

/* =============================
   FAQ (Bootstrap 5 Accordion)
============================= */
.faq .accordion-item {
  border: 1px solid #e5e7eb;
  border-radius: .5rem;
  overflow: hidden; /* Para que el borde redondeado se aplique bien */
}
.faq .accordion-item + .accordion-item {
  margin-top: .75rem;
}

.faq .accordion-button {
  font-weight: 700;
  color: var(--dark);
}
.faq .accordion-button:not(.collapsed) {
  background-color: #f7faff;
  color: var(--secondary);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.08);
}
.faq .accordion-button:focus {
  box-shadow: 0 0 0 .2rem rgba(0,180,216,.25);
  border-color: var(--primary);
}


/* =============================
   CTA STICKY MÓVIL
============================= */
.sticky-bottom-cta {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 1040;
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: saturate(120%) blur(6px);
  backdrop-filter: saturate(120%) blur(6px);
  border-top: 1px solid #e5e7eb;
  padding: .65rem .9rem;
  display: flex; gap: .6rem; align-items: center; justify-content: space-between;
  box-shadow: 0 -6px 24px rgba(2,8,23,.08);
}
@media (min-width: 768px) { .sticky-bottom-cta { display: none; } }

/* =============================
   WHATSAPP FLOAT
============================= */
.whatsapp-float {
  position: fixed;
  right: 16px;
  bottom: 84px; /* por encima de la sticky CTA móvil */
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
  z-index: 1060;
  font-size: 30px;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.whatsapp-float:hover { filter: brightness(1.05); }
@media (max-width: 767px) { .whatsapp-float { bottom: 96px; } }

/* =============================
   TESTIMONIOS
============================= */
.testimonials .card {
  background-color: #f8f9fa;
  border-left: 5px solid var(--secondary);
}
.testimonials p { font-style: italic; }

/* =============================
   FOOTER
============================= */
footer {
  background-color: #0f172a;
  color: #fff;
  padding: 20px 0;
  text-align: center;
}
footer a {
  color: #fff;
  margin: 0 10px;
  font-size: 20px;
  transition: color .15s ease;
}
footer a:hover { color: var(--primary); }

/* =============================
   UTILIDADES / RESPONSIVE
============================= */

/* “gap” utilitario para Bootstrap 4 (opcional) */
.gap-2 { gap: .5rem !important; }
.gap-3 { gap: 1rem !important; }

/* Mejoras responsivas */
@media (max-width: 992px) {
  .hero h1 { font-size: 2rem; }
  .hero .lead { font-size: 1rem; }
}

/* Accesibilidad / reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Unified pricing tables */
.price-table-min thead th {
  font-weight: 600;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.price-table-min tbody td {
  padding-top: .85rem;
  padding-bottom: .85rem;
  border-top: 1px solid rgba(0,0,0,.04);
  vertical-align: middle;
}

.price-table-min tbody tr:hover td {
  background: rgba(0,0,0,.015);
}

/* Section background */
.section-light { background-color: #fafafa; }

/* CTA strip */
.minimal-cta {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 6px 18px rgba(0,0,0,.045);
  border-radius: .5rem;
}

/* Small spacing helper for Bootstrap 4 */
.gap-2 > * + * { margin-left: .5rem; }

/* Modern minimal pricing grid */
.price-grid {
  display: grid;
  grid-gap: 14px;
  /* Por defecto: 2 columnas para móviles y tablets pequeñas */
  grid-template-columns: repeat(2, 1fr);
}

/* A partir de pantallas grandes (desktops), usamos 4 columnas */
@media (min-width: 992px) {
  .price-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.pricing-card {
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  border: 1px solid rgba(0,0,0,.06);
}
.pricing-card:hover,
.pricing-card:focus-visible { outline:3px solid var(--outline); outline-offset:2px; }
.pill {
  display: inline-flex;
  align-items: center;
  padding: .2rem .5rem;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 999px;
  font-size: .8rem;
  color: #333;
  background: #fff;
}
.pill strong { margin-left: .25rem; }

.section-light { background-color: #fafafa; }

.minimal-cta {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 6px 18px rgba(0,0,0,.045);
  border-radius: .5rem;
}
.gap-2 > * + * { margin-left: .5rem; }

/* Add-ons list style to stay secondary */
.addon-list .list-group-item {
  padding-top: .75rem;
  padding-bottom: .75rem;
}
.addon-list .list-group-item strong { font-weight: 700; }

/* =============================
   Add-ons: estado seleccionado
   (funciona con .selected y/o aria-pressed="true")
============================= */
.addon-item {
  position: relative;
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease, box-shadow .12s ease, transform .12s ease;
  border-left: 3px solid transparent; /* acento al seleccionar */
}


/* Hover sutil cuando NO está seleccionado */
.addon-item:not(.selected):not([aria-pressed="true"]):hover {
  background: #f9fafb;
  border-color: rgba(0,0,0,.06);
}

/* Seleccionado (usa tu --success) */
.addon-item.selected,
.addon-item[aria-pressed="true"] {
  background: #ffffff;
  border-color: rgba(0,0,0,.12) !important;
  border-left-color: var(--success);
  box-shadow: 0 8px 22px rgba(0,0,0,.06);
  transform: translateY(-1px);
}

/* Badge "Selected" junto al precio (sin tocar HTML) */
.addon-item.selected strong,
.addon-item[aria-pressed="true"] strong { position: relative; padding-right: 74px; }

.addon-item.selected strong::after,
.addon-item[aria-pressed="true"] strong::after {
  content: "Selected";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px; line-height: 1;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
  background: #e9f8ee;            /* verde muy claro */
  color: #116a36;                  /* verde texto */
  font-weight: 600;
}

/* Check visual a la derecha (SVG inline, sin dependencias) */
.addon-item.selected::after,
.addon-item[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 20px; height: 20px;
  transform: translateY(-50%);
  background-repeat: no-repeat;
  background-size: 20px 20px;
  background-image: url("data:image/svg+xml;utf8,\
    <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300b4d8'>\
      <path d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1 14-4-4 1.41-1.41L11 12.17l5.59-5.59L18 8l-7 8Z'/>\
    </svg>");
}

/* Accesibilidad: foco visible al navegar con teclado */
.addon-item:focus-visible {
  outline: 3px solid var(--outline);
  outline-offset: 2px;
  border-radius: 8px;
}

.floating-square {
    width: 330px;
    height: 410px;
    object-fit: cover;
    border-radius: 1rem; /* esquinas redondeadas */
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
.floating-square:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
  }

