@charset "UTF-8";

:root {
  --navy: #061823;
  --navy-2: #081F2D;
  --navy-3: #0B2636;
  --navy-light: #1A3348;
  --gold: #C9A24D;
  --gold-hover: #D6B15E;
  --gold-soft: rgba(201, 162, 77, 0.2);
  --gold-light: rgba(201, 162, 77, 0.08);
  --cream: #F7F4EC;
  --cream-2: #FAFAF7;
  --white: #FFFFFF;
  --text: #111827;
  --muted: #64748B;
  --whatsapp: #25d366;
  --shadow-sm: 0 1px 3px rgba(2, 12, 20, 0.06);
  --shadow: 0 4px 20px rgba(2, 12, 20, 0.08);
  --shadow-lg: 0 12px 40px rgba(2, 12, 20, 0.12);
  --shadow-xl: 0 20px 60px rgba(2, 12, 20, 0.15);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --container: min(1200px, calc(100% - 48px));
  --font-sans: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: var(--cream-2);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font-family: inherit; }

.container { width: var(--container); margin: 0 auto; }

/* ══ HEADER ══ */
.site-header-wrap {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header-wrap.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 24px rgba(2, 12, 20, 0.08);
}

/* ══ BUTTONS ══ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 32px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: all .35s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 8px 28px rgba(6, 24, 35, 0.15);
}
.btn-primary:hover { transform: translateY(-3px); background: var(--navy-3); box-shadow: 0 12px 36px rgba(6, 24, 35, 0.25); }
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 1px solid rgba(15, 23, 42, 0.12);
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-light); transform: translateY(-3px); }
.btn-gold { background: var(--gold); color: var(--white); box-shadow: 0 8px 28px rgba(201, 162, 77, 0.3); }
.btn-gold:hover { background: var(--gold-hover); transform: translateY(-3px); }
.btn-whatsapp { background: var(--whatsapp); color: var(--white); box-shadow: 0 8px 28px rgba(37, 211, 102, 0.25); }
.btn-whatsapp:hover { background: #1da851; transform: translateY(-3px); }
.btn-outline { border-color: rgba(15, 23, 42, 0.12); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-light); transform: translateY(-3px); }

/* ══ COOKIE BANNER ══ */
.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 20px 60px rgba(2, 12, 20, 0.15);
  max-width: 860px;
  margin: 0 auto;
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner__content { flex: 1; min-width: 0; }
.cookie-banner__content strong { display: block; color: var(--text); font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; }
.cookie-banner__content p { color: var(--muted); margin: 0; font-size: 0.84rem; line-height: 1.5; }
.cookie-banner__actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-banner button {
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: var(--cream-2);
  color: var(--text);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all .3s ease;
  white-space: nowrap;
}
.cookie-banner button:hover { border-color: var(--gold); color: var(--gold); }
.cookie-banner button[data-cookie-accept] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.cookie-banner button[data-cookie-accept]:hover { background: var(--gold); border-color: var(--gold); }
.cookie-banner button[data-cookie-reject] { background: transparent; color: var(--muted); border-color: transparent; }
.cookie-banner button[data-cookie-reject]:hover { color: var(--text); border-color: rgba(15, 23, 42, 0.1); }

/* ══ COOKIE MODAL ══ */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
}
.cookie-modal.is-open { display: block; }
.cookie-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 24, 35, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cookie-modal__panel {
  position: relative;
  width: min(520px, calc(100% - 32px));
  margin: 10vh auto;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 20px 60px rgba(2, 12, 20, 0.2);
}
.cookie-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: var(--cream-2);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all .3s;
}
.cookie-modal__close:hover { border-color: var(--gold); color: var(--gold); }
.cookie-modal h2 { margin: 0 0 6px; font-size: 1.25rem; font-weight: 700; color: var(--text); }
.cookie-modal > p { margin: 0 0 20px; color: var(--muted); font-size: 0.88rem; line-height: 1.5; }
.cookie-modal label {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  margin: 10px 0;
  border-radius: var(--radius-sm);
  background: var(--cream-2);
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s;
}
.cookie-modal label:hover { border-color: var(--gold-soft); }
.cookie-modal input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--gold); cursor: pointer; }
.cookie-modal__actions { display: flex; gap: 10px; margin-top: 24px; }
.cookie-modal button {
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: var(--cream-2);
  color: var(--text);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all .3s ease;
  flex: 1;
}
.cookie-modal button:hover { border-color: var(--gold); color: var(--gold); }
.cookie-modal button[data-cookie-save],
.cookie-modal button[data-cookie-accept] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.cookie-modal button[data-cookie-save]:hover,
.cookie-modal button[data-cookie-accept]:hover { background: var(--gold); border-color: var(--gold); }

body.modal-open { overflow: hidden; }

/* ══ FORMS ══ */
input, select, textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  transition: all .25s var(--ease);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-light);
}
input::placeholder, textarea::placeholder { color: #94A3B8; }
select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2364748B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
textarea { min-height: 100px; resize: vertical; }
.form-field { margin-bottom: 18px; }

/* ══ CARDS ══ */
.card, .service-card, .credit-card, .pc-card, .property-card, .simulator-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius, 16px);
  box-shadow: 0 2px 8px rgba(7, 30, 44, 0.04);
  transition: all .4s var(--ease, cubic-bezier(0.76, 0, 0.24, 1));
}
.card:hover, .service-card:hover, .credit-card:hover, .pc-card:hover, .property-card:hover {
  border-color: var(--gold-soft, var(--gold));
  box-shadow: 0 12px 40px rgba(200,155,60,.1), 0 4px 12px rgba(7,30,44,.06);
  transform: translateY(-6px);
}

/* ══ ANIMATIONS ══ */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-42px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-left.is-visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(42px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-right.is-visible { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.94); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-scale.is-visible { opacity: 1; transform: scale(1); }

.stagger > *:nth-child(1) { transition-delay: .05s; }
.stagger > *:nth-child(2) { transition-delay: .12s; }
.stagger > *:nth-child(3) { transition-delay: .19s; }
.stagger > *:nth-child(4) { transition-delay: .26s; }
.stagger > *:nth-child(5) { transition-delay: .33s; }
.stagger > *:nth-child(6) { transition-delay: .4s; }

/* ══ WHATSAPP FLOAT ══ */
#waFloat {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  background: var(--whatsapp);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.3);
  transition: all .35s var(--ease);
}
#waFloat:hover { transform: translateY(-4px) scale(1.06); box-shadow: 0 12px 40px rgba(37, 211, 102, 0.4); }
#waFloat svg { width: 24px; height: 24px; }

/* ══ BACK TO TOP ══ */
#backToTop {
  position: fixed;
  right: 24px;
  bottom: 88px;
  z-index: 89;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: var(--white);
  box-shadow: 0 4px 20px rgba(2, 12, 20, 0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all .35s;
}
#backToTop.is-visible { opacity: 1; pointer-events: auto; }
.btt-arrow { font-size: 1rem; color: var(--navy); position: absolute; }

/* ══ SITUACION DIVIDER (within unified section) ══ */
.situacion-divider {
  text-align: center;
  margin-top: 32px;
  margin-bottom: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}
.situacion-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 8px;
}
.situacion-heading {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 10px;
  line-height: 1.3;
}
.situacion-desc {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ══ UNIFIED CTA ══ */
.unified-cta {
  text-align: center;
  margin-top: 32px;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 24px rgba(2, 12, 20, 0.06);
}
.unified-cta h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 10px;
  line-height: 1.3;
}
.unified-cta p {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 540px;
  margin: 0 auto 20px;
  line-height: 1.7;
}
.unified-cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.unified-cta-actions .btn {
  min-width: 200px;
}

/* ══ SCROLL PROGRESS ══ */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2.5px;
  background: linear-gradient(90deg, var(--gold), var(--navy-light));
  z-index: 9999;
  pointer-events: none;
  will-change: width;
}

/* ══ FOOTER ══ */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0 16px;
}
.footer-brand strong { display: block; font-size: 1.15rem; font-weight: 800; color: var(--white); margin-bottom: 10px; }
.footer-brand p { color: rgba(255, 255, 255, 0.5); font-size: 0.85rem; max-width: 300px; }
.footer-col h4 { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); margin-bottom: 16px; }
.footer-col a { font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); transition: color .25s, padding-left .25s; display: block; margin-bottom: 6px; }
.footer-col a:hover { color: var(--white); padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.06); margin-top: 24px; padding-top: 14px; font-size: 0.8rem; color: rgba(255, 255, 255, 0.35); display: flex; justify-content: space-between; gap: 14px; }

/* ══ RESPONSIVE ══ */
@media (max-width: 768px) {
  .cookie-banner { left: 14px; right: 14px; bottom: 14px; flex-direction: column; align-items: flex-start; padding: 16px; }
  .cookie-banner__actions { width: 100%; flex-direction: row; flex-wrap: wrap; }
  .cookie-banner button { flex: 1; justify-content: center; text-align: center; }
  .cookie-modal__panel { margin: 5vh auto; padding: 24px; }
  .cookie-modal__actions { flex-direction: column; }
  .cookie-modal button { width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .situacion-heading { font-size: 1.1rem; }
  .situacion-divider { margin-top: 24px; padding-top: 16px; }
  .unified-cta { padding: 24px 16px; margin-top: 24px; }
  .unified-cta h3 { font-size: 1.1rem; }
  .unified-cta-actions { flex-direction: column; align-items: stretch; }
  .unified-cta-actions .btn { width: 100%; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal, .reveal-left, .reveal-right, .reveal-scale { opacity: 1; transform: none; }
}

/* ══ HERO CRÉDITOS — Fondo oscuro para títulos blancos ══ */
body[data-credit-type] .hero {
  background: linear-gradient(160deg, #071e2c 0%, #0a2838 40%, #0e2f44 100%);
}
body[data-credit-type] .hero .hero-copy,
body[data-credit-type] .hero .section-copy {
  color: rgba(255,255,255,0.8);
}
body[data-credit-type] .hero .hero-panel {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
}
body[data-credit-type] .hero .hero-panel .hero-list li {
  color: rgba(255,255,255,0.7);
}
body[data-credit-type] .hero .hero-panel .card-icon {
  background: rgba(200,155,60,0.15);
  color: var(--gold, #C89B3C);
}
