/* ============================================================
   SALUD BUCAL CÓRDOBA — LANDING PAGE
   ESTILOS GLOBALES Y COMPONENTES
   ============================================================ */

:root {
  --navy-deep: #0A2540;
  --navy-mid: #123A66;
  --navy-soft: #1B4A7A;
  --gold: #C9A961;
  --gold-soft: #E8D9B5;
  --cream: #F8F6F1;
  --white: #FFFFFF;
  --ink: #1F2933;
  --ink-soft: #5B6B7A;
  --line: rgba(201, 169, 97, 0.35);
  --radius: 2px;
  --max: 640px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

h1, h2, h3, .serif {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy-deep);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.section {
  padding: var(--space-6) 0;
}

.section.tight {
  padding: var(--space-5) 0;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  background: radial-gradient(ellipse 120% 80% at 50% 0%, rgba(201, 169, 97, 0.16), transparent 60%),
              linear-gradient(180deg, var(--navy-deep) 0%, #08192E 100%);
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(10, 37, 64, 0.35) 0%, rgba(8, 25, 46, 0.88) 100%),
                    url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center 25%;
  z-index: 0;
}

.hero-inner {
  position: relative;
  padding: var(--space-4) var(--space-3) var(--space-5);
  width: 100%;
  z-index: 1;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-5);
}

.logo img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: block;
}

.logo-word {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--white);
  line-height: 1.2;
}

.hero .eyebrow {
  color: var(--gold-soft);
}

.hero h1 {
  font-size: clamp(32px, 7vw, 52px);
  color: var(--white);
  line-height: 1.08;
  max-width: 11ch;
  margin-bottom: var(--space-3);
}

.hero p.lede {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 34ch;
  margin-bottom: var(--space-4);
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 15px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
}

.btn-gold:hover {
  box-shadow: 0 8px 24px rgba(201, 169, 97, 0.35);
}

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

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-wa {
  background: var(--navy-deep);
  color: var(--white);
}

.btn-wa:hover {
  background: var(--navy-mid);
}

.btn-wa svg {
  width: 18px;
  height: 18px;
  fill: #25D366;
}

.btn-web-link {
  background: var(--gold);
  color: var(--navy-deep);
  border: none;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.08em;
  font-weight: 700;
  border-radius: 20px;
  padding: 16px 32px;
}

.btn-web-link:hover {
  background: #E8D9B5;
  transform: translateY(-1px);
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 169, 97, 0.45); }
  50% { box-shadow: 0 0 0 10px rgba(201, 169, 97, 0); }
}

.btn-pulse {
  animation: pulseGlow 2.2s ease-in-out infinite;
}

.btn-slide {
  opacity: 0;
  transform: translateX(-70px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.btn-slide.in {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .btn-pulse {
    animation: none;
  }
}

/* ========== IDENTIFICATION ========== */
.identify {
  background: var(--navy-deep);
  text-align: center;
}

.identify-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 169, 97, 0.4);
  border-radius: 10px;
  padding: var(--space-4) var(--space-3);
  max-width: 420px;
  margin: 0 auto;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.55s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.identify-card.in {
  opacity: 1;
  transform: scale(1);
}

.identify h2 {
  font-size: clamp(22px, 4.5vw, 30px);
  max-width: 16ch;
  margin: 0 auto var(--space-3);
  color: var(--white);
}

.identify .cta-link {
  background: none;
  border: none;
  border-bottom: 1px solid var(--gold);
  font-family: 'Inter', sans-serif;
  color: var(--gold-soft);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 0 0 2px;
  cursor: pointer;
}

/* ========== PROPUESTA ========== */
.propuesta {
  position: relative;
  color: var(--white);
}

.propuesta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(8, 25, 46, 0.25) 0%, rgba(8, 25, 46, 0.4) 55%, rgba(8, 25, 46, 0.82) 100%),
                    url('../images/propuesta-bg.jpg');
  background-size: cover;
  background-position: center center;
  z-index: 0;
}

.propuesta .wrap {
  position: relative;
  z-index: 1;
}

.propuesta .eyebrow {
  color: var(--gold);
}

.propuesta h2 {
  color: var(--white);
  font-size: clamp(26px, 5.5vw, 36px);
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

.checklist {
  list-style: none;
  margin-bottom: var(--space-4);
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.checklist.in li {
  opacity: 1;
  transform: translateX(0);
}

.checklist.in li:nth-child(1) { transition-delay: 0.05s; }
.checklist.in li:nth-child(2) { transition-delay: 0.2s; }
.checklist.in li:nth-child(3) { transition-delay: 0.35s; }
.checklist.in li:nth-child(4) { transition-delay: 0.5s; }

.checklist li:last-child {
  border-bottom: none;
}

.check-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.check-icon svg {
  width: 11px;
  height: 11px;
}

.check-icon svg path {
  stroke: #0A2540 !important;
}

/* ========== COBERTURA ========== */
.cobertura {
  background: var(--navy-deep);
  color: var(--white);
  border-top: 1px solid var(--gold);
  padding: 0;
}

.cobertura-inner {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.cobertura-photo {
  flex: 0 0 50%;
  aspect-ratio: 3/4;
  order: 2;
  background-image: linear-gradient(180deg, rgba(8, 25, 46, 0.05), rgba(8, 25, 46, 0.35)),
                    url('../images/cobertura-bg.jpg');
  background-size: cover;
  background-position: center;
}

.cobertura-content {
  flex: 1;
  order: 1;
  padding: var(--space-4) var(--space-3) var(--space-4) var(--space-2);
  min-width: 0;
}

.cobertura h2 {
  color: var(--white);
  font-size: clamp(20px, 5vw, 28px);
  margin-bottom: var(--space-1);
}

.cobertura .eyebrow {
  color: var(--gold);
}

@media (min-width: 760px) {
  .cobertura-photo {
    flex: 0 0 55%;
  }
  .cobertura-content {
    padding: var(--space-5) var(--space-4);
  }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: var(--space-4) 0;
}

.chip {
  border: 1px solid rgba(201, 169, 97, 0.5);
  color: var(--gold-soft);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
}

.fine {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: var(--space-2);
}

/* ========== PLAN DE LANZAMIENTO ========== */
.lanzamiento {
  text-align: center;
  background: var(--navy-mid);
  padding: var(--space-5) 0;
}

.lanzamiento-card {
  background: var(--navy-deep);
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: var(--space-4) var(--space-3);
  max-width: 440px;
  margin: 0 auto;
}

.lanzamiento h2 {
  font-size: clamp(22px, 4.5vw, 28px);
  margin-bottom: var(--space-3);
  color: var(--white);
}

.lanzamiento p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-4);
  max-width: 38ch;
  margin-left: auto;
  margin-right: auto;
}

/* ========== PRICE REVEAL ========== */
.price-section {
  display: none;
}

.price-section.revealed {
  display: block;
}

.price-section .section {
  padding: var(--space-4) 0;
}

.price-inner {
  text-align: center;
}

.badge-off {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.ticket {
  background: var(--navy-deep);
  color: var(--white);
  border-radius: 10px;
  padding: 16px var(--space-3) 20px;
  border: 1px solid var(--gold);
  box-shadow: 0 14px 30px rgba(10, 37, 64, 0.28);
  position: relative;
  z-index: 2;
  margin: 0 4px -22px;
}

.ticket .eyebrow {
  color: var(--gold-soft);
  margin-bottom: 6px;
  font-size: 11px;
}

.ticket-clock {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 7vw, 36px);
  letter-spacing: 0.03em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.ticket-sub {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
}

.plans-compact {
  background: var(--cream);
  border-radius: 10px;
  padding: 32px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--white);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  padding: 12px 14px;
  text-align: left;
}

.plan-row .plan-name {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 2px;
}

.plan-row .plan-prices {
  text-align: right;
  white-space: nowrap;
}

.plan-anchor {
  font-size: 13px;
  color: #B0392E;
  text-decoration: line-through;
  opacity: 0.6;
  display: block;
}

.plan-real {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  color: var(--navy-deep);
  font-weight: 600;
}

.plan-per {
  font-size: 11px;
  color: var(--ink-soft);
}

.price-cta-wrap {
  margin-top: 16px;
}

.fallback-note {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: var(--space-2);
}

/* ========== FAQ ========== */
.faq-section {
  background: var(--navy-deep);
  text-align: center;
}

.faq-section .eyebrow {
  color: var(--gold);
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
}

.faq-q {
  width: 100%;
  text-align: center;
  background: none;
  border: none;
  padding: 20px 0;
  font-family: 'Fraunces', serif;
  font-size: 16.5px;
  font-weight: 500;
  color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.faq-q .plus {
  color: var(--gold);
  font-size: 20px;
  font-weight: 400;
  transition: transform 0.2s ease;
  flex: 0 0 auto;
}

.faq-item.open .plus {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.65);
}

.faq-a-inner {
  padding-bottom: 20px;
  max-width: 44ch;
  margin: 0 auto;
}

.faq-item.open .faq-a {
  max-height: 300px;
}

.faq-buttons-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-5);
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(201, 169, 97, 0.2);
  border-radius: 16px;
}

.faq-buttons-container .btn {
  min-width: 240px;
  justify-content: center;
}

@media (min-width: 600px) {
  .faq-buttons-container {
    flex-direction: row;
    gap: 18px;
  }
  .faq-buttons-container .btn {
    min-width: 200px;
  }
}

/* ========== CLOSING ========== */
.closing {
  position: relative;
  background: linear-gradient(180deg, rgba(8, 25, 46, 0.35) 0%, rgba(8, 25, 46, 0.55) 60%, rgba(8, 25, 46, 0.82) 100%),
              url('../images/closing-bg.jpg');
  background-size: cover;
  background-position: center 25%;
  color: var(--white);
  text-align: center;
  padding: var(--space-6) var(--space-3);
}

.closing h2 {
  color: var(--white);
  font-size: clamp(26px, 6vw, 38px);
  margin-bottom: var(--space-4);
  max-width: 14ch;
  margin-left: auto;
  margin-right: auto;
}

footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  font-size: 12px;
  padding: var(--space-3);
}

/* ========== MODALES ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 25, 46, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--space-3);
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--white);
  border-radius: 6px;
  max-width: 400px;
  width: 100%;
  padding: var(--space-4) var(--space-3);
  position: relative;
  text-align: center;
  animation: modalIn 0.22s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--ink-soft);
  cursor: pointer;
  line-height: 1;
}

.modal-box h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.modal-box p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: var(--space-3);
}

.modal-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #D8DCE0;
  border-radius: 4px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  margin-bottom: 12px;
}

.modal-input:focus {
  outline: none;
  border-color: var(--gold);
}

.modal-err {
  font-size: 12.5px;
  color: #B0392E;
  margin-bottom: 10px;
  display: none;
}

.modal-wa-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 25, 46, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  padding: var(--space-3);
}

.modal-wa-overlay.active {
  display: flex;
}

.modal-wa-box {
  background: var(--white);
  border-radius: 10px;
  max-width: 380px;
  width: 100%;
  padding: var(--space-4);
  position: relative;
  animation: modalIn 0.22s ease;
}

.modal-wa-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 18px;
  color: var(--ink-soft);
  cursor: pointer;
  line-height: 1;
}

.modal-wa-box h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--navy-deep);
}

.modal-wa-box p {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.modal-wa-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #D8DCE0;
  border-radius: 6px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  margin-bottom: 12px;
}

.modal-wa-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 169, 97, 0.15);
}

.modal-wa-err {
  font-size: 12px;
  color: #B0392E;
  margin-bottom: 10px;
  display: none;
}

.modal-wa-submit {
  width: 100%;
}

/* ========== REVEAL ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ========== RESPONSIVO ========== */
@media (max-width: 480px) {
  .section {
    padding: var(--space-5) 0;
  }
  .hero {
    min-height: 88vh;
  }
}
