/* Magna Defensa � landing page */
:root {
  --primary: #183228;
  --cta: #B7684D;
  --cta-hover: #9E533D;
  --bg-soft: #F8F8F6;
  --bg-soft-alt: #EFEDE8;
  --title: #183228;
  --text: #242424;
  --secondary: #6F7468;
  --divider: #8A907E;
  --surface: #FFFFFF;
  --surface-muted: rgba(24,50,40,.06);
  --shadow-soft: 0 24px 60px rgba(24,50,40,.08);
  --radius: 22px;
  --radius-sm: 12px;
  --transition: 0.3s ease;
  --ff-title: 'Playfair Display', Georgia, serif;
  --ff-body: 'Inter', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  background-color: var(--bg-soft);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
button, input, select, textarea { font: inherit; }
.section-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--divider);
  background: rgba(24,50,40,.04);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
}
.section-tag-light { color: rgba(255,255,255,.8); background: rgba(255,255,255,.08); }
.section-title {
  font-family: var(--ff-title);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--title);
  margin-top: 1rem;
}
.section-lead {
  font-size: 1rem;
  color: var(--secondary);
  max-width: 680px;
  margin: 0 auto;
}
.divider {
  width: 56px;
  height: 3px;
  background: var(--divider);
  border-radius: 999px;
  margin: 1.25rem auto;
}
.navbar-mag {
  background-color: rgba(248,248,246,.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(24,50,40,.08);
  padding: 1rem 0;
  transition: box-shadow var(--transition);
  z-index: 1050;
}
.navbar-mag.scrolled { box-shadow: var(--shadow-soft); }
.navbar-brand { font-family: var(--ff-title); font-size: 1.05rem; font-weight: 700; color: var(--title); }
.navbar-brand img { height: 68px; }
.navbar-mag .nav-link {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem !important;
}
.navbar-mag .nav-link:hover, .navbar-mag .nav-link.active { color: var(--primary); }
.navbar-mag .nav-cta {
  background: var(--cta);
  color: var(--surface) !important;
  border-radius: 10px;
  padding: 0.6rem 1rem !important;
}
.navbar-mag .nav-cta:hover { background: var(--cta-hover); }
.navbar-toggler { border: 1.4px solid rgba(24,50,40,.16); border-radius: 10px; padding: 0.35rem 0.75rem; }
.navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23183228' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }
#hero {
  position: relative;
  min-height: calc(100vh - 90px);
  padding: 6rem 0 4rem;
  background-image:
    linear-gradient(180deg, rgba(24,50,40,.72) 0%, rgba(24,50,40,.56) 38%, rgba(24,50,40,.28) 72%, rgba(24,50,40,.15) 100%),
    linear-gradient(90deg, rgba(248,248,246,.95) 0%, rgba(248,248,246,.60) 45%, rgba(248,248,246,0.0) 100%),
    url('assets/img/family-hero.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #FFFFFF;
}
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24,50,40,.16) 0%, rgba(24,50,40,.00) 42%, rgba(248,248,246,.95) 100%);
  pointer-events: none;
}
#hero > .container { position: relative; z-index: 1; }
.hero-eyebrow { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,.85); margin-bottom: 1rem; }
.hero-title { font-family: var(--ff-title); font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.05; max-width: 680px; }
.hero-subtitle { font-size: 1.05rem; color: rgba(255,255,255,.88); max-width: 560px; margin: 1.5rem 0; line-height: 1.8; }
.hero-bullets { list-style: none; margin-bottom: 2rem; padding: 0; max-width: 560px; }
.hero-bullets li { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; font-weight: 500; color: rgba(255,255,255,.95); }
.hero-bullets li::before { content: ''; width: 18px; height: 18px; border-radius: 50%; background: var(--cta); margin-top: 0.4rem; }
.hero-cta-wrap { gap: 1rem; }
.btn-cta, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 700;
  padding: 0.95rem 1.6rem;
  border-radius: 12px;
  transition: var(--transition);
}
.btn-cta { background-color: var(--cta); color: var(--surface); }
.btn-cta:hover { background-color: var(--cta-hover); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); color: #FFFFFF; }
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.btn-ghost i { font-size: 1.1rem; }
.form-card {
  background: rgba(255,255,255,.96);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
  padding: 2.2rem 2rem;
  border: 1px solid rgba(24,50,40,.08);
}
.form-card-header .section-tag { margin-bottom: 1rem; }
.form-card-title { font-family: var(--ff-title); font-size: 1.9rem; color: var(--title); margin-bottom: 0.75rem; }
.form-card-lead { color: var(--secondary); margin-bottom: 1.75rem; line-height: 1.85; }
.form-label { font-weight: 600; color: var(--text); margin-bottom: 0.45rem; display: block; }
.form-control, .form-select, textarea.form-control {
  width: 100%;
  border: 1px solid rgba(24,50,40,.14);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  background-color: var(--surface);
  color: var(--text);
  transition: var(--transition);
}
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(24,50,40,.08); outline: none; }
.form-control::placeholder { color: rgba(24,50,40,.45); }
textarea.form-control { min-height: 120px; resize: vertical; }
.btn-submit {
  width: 100%;
  background-color: var(--primary);
  color: var(--surface);
  padding: 0.95rem 1.2rem;
  border: none;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.btn-submit:hover { background-color: var(--cta); transform: translateY(-2px); }
.form-privacy { font-size: 0.82rem; color: var(--secondary); margin-top: 1rem; text-align: center; }
.form-alert { border-radius: 14px; padding: 0.95rem 1rem; display: none; margin-top: 0.85rem; }
.form-alert.show { display: block; }
.form-alert-error { background: #fff1f0; color: #9f3a38; border: 1px solid #f0a9a1; }
#confianza { padding: 5rem 0; background: var(--surface); }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.trust-card { background: var(--bg-soft-alt); border-radius: var(--radius); padding: 2rem; border: 1px solid rgba(24,50,40,.08); transition: var(--transition); }
.trust-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.trust-icon { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: rgba(183,104,77,.1); color: var(--cta); font-size: 1.35rem; margin-bottom: 1.1rem; }
.trust-card h5 { font-size: 1rem; margin-bottom: 0.6rem; color: var(--title); }
.trust-card p { color: var(--secondary); line-height: 1.7; }
#testimonios { padding: 5rem 0; }
.testimonial-card { background: var(--surface); border-radius: var(--radius); padding: 2rem; border: 1px solid rgba(24,50,40,.08); box-shadow: var(--shadow-soft); }
.testimonial-card p { color: var(--secondary); line-height: 1.8; margin-bottom: 1.5rem; }
.testimonial-author strong { display: block; color: var(--title); margin-bottom: 0.35rem; }
.testimonial-author span { color: var(--secondary); font-size: 0.9rem; }
#problemas { padding: 5rem 0; background: var(--bg-soft-alt); }
.problema-card { background: var(--surface); border-radius: var(--radius); border: 1px solid rgba(24,50,40,.08); padding: 1.75rem 1.5rem; height: 100%; transition: var(--transition); }
.problema-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.problema-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1rem; background: rgba(24,50,40,.06); color: var(--primary); font-size: 1.25rem; }
.problema-card h5 { margin-bottom: 0.75rem; color: var(--title); }
.problema-card p { color: var(--secondary); line-height: 1.75; }
#metodologia { padding: 5rem 0; background: var(--surface); }
.timeline-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; position: relative; }
.timeline-wrap::before { content: ''; position: absolute; top: 48px; left: 3%; right: 3%; height: 2px; background: rgba(24,50,40,.08); z-index: 0; }
.step-card { position: relative; text-align: center; padding: 1.5rem; z-index: 1; }
.step-num { width: 56px; height: 56px; border-radius: 50%; background: var(--cta); color: var(--surface); display: grid; place-items: center; font-family: var(--ff-title); font-size: 1.25rem; margin: 0 auto 1.2rem; box-shadow: 0 16px 36px rgba(183,104,77,.18); }
.step-card h5 { margin-bottom: 0.75rem; color: var(--title); }
.step-card p { color: var(--secondary); line-height: 1.75; }
#sobre-carlos { padding: 5.5rem 0; background: var(--primary); color: #FFFFFF; position: relative; overflow: hidden; }
#sobre-carlos::before { content: ''; position: absolute; top: -80px; right: -80px; width: 360px; height: 360px; background: radial-gradient(circle, rgba(255,255,255,.12) 0%, transparent 65%); border-radius: 50%; }
.carlos-badge { display: inline-flex; align-items: center; gap: 0.55rem; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 0.6rem 1.05rem; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,.8); margin-bottom: 1.25rem; }
#sobre-carlos h2 { font-family: var(--ff-title); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.divider-light { background: rgba(255,255,255,.45); }
.lead-text { font-size: 1.05rem; color: rgba(255,255,255,.88); line-height: 1.8; margin-bottom: 1.5rem; }
.award-box { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 18px; padding: 1.5rem 1.4rem; }
.award-box p { margin: 0; color: rgba(255,255,255,.8); line-height: 1.8; }
.about-visual { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.about-visual img { width: 100%; height: 100%; object-fit: cover; }
#areas { padding: 5rem 0; background: var(--bg-soft-alt); }
.area-card { display: flex; flex-direction: column; gap: 1.25rem; padding: 2rem 1.75rem; background: var(--surface); border-radius: var(--radius); border: 1px solid rgba(24,50,40,.08); transition: var(--transition); min-height: 100%; }
.area-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.area-icon-wrap { width: 52px; height: 52px; border-radius: 16px; background: rgba(24,50,40,.06); display: grid; place-items: center; color: var(--primary); font-size: 1.3rem; }
.area-card h5 { color: var(--title); }
.area-card p { color: var(--secondary); flex: 1; line-height: 1.75; }
.area-link { color: var(--cta); font-weight: 700; display: inline-flex; align-items: center; gap: 0.3rem; }
.area-link:hover { color: var(--cta-hover); }
#cta-banner { padding: 5rem 0; background: var(--primary); color: #FFFFFF; text-align: center; }
#cta-banner h2 { margin-bottom: 1rem; font-size: clamp(2rem, 4vw, 3rem); }
#cta-banner p { color: rgba(255,255,255,.82); max-width: 640px; margin: 0 auto 2rem; line-height: 1.8; }
#cta-banner .cta-btns { justify-content: center; }
.btn-cta-light { background: #FFFFFF; color: var(--primary); }
.btn-cta-light:hover { background: rgba(255,255,255,.92); }
.btn-ghost-light { background: rgba(255,255,255,.14); color: #FFFFFF; border: 1px solid rgba(255,255,255,.3); }
.btn-ghost-light:hover { background: rgba(255,255,255,.22); }
#faq { padding: 5rem 0; background: var(--surface); }
.accordion-item { border: 1px solid rgba(24,50,40,.12) !important; border-radius: var(--radius) !important; overflow: hidden; }
.accordion-button { font-weight: 600; font-size: 0.95rem; color: var(--text) !important; background: var(--surface) !important; padding: 1.1rem 1.4rem; }
.accordion-button:not(.collapsed) { color: var(--primary) !important; background: var(--bg-soft-alt) !important; }
.accordion-button::after { filter: none; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23183228'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important; }
.accordion-body { background: var(--bg-soft-alt); color: var(--secondary); padding: 1rem 1.4rem 1.25rem; }
#footer { background: #0f211d; color: rgba(255,255,255,.75); padding: 4rem 0 1rem; }
.footer-brand img { height: 64px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-tagline { font-size: 0.82rem; color: rgba(255,255,255,.65); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-desc { max-width: 320px; color: rgba(255,255,255,.68); line-height: 1.8; }
.footer-heading { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,.65); margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: rgba(255,255,255,.65); }
.footer-links a:hover { color: #FFFFFF; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.85rem; margin-bottom: 1rem; color: rgba(255,255,255,.66); }
.footer-contact-item i { color: rgba(255,255,255,.55); margin-top: 0.2rem; }
.footer-contact-item a { color: rgba(255,255,255,.78); }
.footer-contact-item a:hover { color: #FFFFFF; }
.footer-copy { color: rgba(255,255,255,.72); line-height: 1.8; margin-bottom: 1.2rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.25rem; text-align: center; font-size: 0.82rem; color: rgba(255,255,255,.45); }
.wa-float {
  position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px;
  border-radius: 50%; background: var(--cta); box-shadow: 0 18px 40px rgba(24,50,40,.22); display: flex; align-items: center; justify-content: center; z-index: 9999;
}
.wa-float:hover { background: var(--cta-hover); transform: scale(1.05); }
.wa-float svg { width: 28px; height: 28px; fill: #FFFFFF; }
.wa-tooltip { position: absolute; right: 72px; top: 50%; transform: translateY(-50%) translateX(10px); background: rgba(24,50,40,.95); color: #FFFFFF; padding: 0.55rem 0.9rem; border-radius: 999px; font-size: 0.78rem; opacity: 0; pointer-events: none; transition: var(--transition); white-space: nowrap; }
.wa-float:hover .wa-tooltip { opacity: 1; transform: translateY(-50%) translateX(0); }
.wa-tooltip::after { content: ''; position: absolute; right: -6px; top: 50%; transform: translateY(-50%); border: 6px solid transparent; border-left-color: rgba(24,50,40,.95); }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
@media (max-width: 991.98px) {
  #hero { padding: 5rem 0 3rem; }
  .timeline-wrap::before { display: none; }
  .btn-ghost { width: 100%; justify-content: center; }
}
@media (max-width: 767.98px) {
  .hero-cta-wrap { flex-direction: column; }
  .hero-title { font-size: 2.5rem; }
  .form-card { padding: 1.75rem 1.5rem; }
  .trust-grid, .row.g-4 { gap: 1.25rem; }
  #cta-banner { padding: 4rem 0; }
  .wa-float { bottom: 16px; right: 16px; }
}
@media (max-width: 575.98px) {
  .nav-link { font-size: 0.85rem; }
  .section-title { font-size: 2rem; }
  .form-card-title { font-size: 1.6rem; }
}
