/* ============================================================
   VILANLEX — components.css
   Buttons, cards, grids and reusable UI components
   ============================================================ */

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn-primary {
  background: var(--gold); color: var(--navy);
  padding: 15px 34px; font-size: 11px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  text-decoration: none; transition: background 0.2s, transform 0.2s;
  display: inline-block;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-gold {
  background: var(--gold); color: var(--navy);
  font-size: 11px; font-weight: 500; letter-spacing: 2px;
  text-transform: uppercase; padding: 15px 32px;
  text-decoration: none; display: inline-block; transition: background 0.2s;
}
.btn-gold:hover { background: var(--gold-light); }

.btn-g {
  display: inline-block; background: var(--gold); color: var(--navy);
  font-size: 11px; font-weight: 500; letter-spacing: 2px;
  text-transform: uppercase; padding: 14px 28px;
  text-decoration: none; margin-top: 28px; transition: background 0.2s;
}
.btn-g:hover { background: var(--gold-light); }

.btn-dark {
  background: linear-gradient(135deg,#0a1628 0%,#0d1b2a 40%,#0f2240 70%,#091525 100%);
  color: #fff; font-size: 11px; font-weight: 500; letter-spacing: 2px;
  text-transform: uppercase; padding: 16px 36px;
  text-decoration: none; display: inline-block; transition: background 0.2s;
}
.btn-dark:hover { background: var(--navy-mid); }

.btn-outline {
  border: 1px solid var(--navy); color: var(--navy);
  font-size: 11px; font-weight: 500; letter-spacing: 2px;
  text-transform: uppercase; padding: 15px 36px;
  text-decoration: none; display: inline-block; transition: all 0.2s;
}
.btn-outline:hover {
  background: linear-gradient(135deg,#0a1628 0%,#0d1b2a 40%,#0f2240 70%,#091525 100%);
  color: #fff;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);

  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;

  padding: 15px 28px;
  text-decoration: none;

  transition: all 0.2s;

  white-space: nowrap;

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

.btn-ghost-text {
  color: rgba(255,255,255,0.6); font-size: 11px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  text-decoration: none; display: flex; align-items: center; gap: 8px; transition: color 0.2s;
}
.btn-ghost-text:hover { color: var(--gold); }
.btn-ghost-text::after { content: '→'; font-size: 14px; }

.btn-outline-dark {
  border: 1px solid var(--navy); color: var(--navy);
  padding: 15px 38px; font-size: 11px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  text-decoration: none; display: inline-block; transition: background 0.2s, color 0.2s;
}
.btn-outline-dark:hover { background: var(--navy); color: #fff; }

.btn-back {
  display: inline-block; background: var(--gold); color: var(--navy);
  font-size: 11px; font-weight: 500; letter-spacing: 2px;
  text-transform: uppercase; padding: 14px 32px; text-decoration: none;
}
.btn-back:hover { background: var(--gold-light); }

/* ── CTA SECTION ──────────────────────────────────────────── */
.cta {
  background: linear-gradient(135deg,#0a1628 0%,#0d1b2a 40%,#0f2240 70%,#091525 100%);
  padding: 100px 60px; text-align: center; position: relative; overflow: hidden;
}
.cta::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 1px; height: 60px; background: var(--gold);
}
.cta h2 {
  font-family: 'Cormorant Garamond',serif;
  font-size: clamp(32px,4vw,56px); font-weight: 300; color: #fff;
  line-height: 1.15; margin-bottom: 16px;
}
.cta h2 em { font-style: italic; color: var(--gold-light); }
.cta p { font-size: 15px; font-weight: 300; color: rgba(255,255,255,0.45); max-width: 500px; margin: 0 auto 44px; line-height: 1.75; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.cta-exito { background: var(--gold-pale); padding: 100px 60px; position: relative; overflow: hidden; }
.cta-exito::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 1px; height: 60px; background: var(--gold);
}
.cta-exito-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.cta-exito h2 { font-family: 'Cormorant Garamond',serif; font-size: clamp(32px,4vw,58px); font-weight: 300; color: var(--navy); line-height: 1.15; margin-bottom: 20px; }
.cta-exito h2 em { font-style: italic; color: var(--stone); }
.cta-exito p { font-size: 15px; font-weight: 300; color: var(--text-muted); max-width: 580px; margin: 0 auto 48px; line-height: 1.8; }
.cta-exito p strong { font-weight: 500; color: var(--navy); }

/* ── STATS ROW ────────────────────────────────────────────── */
.stats-row { display: flex; justify-content: center; gap: 0; margin-bottom: 56px; border: 0.5px solid rgba(201,169,110,0.3); }
.stat-box { padding: 28px 40px; border-right: 0.5px solid rgba(201,169,110,0.3); flex: 1; text-align: center; }
.stat-box:last-child { border-right: none; }
.stat-num { font-family: 'Cormorant Garamond',serif; font-size: 44px; font-weight: 300; color: var(--navy); line-height: 1; }
.stat-label { font-size: 10px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--stone); margin-top: 6px; }

/* ── SERVICE CARDS ────────────────────────────────────────── */
.srv-card {
  background: var(--cream); padding: 40px 32px;
  position: relative; transition: background 0.3s;
}
.srv-card::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--gold); transition: width 0.4s;
}
.srv-card:hover { background: #fff; }
.srv-card:hover::after { width: 100%; }
.srv-icon { width: 36px; height: 36px; color: var(--gold); margin-bottom: 18px; }
.srv-title { font-family: 'Cormorant Garamond',serif; font-size: 21px; font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.srv-desc { font-size: 13px; font-weight: 300; color: var(--text-muted); line-height: 1.7; margin-bottom: 14px; }
.srv-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.srv-list li { font-size: 12px; font-weight: 300; color: var(--text-muted); padding-left: 14px; position: relative; line-height: 1.5; }
.srv-list li::before { content: '—'; position: absolute; left: 0; color: var(--gold); font-size: 9px; }
.srv-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px; background: rgba(0,0,0,0.07); margin-top: 56px; }
.srv-num { font-family: 'Cormorant Garamond',serif; font-size: 52px; font-weight: 300; color: rgba(201,169,110,0.15); line-height: 1; margin-bottom: 16px; }

/* ── INTRO LAYOUT ─────────────────────────────────────────── */
.intro { background: #fff; padding: 100px 60px; }
.intro-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.intro-text p { font-size: 14px; font-weight: 300; color: var(--text-muted); line-height: 1.85; margin-top: 16px; margin-bottom: 12px; }
.intro-text p strong { font-weight: 500; color: var(--text); }
.intro-img { position: relative; }
.intro-img img { width: 100%; height: 480px; object-fit: cover; display: block; position: relative; z-index: 1; }
.intro-img::before { content: ''; position: absolute; top: -12px; right: -12px; width: 100%; height: 100%; border: 1px solid rgba(201,169,110,0.3); z-index: 0; }

/* ── PILARES ──────────────────────────────────────────────── */
.pilares { display: flex; flex-direction: column; }
.pilar { padding: 28px 0; border-bottom: 0.5px solid rgba(255,255,255,0.07); display: flex; gap: 24px; align-items: flex-start; transition: padding-left 0.3s; }
.pilar:first-child { border-top: 0.5px solid rgba(255,255,255,0.07); }
.pilar:hover { padding-left: 8px; }
.pilar-num { font-family: 'Cormorant Garamond',serif; font-size: 13px; color: var(--gold); min-width: 24px; padding-top: 4px; }
.pilar-title { font-size: 15px; font-weight: 500; color: #fff; margin-bottom: 6px; }
.pilar-text { font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.45); line-height: 1.6; }

/* ── PROCESO STEPS ────────────────────────────────────────── */
.p-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 32px; margin-top: 56px; }
.p-step { text-align: center; }
.p-num {
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid rgba(201,169,110,0.4);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-family: 'Cormorant Garamond',serif;
  font-size: 22px; font-weight: 300; color: var(--gold);
}
.p-title { font-size: 14px; font-weight: 500; color: var(--navy); margin-bottom: 8px; }
.p-text { font-size: 13px; font-weight: 300; color: var(--text-muted); line-height: 1.65; }

/* ── TABS ─────────────────────────────────────────────────── */
.tab-buttons, .tab-nav { display: flex; gap: 0; border-bottom: 1px solid rgba(0,0,0,0.1); margin-bottom: 40px; overflow-x: auto; }
.tab-btn {
  font-size: 11px; font-weight: 500; letter-spacing: 2px;
  text-transform: uppercase; padding: 14px 24px; border: none;
  background: none; cursor: pointer; color: var(--text-muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  white-space: nowrap; transition: color 0.2s, border-color 0.2s;
  font-family: 'DM Sans',sans-serif;
}
.tab-btn.active { color: var(--navy); border-bottom-color: var(--gold); }
.tab-content, .tab-pane { display: none; }
.tab-content.active, .tab-pane.active { display: block; }

/* ── ARTICLE BODY ─────────────────────────────────────────── */
.article-body h2 { font-family: 'Cormorant Garamond',serif; font-size: clamp(22px,2.5vw,32px); font-weight: 400; color: var(--navy); margin: 40px 0 16px; line-height: 1.2; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 16px; font-weight: 500; color: var(--navy); margin: 28px 0 12px; }
.article-body p { font-size: 15px; line-height: 1.85; color: var(--text-muted); margin-bottom: 20px; }
.article-body strong { color: var(--text); font-weight: 500; }
.article-body a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(201,169,110,0.3); }
.article-body a:hover { border-bottom-color: var(--gold); }
.article-body ul { list-style: none; margin: 16px 0 24px; display: flex; flex-direction: column; gap: 10px; }
.article-body ul li { font-size: 14px; color: var(--text-muted); padding-left: 20px; position: relative; line-height: 1.6; }
.article-body ul li::before { content: '—'; position: absolute; left: 0; color: var(--gold); }
.article-body ol { padding-left: 20px; margin: 16px 0 24px; display: flex; flex-direction: column; gap: 10px; }
.article-body ol li { font-size: 14px; color: var(--text-muted); line-height: 1.6; padding-left: 8px; }

/* ── CALLOUT ──────────────────────────────────────────────── */
.callout { background: var(--gold-pale); border-left: 3px solid var(--gold); padding: 20px 24px; margin: 28px 0; }
.callout-title { font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.callout p { font-size: 14px; color: #5a4a30; margin-bottom: 0; line-height: 1.7; }
.callout-alert { background: #f8eeee; border-left-color: #8b1a1a; }
.callout-alert .callout-title { color: #8b1a1a; }
.callout-alert p { color: #5a1a1a; }

/* ── TABLE ────────────────────────────────────────────────── */
.tabla-wrap { overflow-x: auto; margin: 28px 0; }
.tabla { width: 100%; border-collapse: collapse; font-size: 13px; }
.tabla th { background: var(--navy); color: var(--gold); font-size: 10px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; padding: 14px 16px; text-align: left; }
.tabla td { padding: 12px 16px; border-bottom: 1px solid rgba(0,0,0,0.07); color: var(--text-muted); }
.tabla tr:last-child td { border-bottom: none; }
.tabla tr:nth-child(even) td { background: rgba(0,0,0,0.02); }
.tabla td strong { color: var(--text); }
.tabla .highlight td { background: rgba(201,169,110,0.08) !important; }

/* ── SIDEBAR (article) ────────────────────────────────────── */
.article-sidebar { position: sticky; top: 100px; }
.sidebar-card { background: #fff; border: 0.5px solid rgba(0,0,0,0.1); padding: 28px; margin-bottom: 20px; }
.sidebar-title { font-size: 10px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.sidebar-cta-title { font-family: 'Cormorant Garamond',serif; font-size: 20px; color: var(--navy); margin-bottom: 10px; line-height: 1.3; }
.sidebar-cta-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }
.sidebar-btn { display: block; background: var(--gold); color: var(--navy); text-align: center; padding: 12px; font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; transition: background 0.2s; margin-bottom: 10px; }
.sidebar-btn:hover { background: var(--gold-light); }
.sidebar-btn-outline { display: block; border: 0.5px solid rgba(201,169,110,0.4); color: var(--gold); text-align: center; padding: 12px; font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; transition: all 0.2s; }
.sidebar-btn-outline:hover { background: var(--gold); color: var(--navy); }
.sidebar-related a { display: block; padding: 14px 0; border-bottom: 0.5px solid rgba(0,0,0,0.07); font-size: 13px; color: var(--text-muted); text-decoration: none; line-height: 1.5; transition: color 0.2s; }
.sidebar-related a:last-child { border-bottom: none; }
.sidebar-related a:hover { color: var(--gold); }
.sidebar-tag { display: inline-block; font-size: 9px; color: var(--stone); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }

/* ── SHARE BAR ────────────────────────────────────────────── */
.share-bar { display: flex; align-items: center; gap: 16px; padding: 28px 0; border-top: 0.5px solid rgba(0,0,0,0.08); border-bottom: 0.5px solid rgba(0,0,0,0.08); margin: 40px 0; }
.share-label { font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--stone); }
.share-btn { font-size: 11px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; padding: 8px 16px; border: 0.5px solid rgba(0,0,0,0.15); color: var(--text-muted); text-decoration: none; transition: all 0.2s; }
.share-btn:hover { border-color: var(--gold); color: var(--gold); }

/* ── LEGAL NOTICE ─────────────────────────────────────────── */
.legal-notice { background: rgba(0,0,0,0.03); border: 0.5px solid rgba(0,0,0,0.08); padding: 20px 24px; margin-top: 40px; }
.legal-notice p { font-size: 12px; color: var(--stone); line-height: 1.7; margin-bottom: 0; }

/* ── FUENTE OFICIAL ───────────────────────────────────────── */
.fuente { display: flex; align-items: center; gap: 12px; background: #fff; border: 0.5px solid rgba(0,0,0,0.1); padding: 16px 20px; margin: 32px 0; }
.fuente-icon { width: 36px; height: 36px; background: var(--grad); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.fuente-label { font-size: 10px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--stone); margin-bottom: 3px; }
.fuente a { font-size: 13px; color: var(--gold); text-decoration: none; }
.fuente a:hover { text-decoration: underline; }

/* ── ARTICLE SEP ──────────────────────────────────────────── */
.article-sep { width: 48px; height: 2px; background: var(--gold); margin: 40px 0; }

/* ── NEWSLETTER ───────────────────────────────────────────── */
.newsletter { background: var(--grad); padding: 80px 60px; margin-top: 80px; text-align: center; position: relative; }
.newsletter::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(201,169,110,0.05) 1px,transparent 1px); background-size: 32px 32px; }
.newsletter-label { font-size: 10px; font-weight: 500; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; position: relative; }
.newsletter h2 { font-family: 'Cormorant Garamond',serif; font-size: clamp(28px,3vw,44px); font-weight: 300; color: #fff; margin-bottom: 12px; position: relative; }
.newsletter p { font-size: 14px; color: rgba(255,255,255,0.4); margin-bottom: 32px; position: relative; }
.newsletter-form { display: flex; gap: 0; max-width: 480px; margin: 0 auto; position: relative; }
.newsletter-input { flex: 1; padding: 14px 20px; font-size: 13px; font-family: 'DM Sans',sans-serif; background: rgba(255,255,255,0.07); border: 0.5px solid rgba(255,255,255,0.2); color: #fff; outline: none; }
.newsletter-input::placeholder { color: rgba(255,255,255,0.3); }
.newsletter-btn { background: var(--gold); color: var(--navy); border: none; padding: 14px 28px; font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; font-family: 'DM Sans',sans-serif; transition: background 0.2s; white-space: nowrap; }
.newsletter-btn:hover { background: var(--gold-light); }

/* ── DIFERENCIA SECTION ───────────────────────────────────── */
.diferencia {
  background: linear-gradient(135deg,#0a1628 0%,#0d1b2a 40%,#0f2240 70%,#091525 100%);
  padding: 120px 60px; position: relative; overflow: hidden;
}
.diferencia::before{
  display:none;
}
.diferencia-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.diferencia-left .section-label { color: var(--gold); }
.diferencia-left .section-title { color: #fff; }
.diferencia-left .section-title em { color: var(--gold-light); }
.diferencia-left p { font-size: 15px; font-weight: 300; color: rgba(255,255,255,0.5); line-height: 1.8; margin-top: 24px; }

/* ── OVERVIEW CARD (service pages) ───────────────────────── */
.overview { background: #fff; padding: 100px 60px; }
.overview-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px; background: rgba(0,0,0,0.07); margin-top: 64px; }
.ov-card { background: #fff; padding: 40px 32px; position: relative; transition: background 0.3s; }
.ov-card::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--gold); transition: width 0.4s; }
.ov-card:hover { background: var(--cream); }
.ov-card:hover::after { width: 100%; }
.ov-num { font-family: 'Cormorant Garamond',serif; font-size: 38px; font-weight: 300; color: rgba(201,169,110,0.2); line-height: 1; margin-bottom: 12px; }
.ov-title { font-family: 'Cormorant Garamond',serif; font-size: 21px; font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.ov-text { font-size: 13px; font-weight: 300; color: var(--text-muted); line-height: 1.7; }
.ov-link { display: inline-block; margin-top: 16px; font-size: 11px; font-weight: 500; letter-spacing: 1px; color: var(--gold); text-decoration: none; }
.ov-link:hover { text-decoration: underline; }

/* ── CONTACT ITEMS ────────────────────────────────────────── */
.contact-items { margin-top: 40px; display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-top: 7px; flex-shrink: 0; }
.contact-label { font-size: 10px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.contact-value { font-size: 14px; color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.2s; }
.contact-value:hover { color: var(--gold); }

.cta-btns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.cta-btns a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.cta .btn-gold,
.cta .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 32px;
}
