@font-face {
  font-family: 'Hoss Round';
  src: url('../fonts/Houss round font/fonnts.com-Hoss_Round_Ultra.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Hoss Round';
  src: url('../fonts/Houss round font/fonnts.com-Hoss_Round_Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DIN 2014';
  src: url('../fonts/DIN2014Rounded/fonnts.com-DIN_2014.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DIN 2014';
  src: url('../fonts/DIN2014Rounded/fonnts.com-DIN_2014_Demi.otf') format('opentype');
  font-weight: 600; /* demi */
  font-style: normal;
  font-display: swap;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Hoss Round', 'DIN 2014', sans-serif;
  font-weight: 300; 
}
body, p, span, input, button {
  font-family: 'DIN 2014', 'Hoss Round', sans-serif;
}

.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  margin: 16px;
  padding: 24px;
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.8s forwards;
}
.card img {
  max-width: 80px;
  margin-bottom: 12px;
}
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.3s; }
.card:nth-child(3) { animation-delay: 0.5s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.opciones-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 100vw;
  overflow: hidden;
}

.opcion {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  min-width: 0;
}
:root{
  --accent: #95c11f;
  --accent-700: #7aa016;
  --nmms: #95c11f;
  --nmms2: #e2f4a2;
  --text-1: #111;
  --text-2: #555;
  --bg-1: #ffffff;
  --bg-2: #f6f7f8;
  --border: #e6e7e8;
}

*{ box-sizing: border-box; }
html,body{ margin:0; padding:0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif; color: var(--text-1); background: var(--bg-2); }
img{ max-width:100%; display:block; }
img {
  border: 1px solid var(--border); 
  border-radius: 16px;
  background-clip: padding-box;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04); 
}
.container{ width: min(1100px, 92%); margin-inline:auto; }

/* HERO */
.hero{ background: var(--bg-1); padding: 48px 0 28px; border-bottom: 1px solid var(--border); text-align:center; }
.hero__title{ margin:0 0 6px; font-size: clamp(28px, 4vw, 44px); }
.hero__sub{ margin: 0; color: var(--text-2); }

/* PROGRESS BAR */
.progress{ height: 8px; background:#e9ecef; border-radius: 999px; overflow:hidden; margin: 18px 0 12px; }
.progress__bar{ height:100%; background: linear-gradient(90deg, #95c11f, #7aa016); width:25%; transition: width .35s ease; }

/* STEPPER */
.stepper{ display:flex; gap:12px; align-items:center; justify-content:center; margin: 10px auto 10px; }
.stepper__dot{ width: 10px; height:10px; border-radius:50%; background:#cfd2d6; }
.stepper__dot.is-active{ background: var(--nmms); }

/* WIZARD */
.wizard{ padding: 10px 0 42px; }
.step{ display:none; background:#fff; border:1px solid var(--border); border-radius:14px; padding: 16px; }
.step.is-active{ display:block; }
.question-title{ margin:0 0 18px; font-size: clamp(18px, 2.4vw, 22px); color: var(--text-1); font-family: 'DIN 2014', 'Hoss Round', sans-serif; font-weight:600; }

.options-row{ display:grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 2.2vw, 18px); }
@media (max-width: 800px){ .options-row{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px){ .options-row{ grid-template-columns: 1fr; } }

.option-card{
  display:block; border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; background: #fff; cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .05s;
}
.option-card:hover{ border-color: #d7dadf; box-shadow: 0 10px 20px rgba(0,0,0,.04); }
.option-card:active{ transform: translateY(1px); }
.option-card input{ display:none; }
.option-card .option-media{ aspect-ratio: 1 / 1; background: #f3f4f6; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.option-card .option-media img{ width:100%; height:100%; object-fit: cover; display:block; }
.option-card .option-text{ padding: 10px 12px; text-align: center; font-weight: 600; color: var(--text-1); font-family: 'DIN 2014', 'Hoss Round', sans-serif; }
.option-card.is-selected{
  border-color: var(--nmms2);
  background: var(--nmms2); 
  color: #000000; /* texto blanco */
  box-shadow: 0 10px 30px rgba(149,193,31,0.14), 0 0 0 4px rgba(149,193,31,0.08);
}

.option-card.is-selected .option-text{ color: #000000; }
.option-card.is-selected .option-media{ background: linear-gradient(rgba(0,0,0,0.18), rgba(0,0,0,0.12)); }
.option-card.is-selected .option-media img{ filter: brightness(.86) saturate(.98); }


.option-card input:focus + .option-media,
.option-card input:focus + .option-text,
.option-card input:focus-visible + .option-media,
.option-card input:focus-visible + .option-text{
  outline: none;
  box-shadow: 0 8px 22px rgba(149,193,31,0.12), 0 0 0 4px rgba(149,193,31,0.08);
}

/* Contador modal: barra de progreso */
.counter-progress{ height: 10px; background: linear-gradient(90deg, rgba(0,0,0,0.08), rgba(0,0,0,0.06)); border-radius: 999px; overflow: hidden; box-shadow: inset 0 1px 3px rgba(0,0,0,0.1); }
.counter-progress__bar{ height:100%; background: linear-gradient(90deg, var(--nmms), var(--accent-700)); width:0%; transition: width 0.25s linear; box-shadow: 0 1px 2px rgba(149,193,31,0.3); }

.wizard-actions{ display:flex; justify-content:space-between; gap:10px; margin-top: 16px; }
.wizard-actions--below{ margin-top: 14px; }
.center-only{ justify-content: center; }

/* Botones */
.btn{ appearance:none; border:1px solid var(--border); background:#fff; color: var(--text-1); padding: 12px 16px; border-radius: 12px; cursor:pointer; font-weight: 600; transition: .2s ease; }
.btn:hover{ border-color:#cfd2d6; }
.btn:active{ transform: translateY(1px); }
.btn-primary{ border-color: var(--nmms); background: var(--nmms); color: #EFF7FF; }
.btn-primary:hover{ background: var(--nmms); border-color: var(--nmms); }
.wide{ min-width: 260px; justify-content:center; }

/* Resultado (destacado y centrado) */
.result-wrap{ margin-top: 24px; }
.result-card{ border:1px solid var(--border); border-radius:14px; background:#fff; padding: 16px 16px 18px; }
.result-card--center{ text-align:center; }
.result-card--emphasis{
  background: #f5f6f7;            /* gris leve */
  border-color: #e7eaee;
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
}
.result-badge{ display:inline-block; font-size:12px; letter-spacing:.3px; color:#2a2e32; background:#e2f4a2; border:1px solid #e2efc3; padding: 4px 8px; border-radius:999px; margin-bottom: 10px; }
.result-title{ margin:0 0 6px; font-size: clamp(18px, 2.4vw, 22px); font-weight:600; color: var(--text-1); font-family: 'DIN 2014', 'Hoss Round', sans-serif; }
.result-desc{ margin:0 0 12px; color: var(--text-2); line-height: 1.55; }
.result-actions{ display:flex; gap:10px; justify-content:center; }

/* Miniaturas (fila encima del t¨ªtulo dentro de result-card) */
.result-thumbs{ display:flex; gap:10px; justify-content:center; align-items:center; margin-bottom:10px; }
.result-thumb{ width:64px; height:64px; flex:0 0 64px; border-radius:10px; overflow:hidden; border:1px solid var(--border); background:#fff; display:flex; align-items:center; justify-content:center; }
.result-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
@media (max-width:520px){ .result-thumb{ width:48px; height:48px; flex:0 0 48px; } }

/* MODAL (form + final) */
.modal{ position: fixed; inset:0; display:none; z-index: 60; }
.modal.is-open{ display:block; }
.modal__overlay{ position:absolute; inset:0; background: rgba(7,10,12,.55); }
/* Centrar modal dialog: usar flexbox en el contenedor modal para centrar vertical y horizontalmente */
.modal{ display:none; align-items:center; justify-content:center; }
.modal.is-open{ display:flex; }
.modal__dialog{ position: relative; margin:0; width: min(840px, 92%); max-height: calc(100vh - 48px); background:#fff; border-radius: 16px; overflow:auto; box-shadow: 0 40px 90px rgba(0,0,0,.25); }
@media (max-width:520px){ .modal__dialog{ width: calc(100% - 28px); border-radius: 12px; } }
.modal__header{ display:flex; align-items:center; justify-content:space-between; padding: 16px 18px; border-bottom:1px solid var(--border); }
.modal__title{ margin:0; font-size: 20px; font-weight:700; color:#1e1e1e; font-family: 'DIN 2014', 'Hoss Round', sans-serif; }
.modal__close{ font-size:22px; border:none; background:transparent; cursor:pointer; }
.modal__body{ padding: 18px; }
.modal__desc{ margin:0 0 12px; color:#40454a; }
.modal__actions{ display:flex; gap:10px; justify-content:center; align-items:center; }

/* Image lightbox */
.img-lightbox{ position:fixed; inset:0; display:none; align-items:center; justify-content:center; z-index:120; }
.img-lightbox.is-open{ display:flex; }
.img-lightbox__overlay{ position:absolute; inset:0; background: rgba(0,0,0,0.75); }
.img-lightbox__dialog{ position:relative; z-index:121; max-width: calc(100% - 40px); max-height: calc(100% - 40px); display:flex; align-items:center; justify-content:center; }
.img-lightbox__content{ max-width: 100%; max-height: 100%; padding: 8px; border-radius: 10px; background: transparent; }
.img-lightbox__content img{ max-width: 92vw; max-height: 82vh; width: auto; height: auto; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.6); display:block; }
.img-lightbox__close{ position:absolute; top:-12px; right:-12px; z-index:130; background: #fff; border-radius: 999px; width:36px; height:36px; border:none; font-size:20px; cursor:pointer; box-shadow: 0 6px 20px rgba(0,0,0,.3); }


.modal__success-banner{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background: rgba(149,193,31,0.06); 
  color: rgba(21,26,23,0.88); 
  padding: 3px 6px; 
  border-radius: 999px;
  font-weight:600;
  font-size:11px; 
  margin-right: 8px;
  border: 1px solid rgba(149,193,31,0.06);
  box-shadow: none; 
}
.modal__success-banner[aria-hidden="false"]{ display:inline-flex; }

/* Form */
.form-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full-span{ grid-column: 1 / -1; }
@media (max-width: 680px){ .form-grid{ grid-template-columns: 1fr; } }
.field__label{ display:block; font-size: 13px; color:#2b2f33; margin-bottom: 6px; }
.field input[type="text"], .field input[type="email"], .field input[type="number"], .field input[type="tel"]{ width:100%; padding: 12px 12px; border:1px solid var(--border); border-radius: 10px; outline:none; transition: border-color .2s, box-shadow .2s; background:#fff; color:#0e1113; }
.field input:focus{ border-color: var(--nmms); box-shadow: 0 0 0 3px rgba(149,193,31,.18); }
.phone-group{ display:flex; gap:10px; }
.cc-select{ width:40%; border:1px solid var(--border); border-radius: 10px; padding: 12px; background: linear-gradient(#fff,#fff) padding-box, linear-gradient(135deg, #ecd59b, #ecd59b) border-box; border: 1px solid transparent; outline:none; }
#whatsapp{ width:60%; }

.segmented{ display:flex; gap:10px; flex-wrap:wrap; }
.segmented.center{ justify-content:center; }
.segmented.soft-bg{ background:#f4f5f6; padding: 8px; border-radius: 12px; } /* Fondo gris suave */
.seg-pill{ border:1px solid var(--border); border-radius:999px; overflow:hidden; background:#fff; transition: border-color .2s, box-shadow .2s; }
.seg-pill input{ display:none; }
.seg-pill span{ display:inline-block; padding: 10px 16px; font-weight:600; color:#2a2e32; }
.seg-pill input:checked + span{ background: var(--nmms); color:#fff; box-shadow: 0 0 0 3px rgba(149,193,31,.18) inset; }

.project-type{ border:none; padding:0; } /* quitar borde del fieldset */

.separator{ border:0; height:1px; background: var(--border); margin: 16px 0 12px; }

.yt-redirect{ text-align:center; color:#444; margin:10px 0 0; }

/* FOOTER */
.site-footer{ margin-top: 36px; background:#0f1113; color:#f0f1f2; padding: 18px 0; font-family: 'DIN 2014', 'Hoss Round', sans-serif; }
.site-footer a{ color: inherit; text-decoration: underline; }
.site-footer .rights{ margin: 0 0 8px; text-align:center; }
.socials{ display:flex; gap:14px; justify-content:center; align-items:center; }
.social-link{ width: 32px; height:32px; display:inline-flex; align-items:center; justify-content:center; border-radius:8px; background:#1a1d20; border:1px solid #242a2f; transition: transform .1s, background .2s, border-color .2s; }
.social-link:hover{ transform: translateY(-1px); background:#1f2327; border-color:#2a3137; }
.social-link svg{ width:20px; height:20px; fill:#f8f9fa; }

/* Legal */
.modal__legal{ margin: 10px 0 2px; color:#60656b; font-size: 11px; text-align:center; font-style: italic; }

/* Animaciones sobrias */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-scale {
  from { opacity: 0; transform: translateY(6px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fadeInCheck {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes constructionPulse {
  0%, 100% { opacity: 0.5; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}
.a-fade-up   { animation: fade-up .45s ease both; }
.a-fade-scale{ animation: fade-scale .38s ease both; }

.stagger > * { animation-delay: var(--d, 0s); }

.no-scroll{ overflow: hidden; }

/* Checklist items - asegurar visibilidad en móviles */
.checklist-item {
  will-change: opacity, transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Responsive para counter modal en móviles */
@media (max-width: 768px) {
  #counter-modal .loading-text {
    font-size: 1.2rem !important;
    padding: 0 10px;
  }
  #counter-modal .checklist-item {
    margin-bottom: 12px !important;
  }
  #counter-modal .checklist-item svg {
    width: 22px !important;
    height: 22px !important;
  }
  #counter-modal .checklist-item span {
    font-size: 14px !important;
  }
}

