/* ==========================================================================
   Finanzen Campuzano - Estilos y Responsividad
   ========================================================================== */

/* Brand & Logos */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 0;
  text-decoration: none;
}
.brand img.brand__mark {
  width: 43px;
  height: 43px;
  object-fit: contain;
  flex: 0 0 auto;
}
.brand img.brand__wordmark {
  width: 154px;
  height: auto;
  max-height: 57px;
  object-fit: contain;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 17px;
}
.footer-brand img {
  display: block;
  margin: 0;
}
.footer-brand img.footer-brand__mark {
  width: 58px;
  height: 58px;
  object-fit: contain;
}
.footer-brand img.footer-brand__wordmark {
  width: 205px;
  height: auto;
  max-height: 82px;
  object-fit: contain;
}

/* Hero */
.hero {
  display: block;
  position: relative;
  min-height: 720px;
  background: var(--navy);
  isolation: isolate;
}
.hero__image {
  position: absolute;
  inset: 0;
  min-height: 0;
  z-index: -2;
}
.hero__image > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__image:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(247,245,240,.96) 0%, rgba(247,245,240,.88) 35%, rgba(247,245,240,.15) 64%, rgba(0,38,65,.06) 100%);
}
.hero__copy {
  max-width: 760px;
  min-height: 720px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.hero .lede {
  max-width: 530px;
}
.image-note {
  z-index: 1;
}

/* Grids & Cards */
.benefit-grid--six {
  grid-template-columns: repeat(3, 1fr);
}
.option-grid--three {
  grid-template-columns: repeat(3, 1fr);
}

.option-grid button {
  border: 2px solid #d8e3e0;
  border-radius: 4px;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.option-grid button.selected {
  border-color: var(--teal);
  background: #e7f6f2;
  box-shadow: 0 5px 14px rgba(8, 123, 121, 0.15);
}

.help-box {
  margin-top: 18px;
  padding: 13px 15px;
  background: #f0f8f6;
  border-left: 3px solid var(--teal);
  font-size: .78rem;
  line-height: 1.5;
  color: #54706f;
  border-radius: 0 4px 4px 0;
}
.help-box b {
  color: var(--teal);
}

/* Cost Reality */
.cost-reality {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(35px, 7vw, 100px);
  background: #fff;
}
.cost-reality__intro > p:not(.eyebrow) {
  color: #5c737b;
  max-width: 480px;
}
.cost-reality .cta {
  margin-top: 20px;
}
.cost-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-content: start;
}
.cost-cards article {
  background: var(--navy);
  padding: 23px;
  color: #fff;
  border-radius: 4px;
}
.cost-cards article:nth-child(2) {
  background: var(--teal);
}
.cost-cards article span,
.cost-cards article b {
  display: block;
}
.cost-cards article span {
  font: 600 1.55rem "Playfair Display", serif;
  letter-spacing: -.03em;
}
.cost-cards article b {
  margin-top: 7px;
}
.cost-cards article p {
  font-size: .75rem;
  color: #d5e6e7;
  margin: 7px 0 0;
}
.cost-breakdown {
  grid-column: 1 / -1;
  border: 1px solid #dce8e4;
  padding: 10px 20px;
  border-radius: 4px;
}
.cost-breakdown p {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid #e5eeeb;
  font-size: .79rem;
  color: #587078;
}
.cost-breakdown p:first-child {
  display: block;
  color: var(--ink);
  border: 0;
}
.cost-breakdown p:last-child {
  border: 0;
}
.cost-breakdown strong {
  color: var(--teal);
  white-space: nowrap;
}
.cost-cards > small {
  grid-column: 1 / -1;
  color: #72878c;
  font-size: .68rem;
  line-height: 1.45;
}

/* Estimate Banner */
.estimate {
  text-align: center;
  background: var(--navy);
  color: #fff;
  padding: 22px;
  margin: 22px 0 0;
  border-radius: 4px;
}
.estimate span {
  display: block;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #a9dfd4;
  font-size: .65rem;
  font-weight: 700;
}
.estimate strong {
  display: block;
  font: 600 2.7rem "Playfair Display", serif;
  letter-spacing: -.04em;
  margin: 4px 0;
}
.estimate p {
  font-size: .78rem;
  color: #d4e2e6;
  margin: 0;
}

/* CTA & Buttons */
.section-cta {
  text-align: center;
  margin-top: 54px;
}
.section-cta p {
  color: #d3e1e7;
  margin: 0 0 16px;
}
.section-cta small {
  display: block;
  color: #a9dfd4;
  margin-top: 15px;
}
.cta--light {
  background: #fff;
  color: var(--navy);
  box-shadow: none;
}
.cta--light:hover {
  background: #f1f5f3;
}
.facts .cta {
  margin-top: 32px;
}

/* ==========================================================================
   Sección Choice / Funnel (Rediseño Centrado y Espacioso)
   ========================================================================== */
.choice {
  background: #dff1ed;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0 !important;
  padding: clamp(20px, 3vw, 32px) clamp(16px, 3vw, 32px) clamp(40px, 5vw, 60px);
}
.choice__header {
  max-width: 720px;
  margin: 0 auto 0 !important;
  text-align: center;
}
.choice__header .eyebrow {
  justify-content: center;
  margin-bottom: 6px;
}
.choice__header h2 {
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  line-height: 1.12;
  margin: 0 0 6px;
}
.choice__header p:not(.eyebrow) {
  color: #516b74;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 6px !important;
}
.choice .funnel {
  width: 100%;
  max-width: 740px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  margin: 0 auto !important;
  text-align: left;
  background: #fff;
  padding: clamp(22px, 4vw, 36px);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(39, 101, 92, 0.12);
  transition: min-height .2s ease;
}

.funnel-step {
  display: none;
  flex: 1;
  flex-direction: column;
  margin-top: 16px;
}
.funnel-step.active {
  display: flex;
}

/* Funnel Elements */
.funnel-kicker {
  display: block;
  text-transform: uppercase;
  color: var(--teal);
  font-size: .66rem;
  letter-spacing: .12em;
  font-weight: 700;
  margin-bottom: 12px;
}
.selection-note {
  color: var(--teal) !important;
  font-weight: 600;
  min-height: 20px;
  margin: 18px 0 12px !important;
}
.next-step {
  border: 0;
  width: 100%;
  padding: 16px 20px;
  background: var(--teal);
  color: #fff;
  font: 700 .9rem "DM Sans", sans-serif;
  cursor: pointer;
  border-radius: 2px;
  transition: .2s;
}
.next-step:hover:not(:disabled) {
  background: #066866;
  transform: translateY(-1px);
}
.next-step:disabled {
  opacity: .42;
  cursor: not-allowed;
}
.next-step span {
  margin-left: 12px;
  font-size: 1.2rem;
}
.funnel-nav,
.funnel-step > .next-step {
  margin-top: auto !important;
  padding-top: 14px;
}
.funnel-nav {
  display: flex;
  gap: 12px;
  align-items: center;
}
.funnel-nav .next-step {
  flex: 1;
}
.back-step {
  background: transparent;
  border: 0;
  color: #52717a;
  font: 600 .82rem "DM Sans", sans-serif;
  cursor: pointer;
  padding: 12px 0;
}
.back-step--last {
  display: block;
  margin: 15px auto 0;
}
.step-proof {
  font-size: .72rem;
  color: #60807f;
  text-align: center;
  margin: 16px 0 0 !important;
}

/* Consent Checkbox */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .75rem;
  font-weight: 400;
  color: #5d727b;
  cursor: pointer;
  line-height: 1.45;
}
.consent input {
  width: 20px;
  height: 20px;
  min-width: 20px;
  accent-color: var(--teal);
  margin: 2px 0 0;
  cursor: pointer;
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */

/* Tablet (1024px) */
@media (max-width: 1024px) {
  .topbar {
    padding-inline: 36px;
  }
  .hero__copy {
    padding-inline: clamp(38px, 7vw, 75px);
    max-width: 620px;
  }
  .section {
    padding-inline: clamp(35px, 6vw, 70px);
  }
  .benefit-grid--six {
    grid-template-columns: repeat(2, 1fr);
  }
  .funnel {
    padding: 38px;
  }
  .option-grid--three {
    grid-template-columns: 1fr 1fr;
  }
  .option-grid--three button:last-child {
    grid-column: 1 / -1;
  }
  .cost-reality {
    grid-template-columns: .9fr 1.1fr;
    gap: 45px;
  }
  .facts {
    gap: 45px;
  }
}

/* Mobile Screens (760px) */
@media (max-width: 760px) {
  .topbar {
    height: 70px;
    padding: 8px 18px;
  }
  .topbar__right > span {
    display: none;
  }
  /* En móvil conservamos el botón de llamada/consulta visible y compacto en el header */
  .topbar__right .phone {
    display: inline-flex;
    align-items: center;
    margin-left: 0;
    font-size: .78rem;
    font-weight: 600;
    padding: 7px 13px;
    background: rgba(169, 223, 212, 0.15);
    border: 1px solid var(--aqua);
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    transition: .2s;
  }
  .topbar__right .phone:hover {
    background: rgba(169, 223, 212, 0.28);
  }
  .topbar__right .phone span {
    color: var(--aqua);
    margin-left: 5px;
  }

  .hero__image:after {
    background: linear-gradient(180deg, rgba(247,245,240,.95) 0%, rgba(247,245,240,.84) 55%, rgba(247,245,240,.22) 100%);
  }
  .benefit-grid--six {
    grid-template-columns: 1fr;
  }
  .cost-reality {
    grid-template-columns: 1fr;
  }
  .cost-cards {
    grid-template-columns: 1fr;
  }
  .estimate strong {
    font-size: 2.2rem;
  }
}

/* Mobile Devices (640px) */
@media (max-width: 640px) {
  body {
    overflow-x: hidden;
  }
  .topbar {
    height: 66px;
    padding: 6px 16px;
  }
  .brand {
    gap: 7px;
  }
  .brand img.brand__mark {
    width: 35px;
    height: 35px;
  }
  .brand img.brand__wordmark {
    width: 120px;
    max-height: 44px;
  }

  /* Hero Mobile */
  .hero {
    min-height: auto;
  }
  .hero__copy {
    min-height: auto;
    padding: 48px 20px 86px;
    justify-content: flex-start;
  }
  .hero h1 {
    font-size: clamp(2.05rem, 7.8vw, 2.85rem);
    line-height: 1.14;
    margin-top: 8px;
    word-break: normal;
  }
  .hero .lede {
    font-size: 1rem;
    margin: 18px 0 24px;
  }
  .hero__proof {
    margin-top: 24px;
    max-width: 270px;
  }
  .image-note {
    position: absolute;
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: 290px;
    margin: 0 auto;
    text-align: center;
    padding: 10px 14px;
    font-size: .72rem;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 38, 65, 0.12);
  }

  /* Secciones generales */
  .section {
    padding: 56px 20px;
  }
  .intro {
    gap: 24px;
  }
  .intro > p {
    font-size: 1rem;
  }
  .benefits__head {
    max-width: 100%;
  }
  .benefit-grid--six {
    gap: 16px;
    margin-top: 32px;
  }
  .benefit-grid article {
    padding-top: 16px;
  }
  .section-cta {
    margin-top: 36px;
  }
  .section-cta .cta {
    width: 100%;
  }
  .section-cta p {
    font-size: .9rem;
  }

  /* Cost Reality Mobile */
  .cost-cards {
    gap: 10px;
  }
  .cost-cards article {
    padding: 18px;
  }
  .cost-cards article span {
    font-size: 1.35rem;
  }
  .cost-breakdown {
    padding: 8px 14px;
  }
  .cost-breakdown p {
    font-size: .74rem;
    gap: 8px;
  }
  .cost-reality .cta {
    width: 100%;
  }

  /* Funnel Section Mobile */
  .choice {
    gap: 0 !important;
    padding: 20px 14px 32px;
  }
  .choice__header {
    margin-bottom: 0 !important;
  }
  .choice__header h2 {
    font-size: 1.75rem;
    margin-bottom: 6px;
  }
  .choice__header p:not(.eyebrow) {
    font-size: .88rem;
    margin-bottom: 6px !important;
  }
  .choice .funnel {
    min-height: 440px;
    padding: 18px 14px;
    border-radius: 6px;
  }
  .funnel-step {
    margin-top: 16px;
  }
  .funnel h3 {
    font-size: 1.65rem;
    line-height: 1.15;
  }
  .funnel-step > p {
    font-size: .86rem;
  }
  .option-grid,
  .age-grid,
  .option-grid--three {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .option-grid--three button:last-child {
    grid-column: auto;
  }
  .option-grid button {
    padding: 16px 18px;
    min-height: 68px;
  }
  .funnel-nav {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 8px;
  }
  .funnel-nav .back-step {
    align-self: center;
  }
  .next-step,
  .submit {
    min-height: 52px;
  }
  .input-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .input-row label {
    margin-bottom: 0;
  }
  input {
    font-size: 16px;
    padding: 14px;
    border-radius: 4px;
  }
  .estimate {
    padding: 18px 12px;
  }
  .estimate strong {
    font-size: 2rem;
  }
  .help-box {
    font-size: .74rem;
  }

  /* Facts Mobile */
  .facts {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .facts .cta {
    width: 100%;
    margin-top: 24px;
  }
  .fact-list p {
    padding: 14px 0;
    display: block;
  }
  .fact-list b {
    font-size: .88rem;
    display: block;
    margin-bottom: 4px;
  }

  /* Footer Mobile */
  footer {
    padding: 42px 20px;
  }
  .footer-brand {
    gap: 10px;
  }
  .footer-brand img.footer-brand__mark {
    width: 44px;
    height: 44px;
  }
  .footer-brand img.footer-brand__wordmark {
    width: 155px;
    max-height: 62px;
  }
}

/* Extra small devices (iPhone SE / 360px) */
@media (max-width: 380px) {
  .hero h1 {
    font-size: 1.85rem;
  }
  .topbar {
    padding: 6px 12px;
  }
  .topbar__right .phone {
    padding: 6px 10px;
    font-size: .72rem;
  }
  .brand img.brand__wordmark {
    width: 105px;
  }
  .section {
    padding: 44px 14px;
  }
  .choice {
    padding: 38px 12px;
  }
  .choice .funnel {
    padding: 20px 12px;
  }
}

/* ==========================================================================
   WhatsApp Conversion & CTAs
   ========================================================================== */
.cta--whatsapp {
  background: #25D366;
  color: #fff !important;
  border: none;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  font: 700 1rem "DM Sans", sans-serif;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.cta--whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
}
.cta--whatsapp span {
  margin: 0;
}
.cta--whatsapp .cta-arrow {
  font-size: 1.25rem;
  line-height: 1;
  transition: transform .2s ease;
}
.cta--whatsapp:hover .cta-arrow {
  transform: translateX(4px);
}
.cta--pulse {
  animation: pulse-glow 2.8s infinite;
}
@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.wa-icon {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* Topbar WhatsApp CTA */
.cta-whatsapp-topbar {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  background: #25D366 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 4px;
  padding: 8px 15px !important;
  font-weight: 700 !important;
  font-size: .84rem !important;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  text-decoration: none;
  transition: .2s ease;
}
.cta-whatsapp-topbar:hover {
  background: #20bd5a !important;
  transform: translateY(-1px);
}
.cta-whatsapp-topbar .wa-icon {
  color: #fff;
}

/* Hero CTA group */
.hero__cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 10px;
}
.hero__secondary-link {
  color: var(--teal);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  transition: color .2s;
}
.hero__secondary-link:hover {
  color: var(--ink);
}

/* Floating WhatsApp Sticky Widget */
.wa-float {
  position: fixed;
  bottom: 100px;
  bottom: max(100px, calc(env(safe-area-inset-bottom, 0px) + 60px));
  right: 24px;
  right: max(24px, calc(env(safe-area-inset-right, 0px) + 16px));
  z-index: 9999;
  background: #25D366;
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 14px;
  border-radius: 50px;
  box-sizing: border-box;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24), 0 4px 12px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  cursor: pointer;
  transform: translateZ(0);
  transition: transform .25s ease, box-shadow .25s ease, background-color .2s;
  animation: float-slide-in .5s ease-out forwards;
}
.wa-float:hover {
  transform: translateY(-3px) scale(1.02);
  background: #20bd5a;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.28), 0 6px 18px rgba(37, 211, 102, 0.5);
}
.wa-float__icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wa-float__icon svg {
  width: 24px;
  height: 24px;
  display: block;
}
.wa-float__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 9px;
  height: 9px;
  background: #31f79c;
  border-radius: 50%;
  border: 2px solid #25D366;
}
.wa-float__title {
  font-size: .88rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

@keyframes float-slide-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile adjustments for WhatsApp elements */
@media (max-width: 640px) {
  .hero__cta-group {
    width: 100%;
    align-items: stretch;
  }
  .hero__cta-group .cta--whatsapp {
    width: 100%;
    text-align: center;
  }
  .hero__secondary-link {
    text-align: center;
    padding: 6px 0;
  }
  .wa-float {
    bottom: max(22px, calc(env(safe-area-inset-bottom, 0px) + 16px));
    right: 16px;
    padding: 8px 14px;
    gap: 8px;
  }
  .wa-float__status {
    display: none;
  }
  .wa-float__title {
    font-size: .82rem;
  }
  .cta--whatsapp {
    padding: 15px 18px;
    font-size: .92rem;
  }
}

@media (max-width: 380px) {
  .wa-float__title {
    display: none;
  }
  .wa-float {
    padding: 11px;
    border-radius: 50%;
  }
}
