/* ===== DESIGN TOKENS ===== */
:root {
  --primary:     #0C314C;
  --primary-mid: #0e3d5f;
  --accent:      #EC7519;
  --accent-light:#F3941D;
  --accent-dark: #AC531B;
  --white:       #FFFFFF;
  --bone:        #F5F2EE;
  --text-dark:   #0C314C;
  --text-muted:  #4a6070;
  --radius:      12px;
  --shadow:      0 8px 32px rgba(12,49,76,0.13);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ===== UTILITIES ===== */
.container { width: 92%; max-width: 1100px; margin: 0 auto; }
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-light), var(--accent), var(--accent-dark));
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 36px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 6px 24px rgba(236,117,25,0.38);
  text-align: center;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(236,117,25,0.5); }
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 36px;
  border-radius: 50px;
  border: 2px solid var(--white);
  cursor: pointer;
  transition: all .2s;
  text-align: center;
}
.btn-secondary:hover { background: var(--white); color: var(--primary); }

.section-label {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 680px;
}

/* ===== DIVIDERS ===== */
.divider { display: block; width: 100%; overflow: hidden; line-height: 0; }
.divider svg { display: block; width: 100%; }

/* ===== NAV ===== */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 12px 0;
  transition: background .3s, box-shadow .3s;
}
#nav.scrolled {
  background: rgba(12,49,76,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo img { height: 60px; background: #fff; padding: 5px 12px; border-radius: 8px; }
.nav-cta { font-size: .9rem; padding: 11px 24px; }

/* ===== HERO ===== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(12,49,76,0.88) 0%, rgba(12,49,76,0.60) 100%),
    url('plugin-assets/descarga (14).jpeg') center/cover no-repeat;
  padding: 100px 0 60px;
  color: var(--white);
}
.hero-content { max-width: 640px; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(236,117,25,0.18);
  border: 1px solid rgba(236,117,25,0.5);
  color: var(--accent-light);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}
.hero-tag span { font-size: 1rem; }
.hero-h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.88);
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 28px;
}
.hero-stat-num {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(90deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat-label { font-size: .82rem; color: rgba(255,255,255,0.7); font-weight: 500; }

/* ===== PROMO STRIP ===== */
#promo {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent), var(--accent-light));
  padding: 56px 0;
  position: relative;
  color: var(--white);
  text-align: center;
}
.promo-inner { max-width: 800px; margin: 0 auto; }
.promo-inner h2 { font-size: clamp(1.5rem,3.5vw,2.2rem); font-weight: 800; margin-bottom: 12px; }
.promo-inner p { font-size: 1.05rem; opacity: .92; margin-bottom: 28px; line-height: 1.6; }
.btn-white {
  display: inline-block;
  background: var(--white);
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 1rem;
  padding: 16px 40px;
  border-radius: 50px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,0.22); }

/* ===== SERVICES ===== */
#servicios {
  background: var(--primary);
  padding: 80px 0 60px;
  color: var(--white);
}
#servicios .section-title { color: var(--white); }
#servicios .section-subtitle { color: rgba(255,255,255,.78); }
.services-header { text-align: center; margin-bottom: 56px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.service-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: background .25s, transform .25s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-light), var(--accent));
  border-radius: 3px 3px 0 0;
}
.service-card:hover { background: rgba(255,255,255,0.10); transform: translateY(-4px); }
.service-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}
.service-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.service-card p { font-size: .95rem; line-height: 1.65; color: rgba(255,255,255,.75); }
.service-img {
  width: 100%; height: 200px; object-fit: cover;
  border-radius: 8px; margin-top: 20px;
}

/* ===== QUIÉNES SOMOS ===== */
#quienes-somos {
  background: var(--bone);
  padding: 80px 0 60px;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-img-wrap { position: relative; }
.about-img-wrap img {
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about-badge {
  position: absolute;
  bottom: -20px; right: -20px;
  background: var(--primary);
  color: var(--white);
  padding: 18px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.3;
}
.about-badge span { color: var(--accent-light); font-size: 1.8rem; display: block; }
.about-content .section-subtitle { color: var(--text-muted); margin-bottom: 28px; }
.cert-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cert-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--white);
  border: 1px solid rgba(12,49,76,0.1);
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 600;
  font-size: .9rem;
  transition: border-color .2s;
}
.cert-item:hover { border-color: var(--accent); }
.cert-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  flex-shrink: 0;
}

/* ===== PROBLEMAS ===== */
#problemas {
  background: var(--primary);
  padding: 80px 0 60px;
  color: var(--white);
}
#problemas .section-title { color: var(--white); }
#problemas .section-subtitle { color: rgba(255,255,255,.78); }
.problems-header { text-align: center; margin-bottom: 56px; }
.problems-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.problem-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
}
.problem-emoji { font-size: 2.4rem; margin-bottom: 16px; display: block; }
.problem-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.problem-card p { font-size: .9rem; color: rgba(255,255,255,.72); line-height: 1.6; }

/* ===== BENEFICIOS ===== */
#beneficios {
  background: var(--bone);
  padding: 80px 0 60px;
}
.benefits-header { text-align: center; margin-bottom: 56px; }
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.benefit-card {
  background: var(--white);
  border: 1px solid rgba(12,49,76,0.08);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: 0 2px 12px rgba(12,49,76,0.06);
  transition: box-shadow .25s, transform .25s;
  position: relative;
}
.benefit-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.benefit-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-light), var(--accent));
  border-radius: 0 0 var(--radius) var(--radius);
}
.benefit-icon { font-size: 2rem; margin-bottom: 16px; }
.benefit-card h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.benefit-card p { font-size: .88rem; color: var(--text-muted); line-height: 1.6; }

/* ===== PROPUESTA DE VALOR ===== */
#propuesta {
  background: var(--primary);
  padding: 80px 0 60px;
  color: var(--white);
}
.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.value-content .section-title { color: var(--white); }
.value-content .section-subtitle { color: rgba(255,255,255,.8); margin-bottom: 32px; }
.value-points { display: flex; flex-direction: column; gap: 16px; }
.value-point {
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 16px 20px;
}
.value-point-icon {
  font-size: 1.3rem; flex-shrink: 0; margin-top: 2px;
}
.value-point p { font-size: .92rem; line-height: 1.6; color: rgba(255,255,255,.85); }
.value-img img {
  width: 100%; border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

/* ===== PROPÓSITO ===== */
#proposito {
  background: var(--bone);
  padding: 80px 0 60px;
  text-align: center;
}
.purpose-wrap { max-width: 780px; margin: 0 auto; }
.purpose-wrap .section-subtitle { color: var(--text-muted); margin: 0 auto 48px; }
.mvv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  text-align: left;
}
.mvv-card {
  background: var(--white);
  border: 1px solid rgba(12,49,76,0.09);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 2px 12px rgba(12,49,76,0.06);
}
.mvv-label {
  font-size: .72rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.mvv-card h3 { font-size: 1.1rem; font-weight: 800; color: var(--primary); margin-bottom: 10px; }
.mvv-card p { font-size: .9rem; color: var(--text-muted); line-height: 1.65; }

/* ===== CÓMO LO HACEMOS ===== */
#proceso {
  background: var(--primary);
  padding: 80px 0 60px;
  color: var(--white);
}
#proceso .section-title { color: var(--white); text-align: center; }
#proceso .section-subtitle { color: rgba(255,255,255,.78); text-align: center; margin: 0 auto 56px; }
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 36px; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-light), var(--accent));
  z-index: 0;
}
.step {
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 900;
  margin: 0 auto 20px;
  box-shadow: 0 6px 24px rgba(236,117,25,0.4);
}
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: .85rem; color: rgba(255,255,255,.72); line-height: 1.6; }

/* ===== TESTIMONIOS ===== */
#testimonios {
  background: var(--bone);
  padding: 80px 0 60px;
}
.testimonios-header { text-align: center; margin-bottom: 48px; }
.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.testimonial {
  background: var(--white);
  border: 1px solid rgba(12,49,76,0.08);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: 0 2px 12px rgba(12,49,76,0.06);
  position: relative;
}
.testimonial::before {
  content: '"';
  position: absolute;
  top: 18px; left: 28px;
  font-size: 5rem; line-height: 1;
  color: var(--accent);
  opacity: .18;
  font-family: Georgia, serif;
}
.testimonial p {
  font-size: .95rem; line-height: 1.72;
  color: var(--text-muted);
  margin-bottom: 20px;
  position: relative;
}
.testimonial-author { font-weight: 700; color: var(--primary); font-size: .92rem; }

/* ===== FINAL CTA ===== */
#cta-final {
  background:
    linear-gradient(135deg, rgba(12,49,76,0.93) 0%, rgba(12,49,76,0.82) 100%),
    url('plugin-assets/descarga (9).jpeg') center/cover no-repeat;
  padding: 100px 0;
  color: var(--white);
  text-align: center;
}
.cta-final-content { max-width: 700px; margin: 0 auto; }
.cta-final-content h2 {
  font-size: clamp(2rem,4.5vw,3rem);
  font-weight: 900; margin-bottom: 16px;
}
.cta-final-content p {
  font-size: 1.1rem; opacity: .88;
  margin-bottom: 40px; line-height: 1.7;
}
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== FOOTER ===== */
#footer {
  background: #071e2d;
  color: rgba(255,255,255,.72);
  padding: 48px 0 28px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand img { height: 52px; margin-bottom: 16px; background: #fff; padding: 5px 12px; border-radius: 8px; }
.footer-brand p { font-size: .88rem; line-height: 1.65; }
.footer-col h4 {
  font-size: .85rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--white);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li { font-size: .88rem; }
.footer-col ul li a { transition: color .2s; }
.footer-col ul li a:hover { color: var(--accent-light); }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.social-link {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.09);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  transition: background .2s;
}
.social-link:hover { background: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  text-align: center;
  font-size: .82rem;
}
.footer-bottom a { color: var(--accent-light); }
.footer-bottom a:hover { text-decoration: underline; }

/* ===== SCROLL TO TOP ===== */
.scroll-up {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(236,117,25,0.45);
  cursor: pointer;
  color: var(--white);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  z-index: 999;
  border: none;
}
.scroll-up.visible { opacity: 1; pointer-events: all; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid, .value-grid, .mvv-grid, .footer-inner { grid-template-columns: 1fr; }
  .about-badge { bottom: 12px; right: 12px; }
  .process-steps::before { display: none; }
  .about-img-wrap img { max-height: 320px; object-fit: cover; }
  .problems-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .hero-ctas { flex-direction: column; }
  .hero-stats { gap: 20px; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .nav-logo img { height: 38px; }
  .benefits-grid { grid-template-columns: 1fr; }
  .cert-list { grid-template-columns: 1fr; }
}


/* ===== WP INHERITANCE OVERRIDES ===== */
h1, h2, h3, h4, h5, h6, p, a, li, span, div {
    font-family: 'Inter', sans-serif;
}
body h1, body h2, body h3, body p {
    font-family: 'Inter', sans-serif !important;
}
h1, h2, h3, h4, h5, h6 { 
    color: var(--text-dark); 
}
p { 
    color: var(--text-muted); 
}
/* Force white text in dark sections since WP direct selectors beat inheritance */
#hero .hero-h1, #hero .hero-p,
#promo h2, #promo p,
#cta-final h2, #cta-final p,
#propuesta .section-title,
#proceso .section-title {
    color: var(--white) !important;
}
#hero .hero-p {
    color: rgba(255,255,255, 0.88) !important;
}
#servicios .service-card h3,
#problemas .problem-card h3,
#proceso .step h3 {
    color: var(--white) !important;
}
#servicios .service-card p,
#problemas .problem-card p,
#proceso .step p,
#propuesta .value-point p {
    color: rgba(255,255,255, 0.78) !important;
}
