/* ============================================================
   Parcelas de Chile — main.css v2.0
   ============================================================ */

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

:root {
  --orange:      #d47c2e;
  --orange-btn:  #c97b30;
  --orange-dark: #b56a20;
  --text-dark:   #2d2d2d;
  --text-gray:   #6b6b6b;
  --bg-white:    #ffffff;
  --bg-card:     #f2f2f2;
  --chile-blue:  #1a3f8c;
  --chile-red:   #c0392b;
  --chile-green: #2e7d32;
  --serif:       'Playfair Display', Georgia, serif;
  --sans:        'DM Sans', sans-serif;
  --btn-color:      #c97b30;
  --btn-hover:      #b56a20;
  --btn-text-color: #ffffff;
  --btn-radius:     50px;
  --accent-color:   #d47c2e;
  --navbar-bg:      rgba(255,255,255,0.97);
  --navbar-link:    #2d2d2d;
  --navbar-radius:  14px;
}


html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text-dark);
  background: var(--bg-white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
.img-placeholder { width: 100%; height: 100%; }

/* ─── NAVBAR ─── */
.site-header { position: relative; }

/* Logo imagen real */
.logo-img-wrap {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
  /* Los iconos son PNG sobre fondo negro — invertimos para que se vean bien en navbar blanco */
  filter: brightness(0);
}

/* Logo blanco en footer */
.footer-logo-img-wrap {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.footer-logo-img {
  height: 56px;
  width: auto;
  display: block;
  object-fit: contain;
}

.navbar {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 80px);
  max-width: 1400px;
  background: var(--navbar-bg);
  border-radius: var(--navbar-radius);
  padding: 18px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  transition: box-shadow .3s;
}

.logo {
  display: flex; flex-direction: column; gap: 4px;
  text-decoration: none;
}
.logo-text {
  font-family: var(--sans); font-weight: 700; font-size: 18px;
  letter-spacing: .05em; color: var(--text-dark);
  text-decoration: underline; text-decoration-color: var(--text-dark);
  text-underline-offset: 3px;
}
.logo-stripe { display: flex; height: 3px; width: 100%; gap: 2px; }
.logo-stripe span { flex: 1; border-radius: 2px; }
.logo-stripe .s1 { background: var(--chile-blue); }
.logo-stripe .s2 { background: var(--chile-red); }
.logo-stripe .s3 { background: var(--bg-white); border: 1px solid #ddd; }
.logo-stripe .s4 { background: var(--chile-green); }
.logo-sub { font-family: var(--sans); font-size: 10px; letter-spacing: .15em; color: var(--text-gray); text-align: center; }

.nav-links, .navbar .menu { display: flex; gap: 44px; list-style: none; margin: 0; padding: 0; }
.nav-links a, .navbar .menu a {
  font-family: var(--sans); font-size: 15px; font-weight: 400;
  color: var(--navbar-link); text-decoration: none; transition: color .2s;
}
.nav-links a:hover, .navbar .menu a:hover { color: var(--btn-color); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--text-dark); border-radius: 2px; transition: all .3s; }
.nav-toggle.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ─── HERO ─── */
.hero {
  position: relative; width: 100%;
  height: 85vh; min-height: 560px;
  overflow: hidden; background: #5a7a8b;
}
.hero-video {
  position: absolute; top:0; left:0;
  width:100%; height:100%;
  object-fit: cover; object-position: center;
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.30) 40%, rgba(0,0,0,0) 80%);
  z-index: 1;
}
.hero-content {
  position: absolute;
  bottom: 80px; left: 80px;
  color: #fff; max-width: 640px; z-index: 2;
}
.hero-sub   { font-family: var(--sans); font-size: 22px; font-weight: 300; opacity: .92; margin-bottom: 4px; }
.hero-mid   { font-family: var(--sans); font-size: 44px; font-weight: 600; line-height: 1.1; }
.hero-big   { font-family: var(--serif); font-size: 92px; font-weight: 900; font-style: italic; line-height: .9; letter-spacing: -.02em; text-transform: uppercase; margin-bottom: 18px; display: block; }
.hero-price { font-family: var(--sans); font-size: 20px; font-weight: 600; opacity: .9; margin-bottom: 28px; }
.btn-hero   { font-size: 16px !important; padding: 16px 48px !important; }

/* ─── BTN NARANJA ─── */
.btn-orange {
  display: inline-block;
  background: var(--btn-color);
  color: var(--btn-text-color);
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  padding: 15px 40px;
  border-radius: var(--btn-radius);
  text-decoration: none; border: none; cursor: pointer;
  transition: background .2s, transform .15s;
  white-space: nowrap; line-height: 1;
}
.btn-orange:hover { background: var(--btn-hover); color: var(--btn-text-color); transform: translateY(-1px); text-decoration: none; }

/* ─── FRANJA CHILE ─── */
.chile-stripe { display: flex; height: 8px; width: 100%; }
.chile-stripe span { flex: 1; }
.chile-stripe .cs1 { background: var(--chile-blue); }
.chile-stripe .cs2 { background: var(--chile-red); }
.chile-stripe .cs3 { background: var(--bg-white); border-top: 1px solid #e8e8e8; }
.chile-stripe .cs4 { background: var(--chile-green); }

/* ─── MISSION ─── */
.mission { padding: 80px 80px 60px; background: var(--bg-white); text-align: center; }
.mission-tagline { font-family: var(--sans); font-size: 26px; font-weight: 400; color: var(--text-gray); line-height: 1.5; margin-bottom: 12px; }
.mission-tagline .highlight { font-family: var(--serif); font-style: italic; color: var(--accent-color); font-size: 30px; font-weight: 700; }
.mission-parcela-title { font-family: var(--sans); font-size: 38px; font-weight: 400; color: var(--text-dark); margin-top: 48px; }
.mission-parcela-title strong { font-family: var(--serif); font-style: italic; font-weight: 900; }

/* ─── PARCELA ─── */
.parcela-section { padding: 10px 80px 60px; }
.parcela-img-wrap { position: relative; border-radius: 20px; overflow: hidden; width: 100%; height: 420px; }
.parcela-img-wrap img, .parcela-img-wrap .img-placeholder { width: 100%; height: 100%; object-fit: cover; }
.parcela-overlay-text { position: absolute; bottom: 30px; right: 40px; color: #fff; text-align: right; }
.parcela-overlay-text .m2   { font-family: var(--sans); font-size: 18px; font-weight: 400; opacity: .9; }
.parcela-overlay-text .solo { font-family: var(--serif); font-size: 36px; font-style: italic; font-weight: 700; text-shadow: 0 2px 8px rgba(0,0,0,.4); }

/* ─── FEATURES ─── */
.features-section { padding: 30px 80px 20px; }
.features-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: start; }
.feat-card { position: relative; border-radius: 18px; overflow: hidden; }
.feat-card img { width: 100%; height: 360px; object-fit: cover; display: block; }
.feat-text { position: absolute; bottom: 28px; left: 28px; color: #fff; }
.feat-text .label { font-family: var(--sans); font-size: 16px; font-weight: 400; opacity: .9; }
.feat-text .big   { font-family: var(--serif); font-size: 36px; font-weight: 700; line-height: 1.1; text-shadow: 0 2px 6px rgba(0,0,0,.3); }
.feat-overlay-right { position: absolute; bottom: 28px; right: 28px; color: #fff; text-align: right; }
.feat-overlay-right .label { font-family: var(--sans); font-size: 16px; font-weight: 400; opacity: .9; }
.feat-overlay-right .big   { font-family: var(--serif); font-size: 36px; font-weight: 700; text-shadow: 0 2px 6px rgba(0,0,0,.3); }
.feat-cta { margin-top: 22px; }

/* ─── INCLUYE ─── */
.incluye-section { padding: 60px 80px; }
.incluye-section h2 { font-family: var(--serif); font-style: italic; font-size: 52px; font-weight: 900; margin-bottom: 36px; color: var(--text-dark); }
.incluye-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; }
.incluye-grid .inc-img { border-radius: 16px; overflow: hidden; aspect-ratio: 3/4; }
.incluye-grid .inc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.incluye-grid .inc-img:hover img { transform: scale(1.04); }

/* ─── SEGURIDAD ─── */
.seguridad-section { padding: 70px 80px 60px; }
.seguridad-section > h2 { font-family: var(--sans); font-size: 52px; font-weight: 300; margin-bottom: 48px; }
.seguridad-section > h2 strong { font-family: var(--serif); font-style: italic; font-weight: 900; }
.seguridad-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 48px; }
.seg-card { background: var(--bg-card); border-radius: 16px; padding: 36px 36px 28px; }
.seg-card h3 { font-family: var(--sans); font-size: 22px; font-weight: 400; color: #888; margin-bottom: 18px; line-height: 1.35; }
.seg-card h3 em { font-family: var(--serif); font-style: italic; color: #888; }
.seg-card p   { font-family: var(--sans); font-size: 14px; line-height: 1.7; color: #888; margin-bottom: 24px; }
.seg-card p strong { color: #666; }
.seg-stripe { display: flex; height: 3px; gap: 3px; width: 60%; }
.seg-stripe span { flex: 1; border-radius: 2px; }
.seg-stripe .ss1 { background: var(--chile-blue); }
.seg-stripe .ss2 { background: var(--chile-red); }
.seg-stripe .ss3 { background: #e0e0e0; }
.seg-stripe .ss4 { background: var(--chile-green); }
.seguridad-btns { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }

/* ─── PASOS ─── */
.pasos-section { padding: 70px 80px; }
.pasos-section > h2 { font-family: var(--sans); font-size: 52px; font-weight: 300; margin-bottom: 60px; }
.pasos-section > h2 strong { font-family: var(--serif); font-style: italic; font-weight: 900; }
.pasos-numbers { display: grid; grid-template-columns: repeat(5,1fr); margin-bottom: 8px; }
.paso-num { text-align: center; font-family: var(--serif); font-style: italic; font-size: 52px; font-weight: 400; color: #d8d8d8; line-height: 1; }
.pasos-labels { display: grid; grid-template-columns: repeat(5,1fr); margin-bottom: 20px; }
.paso-label { text-align: center; font-family: var(--serif); font-style: italic; font-size: 18px; color: #c0c0c0; line-height: 1.2; padding: 0 10px; }
.pasos-timeline { position: relative; height: 20px; display: flex; align-items: center; margin-bottom: 28px; }
.timeline-line { position: absolute; left: 10%; right: 10%; height: 2px; background: var(--btn-color); border-radius: 2px; }
.pasos-dots { position: absolute; left: 0; right: 0; display: grid; grid-template-columns: repeat(5,1fr); }
.paso-dot-col { display: flex; justify-content: center; }
.paso-dot { width: 14px; height: 14px; background: var(--btn-color); border-radius: 50%; z-index: 2; }
.pasos-texts { display: grid; grid-template-columns: repeat(5,1fr); }
.paso-text { padding: 0 16px 0 0; font-family: var(--sans); font-size: 13px; line-height: 1.65; color: var(--text-dark); }
.paso-text strong { font-weight: 600; }

/* ─── CTA HERO FINAL ─── */
.cta-hero { position: relative; width: 100%; height: 80vh; min-height: 520px; overflow: hidden; background: #2a3a22; }
.cta-hero-video { position: absolute; top:0; left:0; width:100%; height:100%; object-fit: cover; z-index: 0; }
.cta-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom,rgba(0,0,0,0) 10%,rgba(0,0,0,.70) 100%); z-index: 1; }
.cta-hero-content { position: absolute; bottom:0; left:0; right:0; padding: 60px 80px 70px; color: #fff; z-index: 2; }
.cta-eyebrow { font-family: var(--sans); font-size: 22px; font-weight: 400; opacity: .9; margin-bottom: 4px; }
.cta-big     { font-family: var(--serif); font-style: italic; font-size: 72px; font-weight: 900; line-height: 1; margin-bottom: 20px; letter-spacing: -.01em; }
.cta-sub     { font-family: var(--sans); font-size: 16px; opacity: .85; max-width: 440px; line-height: 1.5; margin-bottom: 32px; }

/* ─── FOOTER ─── */
.site-footer { background: #1a1a1a; padding: 60px 80px 40px; color: #fff; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 40px; }
.footer-logo { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.footer-logo .logo-text { color: #fff; text-decoration-color: #fff; }
.footer-logo .logo-sub  { color: #aaa; }
.footer-social { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.footer-icons  { display: flex; gap: 20px; }
.footer-icons a {
  display: flex; align-items: center; justify-content: center;
  width: var(--footer-icon-size, 52px);
  height: var(--footer-icon-size, 52px);
  border-radius: 50%;
  text-decoration: none;
  transition: transform .2s, opacity .2s;
  overflow: hidden;
}
.footer-icons a img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .2s;
}
.footer-icons a:hover { transform: scale(1.1); opacity: .88; }
.footer-links { font-family: var(--sans); font-size: 13px; color: #aaa; text-align: center; }
.footer-links a { color: #aaa; text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-wa a {
  display: flex; align-items: center; justify-content: center;
  width: var(--footer-wa-size, 64px);
  height: var(--footer-wa-size, 64px);
  border-radius: 50%;
  text-decoration: none;
  transition: transform .2s, opacity .2s;
  overflow: hidden;
}
.footer-wa a img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.footer-wa a:hover { transform: scale(1.1); opacity: .88; }

/* ─── ADMIN BAR ─── */
#wpadminbar { position: fixed !important; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .navbar { width: calc(100% - 40px); padding: 16px 24px; }
  .nav-links, .navbar .menu { gap: 28px; }
  .hero-content { left: 40px; bottom: 60px; }
  .hero-mid { font-size: 34px; }
  .hero-big { font-size: 72px; }
  .mission, .parcela-section, .features-section,
  .incluye-section, .seguridad-section, .pasos-section { padding-left: 40px !important; padding-right: 40px !important; }
  .cta-hero-content { padding: 40px 40px 50px !important; }
  .cta-big { font-size: 54px !important; }
  .site-footer { padding: 50px 40px !important; }
}

@media (max-width: 768px) {
  .nav-links, .navbar .menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column;
    padding: 20px 24px; border-radius: 0 0 14px 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,.1); gap: 16px;
  }
  .nav-links.open, .navbar .menu.open { display: flex; }
  .nav-toggle { display: flex; }

  .hero-content { left: 24px !important; right: 24px; bottom: 40px !important; max-width: 100%; }
  .hero-sub  { font-size: 16px !important; }
  .hero-mid  { font-size: 26px !important; }
  .hero-big  { font-size: 52px !important; }
  .hero-price{ font-size: 15px !important; }

  .mission { padding: 50px 24px 36px !important; }
  .mission-tagline { font-size: 20px !important; }
  .mission-tagline .highlight { font-size: 24px !important; }
  .mission-parcela-title { font-size: 28px !important; }

  .parcela-section { padding: 10px 24px 40px !important; }
  .parcela-img-wrap { height: 260px !important; }

  .features-section { padding: 20px 24px !important; }
  .features-grid { grid-template-columns: 1fr; }
  .feat-card img { height: 260px !important; }

  .incluye-section { padding: 40px 24px !important; }
  .incluye-section h2 { font-size: 36px !important; }
  .incluye-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .incluye-grid .inc-img:last-child { grid-column: span 2; aspect-ratio: 16/9; }

  .seguridad-section { padding: 50px 24px 40px !important; }
  .seguridad-section > h2 { font-size: 36px !important; }
  .seguridad-grid { grid-template-columns: 1fr; }

  .pasos-section { padding: 50px 24px !important; }
  .pasos-section > h2 { font-size: 36px !important; }
  .pasos-numbers, .pasos-labels, .pasos-texts { grid-template-columns: 1fr; }
  .pasos-timeline { display: none; }
  .pasos-texts { gap: 24px; margin-top: 16px; }
  .paso-num, .paso-label { text-align: left; padding-left: 0; }

  .cta-hero-content { padding: 30px 24px 40px !important; }
  .cta-eyebrow { font-size: 16px !important; }
  .cta-big { font-size: 38px !important; }
  .cta-sub { font-size: 14px !important; max-width: 100%; }

  .site-footer { grid-template-columns: 1fr; text-align: center; padding: 40px 24px !important; }
  .footer-wa { justify-content: center; }
}
