/*
Theme Name: Molina Digital Express
Theme URI: https://molinasolutions.com
Author: Molina Solutions
Author URI: https://molinasolutions.com
Description: Tema optimizado para captación de leads y digitalización de negocios
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: molina-digital-express
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
*/

/* ===========================
   TOKENS & RESET
=========================== */
:root {
  --ms-blue-dark:   #0d2f5e;
  --ms-blue:        #1a56c8;
  --ms-blue-light:  #2d6ef0;
  --ms-blue-pale:   #e8f0fd;
  --ms-white:       #ffffff;
  --ms-grey-light:  #f4f6f9;
  --ms-grey-mid:    #dde3ee;
  --ms-grey-text:   #64748b;
  --ms-text:        #1e293b;
  --ms-radius:      12px;
  --ms-radius-lg:   20px;
  --ms-shadow:      0 4px 24px rgba(13,47,94,.10);
  --ms-shadow-lg:   0 8px 40px rgba(13,47,94,.16);
  --ms-transition:  .25s ease;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--ms-text);
  background: var(--ms-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ===========================
   UTILITIES
=========================== */
.ms-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.ms-section {
  padding: 80px 0;
}
.ms-section--grey { background: var(--ms-grey-light); }
.ms-section--dark { background: var(--ms-blue-dark); color: var(--ms-white); }
.ms-section--blue { background: var(--ms-blue); color: var(--ms-white); }

.ms-tag {
  display: inline-block;
  background: var(--ms-blue-pale);
  color: var(--ms-blue);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.ms-tag--white {
  background: rgba(255,255,255,.15);
  color: var(--ms-white);
}

.ms-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.ms-subtitle {
  font-size: 1.1rem;
  color: var(--ms-grey-text);
  max-width: 600px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.ms-section--dark  .ms-subtitle,
.ms-section--blue  .ms-subtitle { color: rgba(255,255,255,.75); }

.ms-center { text-align: center; }
.ms-center .ms-subtitle { margin-left: auto; margin-right: auto; }

/* ===========================
   BUTTONS
=========================== */
.ms-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: var(--ms-radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--ms-transition), box-shadow var(--ms-transition), background var(--ms-transition);
  text-decoration: none;
}
.ms-btn:hover { transform: translateY(-2px); box-shadow: var(--ms-shadow-lg); }
.ms-btn:active { transform: translateY(0); }

.ms-btn--primary {
  background: var(--ms-blue);
  color: var(--ms-white);
}
.ms-btn--primary:hover { background: var(--ms-blue-light); }

.ms-btn--white {
  background: var(--ms-white);
  color: var(--ms-blue);
}
.ms-btn--white:hover { background: var(--ms-blue-pale); }

.ms-btn--outline {
  background: transparent;
  border-color: var(--ms-blue);
  color: var(--ms-blue);
}
.ms-btn--outline:hover { background: var(--ms-blue); color: var(--ms-white); }

.ms-btn--outline-white {
  background: transparent;
  border-color: rgba(255,255,255,.6);
  color: var(--ms-white);
}
.ms-btn--outline-white:hover { background: rgba(255,255,255,.12); }

.ms-btn--lg { padding: 18px 40px; font-size: 1.1rem; border-radius: var(--ms-radius-lg); }
.ms-btn--wa { background: #25d366; color: var(--ms-white); }
.ms-btn--wa:hover { background: #1ebe5a; }

.ms-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

/* ===========================
   HEADER / NAV
=========================== */
.ms-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ms-white);
  border-bottom: 1px solid var(--ms-grey-mid);
  box-shadow: 0 2px 12px rgba(13,47,94,.06);
}
.ms-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.ms-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.ms-logo img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}
.ms-nav-cta { display: flex; gap: 10px; }

/* ===========================
   HERO
=========================== */
.ms-hero {
  background: linear-gradient(135deg, var(--ms-blue-dark) 0%, #163d7a 60%, #1a56c8 100%);
  color: var(--ms-white);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.ms-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}
.ms-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.ms-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--ms-white);
  font-size: .8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.ms-hero-badge::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse-dot 1.6s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}
.ms-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}
.ms-hero h1 em {
  font-style: normal;
  color: #7db8f7;
}
.ms-hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 36px;
  line-height: 1.7;
}
.ms-hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.ms-hero-stat strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--ms-white);
}
.ms-hero-stat span {
  font-size: .85rem;
  color: rgba(255,255,255,.65);
}
.ms-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.ms-hero-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(12px);
  border-radius: var(--ms-radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 340px;
}
.ms-hero-card-title {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 20px;
}
.ms-card-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ms-card-step:last-child { border-bottom: none; }
.ms-card-step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ms-blue-light);
  color: var(--ms-white);
  font-size: .75rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ms-card-step-text { font-size: .9rem; color: rgba(255,255,255,.9); }
.ms-card-step-text small { display: block; font-size: .75rem; color: rgba(255,255,255,.5); }

/* ===========================
   PROBLEMA
=========================== */
.ms-problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.ms-problem-card {
  background: var(--ms-white);
  border: 1px solid var(--ms-grey-mid);
  border-radius: var(--ms-radius);
  padding: 28px;
  transition: box-shadow var(--ms-transition), transform var(--ms-transition);
}
.ms-problem-card:hover { box-shadow: var(--ms-shadow); transform: translateY(-3px); }
.ms-problem-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}
.ms-problem-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.ms-problem-card p { font-size: .9rem; color: var(--ms-grey-text); }

/* ===========================
   SOLUCIÓN
=========================== */
.ms-solution-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.ms-solution-list { list-style: none; margin-top: 28px; }
.ms-solution-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: .975rem;
  color: var(--ms-grey-text);
  border-bottom: 1px solid var(--ms-grey-mid);
}
.ms-solution-list li:last-child { border-bottom: none; }
.ms-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ms-blue-pale);
  color: var(--ms-blue);
  font-size: .75rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.ms-solution-visual {
  background: var(--ms-blue-pale);
  border-radius: var(--ms-radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ms-mini-card {
  background: var(--ms-white);
  border-radius: var(--ms-radius);
  padding: 18px 20px;
  box-shadow: var(--ms-shadow);
  display: flex;
  align-items: center;
  gap: 14px;
}
.ms-mini-card-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}
.ms-mini-card-text strong { display: block; font-size: .9rem; font-weight: 700; color: var(--ms-blue-dark); }
.ms-mini-card-text span { font-size: .8rem; color: var(--ms-grey-text); }

/* ===========================
   QUÉ INCLUYE
=========================== */
.ms-includes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.ms-include-item {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--ms-radius);
  padding: 28px 24px;
  transition: background var(--ms-transition), transform var(--ms-transition);
}
.ms-include-item:hover { background: rgba(255,255,255,.12); transform: translateY(-3px); }
.ms-include-icon { font-size: 2rem; margin-bottom: 14px; }
.ms-include-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: var(--ms-white); }
.ms-include-item p { font-size: .875rem; color: rgba(255,255,255,.65); }

/* ===========================
   CÓMO FUNCIONA
=========================== */
.ms-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 48px;
  position: relative;
}
.ms-step {
  text-align: center;
  padding: 32px 20px;
}
.ms-step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--ms-blue);
  color: var(--ms-white);
  font-size: 1.3rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 4px 16px rgba(26,86,200,.35);
}
.ms-step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.ms-step p { font-size: .875rem; color: var(--ms-grey-text); }

/* ===========================
   PAQUETES
=========================== */
.ms-packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 48px;
}
.ms-package {
  background: var(--ms-white);
  border: 2px solid var(--ms-grey-mid);
  border-radius: var(--ms-radius-lg);
  padding: 36px 28px;
  position: relative;
  transition: transform var(--ms-transition), box-shadow var(--ms-transition);
}
.ms-package:hover { transform: translateY(-4px); box-shadow: var(--ms-shadow-lg); }
.ms-package--featured {
  border-color: var(--ms-blue);
  box-shadow: 0 0 0 4px var(--ms-blue-pale), var(--ms-shadow);
}
.ms-package-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ms-blue);
  color: var(--ms-white);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 50px;
  white-space: nowrap;
}
.ms-package-name { font-size: .8rem; font-weight: 600; color: var(--ms-grey-text); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.ms-package-price {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--ms-blue-dark);
  line-height: 1;
  margin-bottom: 4px;
}
.ms-package-period { font-size: .85rem; color: var(--ms-grey-text); margin-bottom: 24px; }
.ms-package-features { list-style: none; margin-bottom: 28px; }
.ms-package-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  padding: 6px 0;
  color: var(--ms-text);
  border-bottom: 1px solid var(--ms-grey-mid);
}
.ms-package-features li:last-child { border-bottom: none; }
.ms-package-features li::before {
  content: '✓';
  font-size: .75rem;
  font-weight: 700;
  color: var(--ms-blue);
  background: var(--ms-blue-pale);
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ===========================
   BENEFICIOS
=========================== */
.ms-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.ms-benefit {
  background: var(--ms-white);
  border: 1px solid var(--ms-grey-mid);
  border-radius: var(--ms-radius);
  padding: 28px 22px;
  text-align: center;
  transition: box-shadow var(--ms-transition), transform var(--ms-transition);
}
.ms-benefit:hover { box-shadow: var(--ms-shadow); transform: translateY(-3px); }
.ms-benefit-icon { font-size: 2.4rem; margin-bottom: 14px; }
.ms-benefit h3 { font-size: .95rem; font-weight: 700; margin-bottom: 6px; color: var(--ms-blue-dark); }
.ms-benefit p { font-size: .85rem; color: var(--ms-grey-text); }

/* ===========================
   FORM SECTION
=========================== */
.ms-form-section {
  background: var(--ms-grey-light);
}
.ms-form-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.ms-form-info { padding-top: 16px; }
.ms-form-trust {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
}
.ms-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .9rem;
  color: var(--ms-grey-text);
}
.ms-trust-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}
.ms-form-wrap {
  background: var(--ms-white);
  border-radius: var(--ms-radius-lg);
  padding: 36px 32px;
  box-shadow: var(--ms-shadow);
  border: 1px solid var(--ms-grey-mid);
}

/* ===========================
   CTA FINAL
=========================== */
.ms-cta-section {
  padding: 100px 0;
}
.ms-cta-box {
  background: linear-gradient(135deg, var(--ms-blue-dark) 0%, var(--ms-blue) 100%);
  border-radius: var(--ms-radius-lg);
  padding: 64px 48px;
  text-align: center;
  color: var(--ms-white);
  position: relative;
  overflow: hidden;
}
.ms-cta-box::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.ms-cta-box::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.ms-cta-box h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 14px;
  position: relative; z-index: 1;
}
.ms-cta-box p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.78);
  margin-bottom: 36px;
  position: relative; z-index: 1;
}
.ms-cta-box .ms-btn-group {
  justify-content: center;
  position: relative; z-index: 1;
}

/* ===========================
   FOOTER
=========================== */
.ms-footer {
  background: var(--ms-blue-dark);
  color: rgba(255,255,255,.65);
  padding: 40px 0;
  text-align: center;
  font-size: .875rem;
}
.ms-footer a { color: rgba(255,255,255,.8); }
.ms-footer a:hover { color: var(--ms-white); }

/* ===========================
   ELEMENTOR COMPATIBILITY
=========================== */
.elementor-page .ms-header,
.elementor-page .ms-footer {
  display: none;
}
.elementor-page .site-content {
  max-width: 100%;
  padding: 0;
  margin: 0;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 960px) {
  .ms-hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .ms-hero-visual { display: none; }
  .ms-solution-inner { grid-template-columns: 1fr; }
  .ms-form-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ms-section { padding: 60px 0; }
  .ms-nav-cta .ms-btn:not(.ms-btn--primary) { display: none; }
  .ms-cta-box { padding: 48px 24px; }
  .ms-form-wrap { padding: 28px 20px; }
}
