/* ════════════════════════════════
   QUINTERO SEGUROS — style.css
   ════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Fondos — un paso más cálido/oscuro para mejor contraste */
  --bg-hero:    #f5f2ec;
  --bg-tips:    #f5f2ec;
  --bg-contact: #f5f2ec;
  --bg-nav:     rgba(231, 222, 201, 0.96);
  --bg-footer:  rgba(231, 222, 201, 0.96);

  /* Texto — más oscuro para contraste */
  --text-black: #080808;
  --text-dark:  #111827;
  --text-body:  #2e3545;
  --text-muted: #6b7590;

  --white:      #ffffff;

  /* Marca */
  --navy:       #162032;
  --gold:       #b8924a;
  --gold-light: #d4aa6a;
  --gold-dark:  #8a6530;

  /* Bordes */
  --border:     rgba(184, 146, 74, 0.25);
  --border-mid: rgba(26, 31, 46, 0.13);

  --tr: all 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-hero);
  color: var(--text-body);
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ══════════════════════════
   LOADER — reloj de arena
   ══════════════════════════ */
#page-loader {
  position: fixed; inset: 0;
  z-index: 9999;
  background: var(--bg-hero);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.hourglass {
  width: 38px;
  height: 38px;
  animation: hg-spin 2s ease-in-out infinite;
}
@keyframes hg-spin {
  0%   { transform: rotate(0deg);   }
  45%  { transform: rotate(0deg);   }
  55%  { transform: rotate(180deg); }
  100% { transform: rotate(180deg); }
}

.loader-text {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-nav);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-mid);
}
.nav-logo img { height: 34px; width: auto; object-fit: contain; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: var(--tr);
}
.nav-links a:hover { color: var(--gold); }
.nav-phone { font-size: 0.88rem; color: var(--gold-dark); letter-spacing: 0.05em; font-weight: 500; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 5rem;
  position: relative;
  overflow: hidden;
  background: var(--bg-hero);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 35%, rgba(240,236,227,0.9) 100%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }

.hero-logo-wrap { margin-bottom: 2.5rem; }
.hero-logo-link { display: inline-block; }
.hero-logo-wrap img {
  height: 100px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.3s ease;
}
.hero-logo-link:hover img { opacity: 0.78; }

.hero-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  margin: 0 auto 2rem;
}
.hero-eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 0.9rem;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}
.hero-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--gold-dark);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 2.8rem;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.15rem;
  color: var(--text-dark);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid rgba(26,31,46,0.3);
  padding: 0.85rem 2rem;
  border-radius: 2px;
  transition: var(--tr);
  margin-bottom: 1rem;
}
.hero-cta:hover {
  border-color: var(--gold);
  background: rgba(184,146,74,0.1);
  color: var(--gold-dark);
}
.hero-cta svg { width: 18px; height: 18px; fill: var(--gold); flex-shrink: 0; }
.hero-email {
  display: block;
  font-size: 0.86rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.08em;
  font-weight: 400;
  transition: var(--tr);
}
.hero-email:hover { color: var(--gold-dark); }

.scroll-hint {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  animation: nudge 2s infinite;
}
.scroll-arrow {
  width: 18px; height: 18px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: rotate(45deg);
}
@keyframes nudge {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* ── SHARED ── */
section { padding: 6rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }

.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 0.9rem;
  display: flex; align-items: center; gap: 1rem;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--gold); }

.sec-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 0.9rem;
}
.sec-desc { color: var(--text-body); max-width: 520px; font-size: 0.93rem; line-height: 1.85; }

/* ── TIPS ── */
.tips-section { background: var(--bg-tips); }
.tips-header  { margin-bottom: 3.5rem; }

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--border-mid);
  border: 1px solid var(--border-mid);
}
.tip-card {
  background: var(--bg-tips);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}
.tip-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.42s ease;
}
.tip-card:hover::after { width: 100%; }
.tip-card:hover        { background: #dfd9cc; }

.tip-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(138,101,48,0.12);
  position: absolute;
  top: 1.3rem; right: 1.5rem;
  line-height: 1;
}
.tip-icon  { width: 50px; height: 50px; margin-bottom: 1.4rem; }
.tip-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; font-weight: 700;
  color: var(--text-dark); margin-bottom: 0.7rem;
}
.tip-text  { font-size: 0.88rem; color: var(--text-body); line-height: 1.85; }

/* ── DIVIDER ── */
.divider {
  display: flex; align-items: center; gap: 1.5rem;
  margin: 2.5rem 0;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border-mid); }
.diamond { width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }

/* ── CONTACT ── */
.contact-section { background: var(--bg-contact); }
.contact-header  { margin-bottom: 3.5rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 5rem;
  align-items: start;
}
.ci-item { display: flex; align-items: flex-start; gap: 1.2rem; margin-bottom: 2rem; }
.ci-icon {
  width: 44px; height: 44px;
  border: 1px solid var(--border-mid);
  border-radius: 2px;
  background: var(--bg-tips);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.ci-icon svg { width: 20px; height: 20px; fill: var(--gold-dark); }
.ci-label { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; margin-bottom: 0.25rem; }
.ci-value { font-size: 1rem; color: var(--text-dark); font-weight: 500; }
.ci-value a { color: var(--text-dark); text-decoration: none; transition: var(--tr); }
.ci-value a:hover { color: var(--gold-dark); }

.contact-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-body);
  line-height: 1.9;
}

/* ── FORM ── */
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-row     { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.fg { display: flex; flex-direction: column; gap: 0.45rem; }
.fg label { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; }
.fg input,
.fg textarea {
  background: var(--bg-tips);
  border: 1px solid var(--border-mid);
  border-radius: 2px;
  padding: 0.85rem 1rem;
  color: var(--text-dark);
  font-family: 'Jost', sans-serif;
  font-size: 0.92rem;
  font-weight: 400;
  transition: var(--tr);
  outline: none;
}
.fg input::placeholder,
.fg textarea::placeholder { color: var(--text-muted); }
.fg input:focus,
.fg textarea:focus {
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(184,146,74,0.1);
}
.fg textarea { resize: vertical; min-height: 130px; }

.btn-send {
  background: var(--navy);
  border: 1px solid var(--navy);
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  cursor: pointer;
  transition: var(--tr);
  align-self: flex-start;
  border-radius: 2px;
}
.btn-send:hover:not(:disabled) { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn-send:disabled { opacity: 0.55; cursor: not-allowed; }

.form-ok,
.form-err { display: none; padding: 1rem 1.2rem; border-radius: 2px; font-size: 0.9rem; }
.form-ok {
  border: 1px solid rgba(138,101,48,0.35);
  background: rgba(184,146,74,0.1);
  color: var(--gold-dark);
}
.form-err {
  border: 1px solid rgba(160,50,50,0.3);
  background: rgba(180,60,60,0.06);
  color: #8b2e2e;
}
.form-err a { color: var(--gold-dark); }

/* ── FOOTER ── */

footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border-mid);
  padding: 1rem;                 /* un poco más de padding */
  text-align: center;
}

.footer-content {
  display: inline-flex;
  align-items: center;
  gap: 3rem;                      /* más separación entre texto y botón */
}

footer p {
  font-size: 0.76rem;
  color: var(--text-dark);
  letter-spacing: 0.08em;
  margin: 0;
}

.btn-webmail {
  background: transparent;
  border: 1px solid var(--gold-dark);
  color: var(--gold-dark);
  font-family: 'Jost', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  padding: 0.35rem 0.9rem;
  cursor: pointer;
  transition: var(--tr);
  border-radius: 2px;
  text-decoration: none;
  margin-left: 2rem;              /* separación extra respecto al texto */
}
.btn-webmail:hover {
  background: var(--gold-dark);
  color: #fff;
}


/* ── ANIMATIONS ── */
.fade-up { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.vis { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 820px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  section { padding: 4rem 1.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-cta { font-size: 1rem; padding: 0.75rem 1.5rem; }
}

/* hCaptcha */
.h-captcha {
  display: block !important;
  margin: 20px auto !important;
  width: 100% !important;
  max-width: 400px !important;
  text-align: center !important;
  overflow: visible !important;
}

.h-captcha iframe {
  width: 100% !important;
  min-height: 78px !important;
  display: block !important;
  visibility: visible !important;
}