/* ═══════════════════════════════════════════════════════════
   HOSTMYCASA · DESIGN SYSTEM
   Common styles loaded by every page
   ═══════════════════════════════════════════════════════════ */

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

:root {
  /* ─── COLORS ─── */
  --ocean:        #0F2342;
  --ocean-soft:   #1B3258;
  --ink:          #0A1628;
  --azul:         #2563EB;
  --azul-deep:    #1D4FCC;
  --cielo:        #93C5FD;
  --cielo-light:  #BFDBFE;
  --canvas:       #F4F6FB;
  --bruma:        #E8EFFB;
  --niebla:       #D6DEEB;
  --grey:         #7A90AB;
  --grey-soft:    #2C3E5C;
  --palma:        #10B981;
  --arena:        #F59E0B;
  --warm:         #FAF6F0;

  /* ─── TYPE ─── */
  --serif:  'Fraunces', Georgia, serif;
  --sans:   'Inter', system-ui, sans-serif;
  --mono:   'DM Mono', ui-monospace, monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--grey-soft);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--ocean); color: var(--cielo); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: 0; }
img, svg { display: block; max-width: 100%; }

/* film grain overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ═══════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════ */

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
}

/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY (heavier weights — addressing user feedback)
   ═══════════════════════════════════════════════════════════ */

.label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
}

.h1, h1.display {
  font-family: var(--serif);
  font-weight: 500;          /* heavier than before */
  font-size: clamp(54px, 8.5vw, 124px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--ocean);
}

.h2, h2.display {
  font-family: var(--serif);
  font-weight: 500;          /* was 400 */
  font-size: clamp(40px, 5.5vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--ocean);
}

.h3, h3.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 2.8vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ocean);
}

em.italic, .italic {
  font-style: italic;
  color: var(--azul);
  font-weight: 400;          /* italic version with body weight */
}

.dark em.italic, .dark .italic { color: var(--cielo); }

/* highlight underline — used for "tú solo cobras" etc */
.mark {
  background: linear-gradient(transparent 60%, var(--cielo-light) 60%);
  padding: 0 4px;
  font-weight: 500;
  color: var(--ocean);
}
.dark .mark {
  background: linear-gradient(transparent 60%, rgba(147, 197, 253, 0.3) 60%);
  color: var(--canvas);
}

/* ═══════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════ */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
  border-bottom: 0.5px solid transparent;
}
.site-header.scrolled {
  background: rgba(244, 246, 251, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  border-bottom-color: var(--niebla);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ocean);
}
.header-logo .my { font-style: italic; color: var(--azul); padding: 0 0.06em; font-weight: 400; }
.header-logo-icon {
  width: 32px;
  height: 32px;
  background: var(--azul);
  border-radius: 7px;
  display: grid;
  place-items: center;
}
.header-logo-icon svg { width: 18px; height: 18px; }

.header-nav {
  display: flex;
  gap: 36px;
  font-size: 14px;
  font-weight: 400;
  color: var(--grey-soft);
}
.header-nav a {
  position: relative;
  transition: color 0.2s;
  padding: 4px 0;
}
.header-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--azul);
  transition: width 0.3s ease;
}
.header-nav a:hover { color: var(--ocean); }
.header-nav a:hover::after { width: 100%; }
.header-nav a.active { color: var(--ocean); font-weight: 500; }
.header-nav a.active::after { width: 100%; background: var(--ocean); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.lang-switch {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--grey);
}
.lang-switch a { transition: color 0.2s; }
.lang-switch a:hover { color: var(--ocean); }
.lang-switch .active { color: var(--ocean); font-weight: 500; }

@media (max-width: 900px) {
  .header-nav { display: none; }
  .header-actions { gap: 14px; }
}
@media (max-width: 540px) {
  .header-logo span:last-child { display: none; }
  .lang-switch { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.005em;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ocean);
  color: var(--canvas);
}
.btn-primary:hover {
  background: var(--ink);
  transform: translateY(-1px);
}
.btn-primary .arrow,
.btn-blue .arrow,
.btn-link .arrow {
  transition: transform 0.25s ease;
}
.btn-primary:hover .arrow,
.btn-blue:hover .arrow { transform: translateX(4px); }

.btn-blue {
  background: var(--azul);
  color: white;
}
.btn-blue:hover {
  background: var(--azul-deep);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ocean);
  border: 1px solid var(--niebla);
}
.btn-ghost:hover {
  border-color: var(--ocean);
  background: rgba(15, 35, 66, 0.03);
}

.btn-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  color: var(--ocean);
  border-bottom: 1px solid var(--ocean);
  padding: 4px 2px;
  transition: all 0.25s ease;
}
.btn-link-arrow:hover {
  color: var(--azul);
  border-color: var(--azul);
  gap: 10px;
}
.dark .btn-link-arrow { color: var(--canvas); border-color: var(--cielo); }
.dark .btn-link-arrow:hover { color: var(--cielo); }

/* ═══════════════════════════════════════════════════════════
   CHAPTER HEADER (numbered editorial style)
   ═══════════════════════════════════════════════════════════ */

.chapter-header {
  margin-bottom: 80px;
  position: relative;
}
.chapter-header.center { text-align: center; }
.chapter-header .chapter-num {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 24px;
}
.chapter-header.center .chapter-num {
  display: flex;
  justify-content: center;
}
.chapter-header .chapter-num .num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  color: var(--azul);
  line-height: 1;
}
.chapter-header .chapter-num .line {
  width: 60px;
  height: 1px;
  background: var(--niebla);
}
.chapter-header .chapter-num .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
}
.chapter-header h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 5.5vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--ocean);
  max-width: 900px;
}
.chapter-header.center h2 { margin: 0 auto; }
.chapter-header h2 em {
  font-style: italic;
  color: var(--azul);
  font-weight: 400;
}
.chapter-header .chapter-lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.45;
  color: var(--grey-soft);
  max-width: 640px;
  margin-top: 32px;
}
.chapter-header.center .chapter-lede { margin-left: auto; margin-right: auto; }

.dark .chapter-header h2 { color: var(--canvas); }
.dark .chapter-header h2 em { color: var(--cielo); }
.dark .chapter-header .chapter-num .label { color: var(--cielo); }
.dark .chapter-header .chapter-num .line { background: rgba(147, 197, 253, 0.3); }
.dark .chapter-header .chapter-lede { color: var(--cielo-light); }

/* ═══════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════ */

.section {
  padding: 140px 0;
  position: relative;
}
@media (max-width: 768px) {
  .section { padding: 90px 0; }
}

.section.dark {
  background: var(--ocean);
  color: var(--canvas);
}
.section.dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(147, 197, 253, 0.05) 0%, transparent 50%);
  pointer-events: none;
}
.section.dark > * { position: relative; }

.section.warm {
  background: var(--warm);
}

/* page hero — top of inner pages */
.page-hero {
  padding: 200px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--bruma) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero > * { position: relative; }

.page-hero-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--azul);
  margin-bottom: 24px;
}
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ocean);
  max-width: 1000px;
  margin-bottom: 32px;
}
.page-hero h1 em {
  font-style: italic;
  color: var(--azul);
  font-weight: 400;
}
.page-hero .lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.4;
  color: var(--grey-soft);
  max-width: 720px;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */

footer.site-footer {
  background: var(--ink);
  color: var(--cielo);
  padding: 100px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 80px;
  border-bottom: 0.5px solid rgba(147, 197, 253, 0.15);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

.footer-brand .footer-logo {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  color: var(--canvas);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.footer-brand .footer-logo .my {
  font-style: italic;
  color: var(--cielo);
  padding: 0 0.06em;
  font-weight: 400;
}
.footer-brand p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 18px;
  color: var(--cielo);
  line-height: 1.4;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(147, 197, 253, 0.5);
  margin-bottom: 24px;
  font-weight: 500;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-col a {
  font-size: 14px;
  color: var(--canvas);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--cielo); }

.footer-bottom {
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: rgba(147, 197, 253, 0.5);
  text-transform: uppercase;
}
@media (max-width: 600px) {
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes lineUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15); }
  50%      { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}
@keyframes notifIn {
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   FINAL CTA (used on every page)
   ═══════════════════════════════════════════════════════════ */

.final-cta {
  background: var(--ocean);
  color: var(--canvas);
  padding: 140px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  top: -300px; right: -300px;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, transparent 60%);
  pointer-events: none;
}
.final-cta::after {
  content: '';
  position: absolute;
  bottom: -300px; left: -300px;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(147, 197, 253, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.final-cta > * { position: relative; z-index: 1; }

.final-cta h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(48px, 7vw, 100px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.final-cta h2 em {
  font-style: italic;
  color: var(--cielo);
  font-weight: 400;
}
.final-cta p.lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--cielo);
  max-width: 600px;
  margin: 0 auto 56px;
}

/* form */
.form {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
}
.form input, .form select, .form textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  color: var(--canvas);
  padding: 16px 20px;
  font-family: inherit;
  font-size: 15px;
  border-radius: 12px;
  transition: all 0.2s;
  width: 100%;
}
.form input::placeholder, .form textarea::placeholder { color: rgba(244, 246, 251, 0.4); }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--cielo);
  background: rgba(255, 255, 255, 0.08);
}
.form button {
  margin-top: 6px;
  background: var(--azul);
  color: white;
  padding: 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.25s ease;
}
.form button:hover {
  background: var(--azul-deep);
  transform: translateY(-1px);
}

.or-divider {
  margin: 40px auto;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(147, 197, 253, 0.5);
  max-width: 480px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.or-divider::before, .or-divider::after {
  content: '';
  flex: 1; height: 1px;
  background: rgba(147, 197, 253, 0.2);
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--canvas);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 14px;
  transition: all 0.25s ease;
}
.whatsapp-link:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ═══════════════════════════════════════════════════════════
   PRICE / NUMBER — fix `%` glued to digits
   ═══════════════════════════════════════════════════════════ */
.numeric .pct,
.numeric sup {
  display: inline-block;
  margin-left: 0.08em;
  font-weight: 400;
}

/* ═══════════════════════════════════════════════════════════
   DIZIGNI CREDIT — Editorial signature band
   ═══════════════════════════════════════════════════════════ */

.dizigni-band {
  padding: 32px 0;
  background: var(--canvas);
  border-top: 0.5px solid var(--niebla);
  border-bottom: 0.5px solid var(--niebla);
}

.dizigni-band-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
}

.dizigni-band-inner::before,
.dizigni-band-inner::after {
  content: '';
  flex: 0 1 80px;
  height: 1px;
  background: var(--niebla);
}

.dizigni-band-inner em {
  font-style: italic;
  font-family: var(--serif);
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.005em;
  color: var(--ocean);
  font-size: 14px;
}

.dizigni-band-inner a {
  color: inherit;
  transition: color 0.2s ease;
}
.dizigni-band-inner a:hover em {
  color: var(--azul);
}

@media (max-width: 600px) {
  .dizigni-band-inner {
    flex-direction: column;
    gap: 8px;
  }
  .dizigni-band-inner::before,
  .dizigni-band-inner::after {
    display: none;
  }
}

/* Footer Dizigni line */
.footer-dizigni {
  padding: 32px 0 16px;
  margin-top: 8px;
  border-top: 0.5px solid rgba(147, 197, 253, 0.1);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(147, 197, 253, 0.4);
  text-align: center;
  transition: color 0.2s ease;
}
.footer-dizigni a {
  color: inherit;
}
.footer-dizigni a:hover {
  color: var(--cielo);
}
