/* ════════════════════════════════════════════════════════════════════
   LANDING ASISTENCIAS COMERCIAL — Más VIDA para ti
   Mobile-first · Fuente: Nunito
   ════════════════════════════════════════════════════════════════════ */

/* ── Fuente local como fallback ── */
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/Nunito-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/Nunito-SemiBold.ttf') format('truetype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/Nunito-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/Nunito-ExtraBold.ttf') format('truetype');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/Nunito-Black.ttf') format('truetype');
  font-weight: 900; font-style: normal; font-display: swap;
}

/* ── Variables ─────────────────────────────────────────────────────── */
:root {
  --orange:        #da6d38;
  --orange-dark:   #c05c2d;
  --orange-light:  #f0956a;
  --yellow:        #f0be47;
  --teal:          #4797aa;
  --green:         #79b378;
  --navy:          #2a336a;
  --cream:         #faf7f3;
  --white:         #ffffff;
  --gray:          #656766;
  --gray-light:    #f0eeeb;
  --gray-border:   #d8d6d3;
  --text:          #2d2d2d;
  --text-light:    #6b6b6b;
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --radius-pill:   999px;
  --shadow:        0 4px 20px rgba(0,0,0,0.10);
  --font:          'Nunito', sans-serif;
  --max-w:         560px;
  --max-w-desk:    60%;
  --gutter:        20px;
}

/* ── Reset base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
a { color: var(--orange); }
a:hover { color: var(--orange-dark); }

/* ── Honeypot (anti-bot) ─────────────────────────────────────────── */
.hp-wrap {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ── Contenedor centrado ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ════════════════════════════════════════════════════════════════════
   CABECERA
   ════════════════════════════════════════════════════════════════════ */
.site-header {
  background: var(--white);
  width: 100%;
  overflow: hidden;
}
.cabecera-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ════════════════════════════════════════════════════════════════════
   BANNER OFERTA — pill naranja
   ════════════════════════════════════════════════════════════════════ */
.offer-banner {
  background: var(--orange);
  color: var(--white);
  text-align: center;
  padding: 10px var(--gutter);
}
.offer-banner span {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  display: inline-block;
}

/* ════════════════════════════════════════════════════════════════════
   CONTENIDO PRINCIPAL
   ════════════════════════════════════════════════════════════════════ */
.main-content {
  background: var(--cream);
  padding: 24px 0 32px;
}

/* ── Descripción de la oferta ── */
.offer-description {
  text-align: center;
  margin-bottom: 24px;
  padding: 0 4px;
}
.offer-description p {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.6;
}
.highlight-orange {
  color: var(--orange);
  font-weight: 800;
}
.price-highlight {
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 900;
  display: inline-block;
}

/* ════════════════════════════════════════════════════════════════════
   FORMULARIO
   ════════════════════════════════════════════════════════════════════ */

/* ── Fieldset / Sección ── */
.form-section {
  border: none;
  margin-bottom: 20px;
  padding: 0;
}

/* Líneas horizontales a los lados del texto de la leyenda */
.form-section legend {
  width: 100%;
  text-align: center;
  margin-bottom: 16px;
  overflow: hidden;   /* contiene los pseudo-elementos */
  padding: 0;
}
.form-section legend span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-block;
  position: relative;
  padding: 0 12px;
}
/* Líneas que se extienden a los lados del texto */
.form-section legend span::before,
.form-section legend span::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 600px;       /* extensión suficiente para cualquier ancho */
  height: 1px;
  background: var(--orange);
  opacity: 0.35;
}
.form-section legend span::before { right: 100%; }
.form-section legend span::after  { left:  100%; }

/* ── Grid 1 columna (móvil) ── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* ── Campos ── */
.field-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.field-wrap label,
.field-wrap .field-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.field-wrap input[type="text"],
.field-wrap input[type="email"],
.field-wrap input[type="number"],
.field-wrap input[type="tel"] {
  height: 42px;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  font-family: var(--font);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}
.field-wrap input::placeholder {
  color: #bbb;
  font-size: 0.88rem;
}
.field-wrap input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(218, 109, 56, 0.15);
}
.field-wrap input.is-invalid {
  border-color: #e04040;
  box-shadow: 0 0 0 3px rgba(224, 64, 64, 0.12);
}
.field-wrap input.is-valid {
  border-color: #50a050;
}

/* ── Edad: número + select ── */
.edad-wrap {
  display: flex;
  gap: 10px;
}
.edad-wrap input[type="number"] {
  flex: 1;
  min-width: 0;
  height: 42px;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  font-family: var(--font);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.edad-wrap input[type="number"]::placeholder { color: #bbb; font-size: 0.88rem; }
.edad-wrap input[type="number"]:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(218, 109, 56, 0.15);
}
.edad-wrap input[type="number"].is-invalid {
  border-color: #e04040;
  box-shadow: 0 0 0 3px rgba(224, 64, 64, 0.12);
}
.edad-wrap input[type="number"].is-valid { border-color: #50a050; }
.edad-wrap select {
  height: 42px;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-sm);
  padding: 0 10px;
  font-family: var(--font);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--white);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}
.edad-wrap select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(218, 109, 56, 0.15);
}

/* ── Span full-width (dos columnas en desktop) ── */
.field-full {
  grid-column: 1 / -1;
}

/* ── Radio buttons ── */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  padding: 4px 0;
}
.radio-label {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  user-select: none;
  position: relative;
}
.radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.radio-custom {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid var(--gray-border);
  border-radius: 50%;
  background: var(--white);
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}
.radio-custom::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.2s, transform 0.2s;
}
.radio-label input[type="radio"]:checked + .radio-custom {
  border-color: var(--orange);
}
.radio-label input[type="radio"]:checked + .radio-custom::after {
  opacity: 1;
  transform: scale(1);
}
.radio-label input[type="radio"]:focus-visible + .radio-custom {
  box-shadow: 0 0 0 3px rgba(218, 109, 56, 0.2);
}

/* ── Género: móvil → orden 1 (primero), desktop → orden 5 (último) ── */
.field-genero { order: -1; }          /* primero en móvil */
.field-genero .radio-group { flex-wrap: nowrap; }

/* ── Tipo mascota ── */
.field-tipo { order: 0; }

/* ── Mensajes de error ── */
.error-msg {
  font-size: 0.75rem;
  font-weight: 600;
  color: #e04040;
  min-height: 16px;
  display: block;
}
.error-msg:empty { display: none; }

/* ── Disclaimer ── */
.disclaimer {
  font-size: 0.72rem;
  color: var(--text-light);
  line-height: 1.5;
  margin: 16px 0 12px;
  font-style: italic;
}

/* ── Checkbox política ── */
.policy-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 4px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}
.policy-label input[type="checkbox"] {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.checkbox-custom {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid var(--gray-border);
  border-radius: 4px;
  background: var(--white);
  flex-shrink: 0;
  margin-top: 1px;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}
.checkbox-custom::after {
  content: '';
  position: absolute;
  left: 4px; top: 1px;
  width: 7px; height: 11px;
  border: 2.5px solid var(--white);
  border-top: none; border-left: none;
  transform: rotate(43deg) scale(0);
  transform-origin: bottom left;
  transition: transform 0.15s;
}
.policy-label input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--orange);
  border-color: var(--orange);
}
.policy-label input[type="checkbox"]:checked + .checkbox-custom::after {
  transform: rotate(43deg) scale(1);
}
.policy-label input[type="checkbox"]:focus-visible + .checkbox-custom {
  box-shadow: 0 0 0 3px rgba(218, 109, 56, 0.2);
}
.policy-link {
  color: var(--orange);
  text-decoration: underline;
  font-weight: 700;
}

/* ── Error banner general ── */
.form-error-banner {
  background: #fde8e8;
  border: 1.5px solid #e04040;
  border-radius: var(--radius-sm);
  color: #c00;
  font-size: 0.83rem;
  font-weight: 600;
  padding: 10px 14px;
  margin-top: 12px;
}

/* ── Botón REGISTRARSE ── */
.btn-registrar {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 14px 20px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(218, 109, 56, 0.35);
}
.btn-registrar:hover {
  background: var(--orange-dark);
  box-shadow: 0 6px 20px rgba(218, 109, 56, 0.45);
}
.btn-registrar:active { transform: scale(0.98); }
.btn-registrar:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}
.btn-registrar.loading::after {
  content: ' …';
  animation: pulse 1s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

/* ════════════════════════════════════════════════════════════════════
   SECCIÓN ASISTENCIAS (fondo navy)
   ════════════════════════════════════════════════════════════════════ */
.asistencias-section {
  background: var(--navy);
  padding: 36px 0 28px;
  position: relative;
  overflow: hidden;
}
.asistencias-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--orange), var(--yellow), var(--orange));
}

.asistencias-title {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

/* ── Carousel wrapper ── */
.carousel-wrapper {
  position: relative;
  padding: 0 48px;   /* espacio lateral para los botones absolutos */
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.20);
  color: var(--white);
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.carousel-prev { left: 4px; }
.carousel-next { right: 4px; }
.carousel-btn:hover {
  background: rgba(255,255,255,0.35);
}
.carousel-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

/* ── Track (scroll snap) ── */
.cards-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0 8px;
  width: 100%;
}
.cards-track::-webkit-scrollbar { display: none; }

.card-item {
  flex: 0 0 calc(50% - 6px);
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.card-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

/* ── Info #317 ── */
.info-317-wrap {
  margin-top: 18px;
  text-align: center;
}
.info-317-img {
  max-width: 280px;
  width: 100%;
  margin: 0 auto;
}

/* ════════════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--navy);
  width: 100%;
}
.footer-img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.footer-img--desktop {
  max-width: var(--max-w-desk);
}
.footer-img--mobile {
  display: none;
}

@media (max-width: 767px) {
  .site-footer {
    background: var(--yellow);
  }
  .footer-img--desktop {
    display: none;
  }
  .footer-img--mobile {
    display: block;
    max-width: 100%;
  }
}

/* ════════════════════════════════════════════════════════════════════
   MODAL / POPUP
   ════════════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 35, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  animation: fadeOverlay 0.25s ease;
  backdrop-filter: blur(3px);
}
@keyframes fadeOverlay { from{opacity:0} to{opacity:1} }

.modal-overlay[hidden] { display: none; }

.modal-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  animation: slideCard 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes slideCard { from{transform:translateY(40px) scale(0.96); opacity:0} to{transform:none; opacity:1} }

/* ── Botón cerrar ── */
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px; height: 34px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.88rem;
  font-weight: 700;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  transition: background 0.2s, transform 0.1s;
}
.modal-close:hover { background: var(--orange-dark); }
.modal-close:active { transform: scale(0.92); }

/* ── Imagen mascota ── */
.modal-pet-wrap {
  overflow: hidden;
  max-height: 210px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: transparent;
}
.modal-pet-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center top;
}

/* ── Cuerpo del modal ── */
.modal-body {
  padding: 20px 22px 24px;
}
.modal-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
  text-align: center;
}

/* Mini-logo "Más VIDA para ti" inline */
.brand-mark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  vertical-align: middle;
  margin-left: 6px;
}
.brand-mas {
  font-size: 0.52em;
  color: var(--orange);
  font-style: italic;
  font-weight: 800;
}
.brand-vida {
  font-size: 1.1em;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.brand-parati {
  font-size: 0.45em;
  font-weight: 700;
  color: var(--gray);
  letter-spacing: 0.02em;
}

.modal-intro {
  font-size: 0.88rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 14px;
}
.modal-intro strong { color: var(--text); }

/* ── Caja de oferta ── */
.modal-offer-box {
  background: #fdf6ee;
  border: 1.5px solid #f0d8bc;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  text-align: center;
  margin-bottom: 12px;
}
.modal-offer-box p {
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 600;
  line-height: 1.5;
}
.modal-offer-box strong { color: var(--navy); font-weight: 800; }
.modal-price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--navy);
  margin-top: 6px !important;
  letter-spacing: -0.01em;
}

.modal-disclaimer {
  font-size: 0.68rem;
  color: var(--text-light);
  line-height: 1.45;
  margin-bottom: 16px;
  font-style: italic;
}

/* ── Botones del modal ── */
.btn-modal-primary {
  display: block;
  width: 100%;
  padding: 13px 18px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 800;
  border-radius: var(--radius-pill);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  box-shadow: 0 4px 14px rgba(218, 109, 56, 0.35);
  margin-bottom: 10px;
}
.btn-modal-primary:hover {
  background: var(--orange-dark);
  box-shadow: 0 6px 18px rgba(218, 109, 56, 0.45);
}
.btn-modal-primary:active { transform: scale(0.98); }

.btn-modal-secondary {
  display: block;
  width: 100%;
  padding: 12px 18px;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 700;
  border: 2px solid var(--gray-border);
  border-radius: var(--radius-pill);
  text-align: center;
  transition: border-color 0.2s, color 0.2s, transform 0.1s;
}
.btn-modal-secondary:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.btn-modal-secondary:active { transform: scale(0.98); }

/* ════════════════════════════════════════════════════════════════════
   DESKTOP (≥ 768 px)
   ════════════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {

  :root { --gutter: 28px; }

  .container { max-width: var(--max-w-desk); }

  /* ── Banner más grande ── */
  .offer-banner span {
    font-size: 1.1rem;
  }

  /* ── Oferta ── */
  .offer-description p { font-size: 1rem; }
  .price-highlight { font-size: 1.35rem; }

  /* ── Formulario: 2 columnas ── */
  .form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  /* Género al final (último en el flujo del grid) */
  .field-genero {
    order: 10;               /* override del orden móvil */
    grid-column: 1 / -1;    /* ocupa las dos columnas */
  }
  .field-genero .radio-group {
    flex-wrap: nowrap;
    gap: 24px;
  }

  /* Tipo mascota: ocupa 1 columna */
  .field-tipo {
    order: 0;
    grid-column: 1;
  }

  /* Cuántas mascotas: columna 2 */
  #num_mascotas { width: 100%; }

  /* ── Cards: mosaico 3 columnas en desktop, sin carousel ── */
  .carousel-btn { display: none; }
  .cards-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    overflow-x: visible;
    scroll-snap-type: none;
  }
  .card-item {
    flex: unset;
    scroll-snap-align: none;
  }

  /* ── Info 317 ── */
  .info-317-img { max-width: 340px; }

  /* ── Modal más amplio ── */
  .modal-card { max-width: 440px; }
  .modal-pet-wrap { max-height: 240px; }
  .modal-body { padding: 24px 28px 28px; }
  .modal-title { font-size: 1.15rem; }
  .modal-price { font-size: 2.3rem; }

}


/* ════════════════════════════════════════════════════════════════════
   ACCESIBILIDAD
   ════════════════════════════════════════════════════════════════════ */
:focus-visible {
  outline: 2.5px solid var(--orange);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Pantallas muy pequeñas */
@media (max-width: 360px) {
  :root { --gutter: 14px; }
  .offer-banner span { font-size: 0.88rem; }
  .radio-group { gap: 6px 12px; }
}


/*Ventana de cierre*/


