/* ============================================================
   DERIVE — estilos
   ============================================================ */

:root {
  --navy: #0f1b2d;
  --navy-2: #16233a;
  --navy-3: #1e2f4a;
  --gold: #c9a24b;
  --gold-light: #e4c77c;
  --cream: #f7f4ee;
  --white: #ffffff;
  --text-dark: #1c2430;
  --text-muted: #5b6472;
  --border-soft: #e4e0d6;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ea952;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 27, 45, 0.12);
  --max-width: 1140px;

  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: "Poppins", "Inter", sans-serif;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h2 {
  font-size: 1.9rem;
}

p {
  margin: 0 0 1em;
}

ul, ol {
  padding-left: 0;
}

.hidden {
  display: none !important;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--navy);
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold-light);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
}
.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}
.btn-outline:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 16px 34px;
  font-size: 1.05rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  font-size: 1.2rem;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a:not(.btn) {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0.9;
}
.nav-menu a:not(.btn):hover {
  opacity: 1;
  color: var(--gold-light);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  display: block;
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(circle at 15% 20%, var(--navy-3), var(--navy) 60%);
  color: var(--white);
  padding: 90px 0 80px;
}

.hero-inner {
  max-width: 760px;
}

.eyebrow {
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  color: var(--white);
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 20px;
}

.hero-base {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Barra de confianza ---------- */
.trust-strip {
  background: var(--navy-2);
  padding: 22px 0;
}

.trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 40px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}

.trust-icon {
  display: inline-flex;
  color: var(--gold-light);
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.trust-icon svg {
  width: 100%;
  height: 100%;
}

/* ---------- Secciones genéricas ---------- */
.section {
  padding: 76px 0;
}

.section-alt {
  background: var(--cream);
}

.section-lead {
  color: var(--text-muted);
  max-width: 620px;
  font-size: 1.05rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

/* ---------- Pasos (Cómo funciona) ---------- */
.pasos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
  counter-reset: paso;
  margin-top: 40px;
}

.pasos li {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 26px 20px;
}

.paso-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  margin-bottom: 14px;
}

.pasos h3 {
  font-size: 1.05rem;
}

.pasos p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Listas de check / cross ---------- */
.check-list, .cross-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.check-list li, .cross-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text-dark);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--whatsapp-dark);
  font-weight: 700;
}

.cross-list li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: #b9482f;
  font-weight: 700;
}

/* ---------- Selector de cotizador (tabs) ---------- */
.cotizador-tabs {
  display: inline-flex;
  background: var(--cream);
  border-radius: 999px;
  padding: 5px;
  gap: 4px;
  margin-top: 28px;
}

.tab-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 11px 22px;
  border-radius: 999px;
  cursor: pointer;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.15s ease, color 0.15s ease;
}
.tab-btn:hover {
  color: var(--navy);
}
.tab-btn.is-active {
  background: var(--navy);
  color: var(--white);
}

.tab-text-short {
  display: none;
}

.cotizadores-grid {
  margin-top: 28px;
}

.cotizador-col {
  scroll-margin-top: 88px;
}

.cotizador-col[hidden] {
  display: none;
}

.cotizador-col h3 {
  font-size: 1.3rem;
}

.cotizador-col > .section-lead {
  font-size: 0.95rem;
  max-width: none;
}

/* ---------- Cotizador ---------- */
.cotizador-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 24px;
  max-width: 620px;
}

.notice {
  background: #fbf3df;
  border: 1px solid #efd9a3;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.92rem;
  color: #6b5324;
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.form-row input,
.form-row select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--white);
}
.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.25);
}
.base-select {
  cursor: pointer;
}

.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.status-msg {
  font-size: 0.9rem;
  color: var(--text-muted);
  min-height: 1.2em;
}

.resultado {
  background: var(--cream);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 18px 0;
}

.resultado-linea {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border-soft);
}
.resultado-linea:last-child {
  border-bottom: none;
}
.resultado-linea span {
  flex: 1;
  min-width: 0;
}
.resultado-linea strong {
  flex-shrink: 0;
  white-space: nowrap;
}

.resultado-total {
  font-size: 1.1rem;
  font-family: "Poppins", sans-serif;
  color: var(--navy);
  padding-top: 12px;
}

.fine-print {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 16px;
}

/* ---------- Contratación por día ---------- */
.tarifas-dia-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  background: var(--cream);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.calendario {
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 18px;
}

.calendario-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  text-transform: capitalize;
}

.calendario-header button {
  background: var(--cream);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--navy);
}
.calendario-header button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.calendario-dias-semana {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.calendario-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-dia {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border-soft);
  background: var(--white);
  border-radius: 8px;
  font-size: 0.88rem;
  font-family: inherit;
  cursor: pointer;
  color: var(--text-dark);
}
.cal-dia:hover:not(:disabled) {
  border-color: var(--gold);
}

.cal-dia-vacio {
  border: none;
  background: transparent;
  cursor: default;
}

.cal-dia-finde {
  background: #fbf3df;
}

.cal-dia-hoy {
  font-weight: 700;
  color: var(--navy);
}

.cal-dia-pasado {
  opacity: 0.3;
  cursor: not-allowed;
}

.cal-dia-seleccionado {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.dias-seleccionados {
  margin-bottom: 4px;
}

.notice-suave {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.lista-dias {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lista-dias li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--cream);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.9rem;
  text-transform: capitalize;
}

.lista-dias li span:first-child {
  flex: 1;
  min-width: 0;
}

.lista-dias li strong {
  flex-shrink: 0;
  white-space: nowrap;
}

.tag-finde {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 6px;
  text-transform: none;
}

.quitar-dia {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  padding: 4px;
  flex-shrink: 0;
}
.quitar-dia:hover {
  color: #b9482f;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
}

.faq-list details {
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 16px 20px;
}

.faq-list summary {
  font-weight: 600;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--text-muted);
}

/* ---------- CTA final ---------- */
.section-cta {
  background: var(--navy);
  color: var(--white);
  text-align: center;
}
.section-cta h2 {
  color: var(--white);
}
.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.cta-inner p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-2);
  color: rgba(255, 255, 255, 0.75);
  padding: 44px 0 30px;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.site-footer .logo-text {
  color: var(--white);
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}

.legal {
  max-width: 760px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

/* ---------- Botón flotante de WhatsApp ---------- */
.whatsapp-flotante {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
  z-index: 200;
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.2s ease;
}
.whatsapp-flotante:hover {
  background: var(--whatsapp-dark);
  transform: scale(1.06);
}
.whatsapp-flotante svg {
  width: 30px;
  height: 30px;
}

/* Oculto mientras otro botón de WhatsApp ya está visible en pantalla,
   para no mostrar el mismo llamado a la acción dos veces a la vez. */
.whatsapp-flotante-oculto {
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
}

@media (max-width: 640px) {
  .whatsapp-flotante {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }
  .whatsapp-flotante svg {
    width: 27px;
    height: 27px;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .pasos {
    grid-template-columns: repeat(2, 1fr);
  }
  .two-col {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }
  .nav-menu {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-menu.is-open {
    max-height: 400px;
  }
  .nav-menu li {
    width: 100%;
    padding: 14px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-menu .btn {
    display: inline-flex;
  }
  .pasos {
    grid-template-columns: 1fr;
  }
  .two-fields {
    grid-template-columns: 1fr;
  }
  .cotizador-card {
    padding: 22px;
  }
  .hero {
    padding: 64px 0 56px;
  }
  .trust-strip-inner {
    gap: 12px 20px;
  }
  .trust-item {
    font-size: 0.82rem;
  }
  .cotizador-tabs {
    width: 100%;
  }
  .tab-btn {
    flex: 1;
    padding: 11px 12px;
    font-size: 0.86rem;
  }
  .tab-text-full {
    display: none;
  }
  .tab-text-short {
    display: inline;
  }
}

/* Pantallas muy chicas: agrandamos un poco las celdas del calendario
   (mejor superficie para tocar con el dedo) achicando los paddings que
   la rodean. */
@media (max-width: 420px) {
  .container {
    padding: 0 16px;
  }
  .cotizador-dia-card {
    padding: 16px;
  }
  .calendario {
    padding: 8px;
  }
  .calendario-grid {
    gap: 3px;
  }
  .cal-dia {
    font-size: 0.82rem;
  }
}
