:root {
  --primary: #1d4ed8;
  --primary-dark: #1e40af;
  --primary-light: #eff6ff;
  --accent: #06b6d4;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --bg: #f8fafc;
}
* { box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: var(--text); overflow-x: hidden; margin: 0; }
section { scroll-margin-top: 70px; }

/* NAV */
.navbar { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000; }
.navbar-brand { font-weight: 700; font-size: 20px; color: var(--primary) !important; letter-spacing: -.3px; text-decoration: none; display: flex; align-items: center; }
.navbar-brand span { color: var(--accent); }
.nav-link { font-size: 14px; font-weight: 500; color: var(--text) !important; padding: 8px 14px !important; border-radius: 8px; transition: background .15s; }
.nav-link:hover, .nav-link.active { background: var(--primary-light); color: var(--primary) !important; }
.btn-nav { background: var(--primary); color: #fff !important; border-radius: 8px; padding: 8px 18px !important; font-size: 14px; font-weight: 500; }
.btn-nav:hover { background: var(--primary-dark) !important; color: #fff !important; }

/* HERO SLIDER */
.hero-carousel { position: relative; overflow: hidden; }
.hero-slide { display: none; min-height: 88vh; align-items: center; padding: 80px 0 60px; position: relative; }
.hero-slide.active { display: flex; }
.slide-1 { background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 50%, #06b6d4 100%); }
.slide-2 { background: linear-gradient(135deg, #064e3b 0%, #059669 50%, #06b6d4 100%); }
.slide-3 { background: linear-gradient(135deg, #3b0764 0%, #7c3aed 50%, #1d4ed8 100%); }
.slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .12; }
.carousel-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); border: none; cursor: pointer; transition: all .3s; }
.carousel-dot.active { width: 24px; border-radius: 4px; background: #fff; }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); color: #fff; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; font-size: 18px; transition: background .2s; }
.carousel-arrow:hover { background: rgba(255,255,255,.25); }
.carousel-arrow.prev { left: 16px; }
.carousel-arrow.next { right: 16px; }

/* HERO SHARED */
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); border-radius: 20px; padding: 5px 14px; font-size: 12px; color: #bfdbfe; margin-bottom: 20px; }
.hero h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; color: #fff; line-height: 1.1; margin-bottom: 20px; }
.hero h1 span { color: #67e8f9; }
.hero p { font-size: 18px; color: #bfdbfe; line-height: 1.7; margin-bottom: 36px; max-width: 520px; }
.hero-img { border-radius: 16px; box-shadow: 0 32px 80px rgba(0,0,0,.4); width: 100%; max-width: 520px; border: 1px solid rgba(255,255,255,.2); }
.stats-hero { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 48px; }
.stat-hero { text-align: center; }
.stat-hero .num { font-size: 32px; font-weight: 800; color: #fff; display: block; }
.stat-hero .lbl { font-size: 12px; color: #93c5fd; }
.stat-divider { width: 1px; background: rgba(255,255,255,.2); }

/* BUTTONS */
.btn-primary-custom { background: #fff; color: var(--primary); border: none; border-radius: 10px; padding: 14px 28px; font-size: 15px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: transform .15s, box-shadow .15s; text-decoration: none; }
.btn-primary-custom:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); color: var(--primary); }
.btn-outline-custom { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); border-radius: 10px; padding: 14px 24px; font-size: 15px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background .15s; text-decoration: none; }
.btn-outline-custom:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-whatsapp { background: #25D366; color: #fff; border: none; border-radius: 10px; padding: 14px 28px; font-size: 15px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; transition: transform .15s, box-shadow .15s; text-decoration: none; }
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,.4); color: #fff; }
.btn-whatsapp i { font-size: 20px; }
.btn-submit { background: var(--primary); color: #fff; border: none; border-radius: 10px; padding: 14px 32px; font-size: 15px; font-weight: 600; cursor: pointer; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s; }
.btn-submit:hover { background: var(--primary-dark); }

/* FEATURES BAR */
.features-bar { background: #fff; padding: 48px 0; border-bottom: 1px solid var(--border); }
.feat-item { text-align: center; padding: 16px; }
.feat-icon-wrap { width: 56px; height: 56px; border-radius: 14px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.feat-icon-wrap i { font-size: 24px; color: var(--primary); }
.feat-item h5 { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.feat-item p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5; }

/* MODULES */
.modules { background: var(--bg); padding: 80px 0; }
.section-tag { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; }
.section-title { font-size: clamp(24px, 3vw, 36px); font-weight: 700; margin-bottom: 14px; line-height: 1.2; }
.section-sub { font-size: 16px; color: var(--muted); line-height: 1.7; max-width: 520px; }
.mod-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 24px; height: 100%; transition: border-color .2s, box-shadow .2s; }
.mod-card:hover { border-color: var(--primary); box-shadow: 0 4px 24px rgba(29,78,216,.1); }
.mod-card .icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 20px; }
.mod-card h5 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.mod-card p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0; }
.mod-preview { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 8px 32px rgba(0,0,0,.08); }
.mod-preview img { width: 100%; display: block; }

/* ROLES */
.roles { background: #fff; padding: 80px 0; }
.role-card { border-radius: 16px; overflow: hidden; position: relative; }
.role-img { width: 100%; height: 220px; object-fit: cover; }
.role-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.8) 0%, transparent 60%); display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; }
.role-overlay h4 { color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.role-overlay p { color: rgba(255,255,255,.75); font-size: 13px; margin: 0; }

/* NOSOTROS */
.about-hero { background: linear-gradient(to right, #0f172a, #1e3a8a); padding: 80px 0; }
.about-story { background: #fff; padding: 80px 0; }
.about-img { border-radius: 16px; overflow: hidden; box-shadow: 0 16px 48px rgba(0,0,0,.12); }
.about-img img { width: 100%; display: block; }
.value-card { background: var(--bg); border-radius: 14px; padding: 28px; border-left: 4px solid var(--primary); margin-bottom: 16px; }
.value-card h5 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.value-card p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.6; }

/* SERVICIOS */
.services-hero { background: linear-gradient(135deg, #1e3a8a, #0891b2); padding: 80px 0; text-align: center; }
.plan-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 32px; height: 100%; position: relative; transition: box-shadow .2s; }
.plan-card:hover { box-shadow: 0 8px 40px rgba(29,78,216,.12); }
.plan-card.featured { border: 2px solid var(--primary); }
.plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: 11px; font-weight: 600; padding: 4px 14px; border-radius: 20px; white-space: nowrap; }
.plan-price { font-size: 40px; font-weight: 800; color: var(--text); }
.plan-price span { font-size: 16px; font-weight: 400; color: var(--muted); }
.plan-feature { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.plan-feature:last-child { border: none; }
.plan-feature i { color: var(--primary); font-size: 16px; flex-shrink: 0; }
.service-block { padding: 80px 0; }
.service-block:nth-child(even) { background: var(--bg); }
.service-img { border-radius: 16px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.1); }
.service-img img { width: 100%; display: block; }

/* CONTACTO */
.contact-hero { background: linear-gradient(135deg, #0f172a, #1d4ed8); padding: 80px 0; text-align: center; }
.contact-hero h1 { color: #fff; font-size: 40px; font-weight: 800; margin-bottom: 16px; }
.contact-hero p { color: #bfdbfe; font-size: 17px; }
.contact-form-wrap { background: #fff; border-radius: 20px; box-shadow: 0 24px 80px rgba(0,0,0,.12); padding: 48px; }
.form-label { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.form-control, .form-select { border: 1px solid var(--border); border-radius: 10px; padding: 11px 14px; font-size: 14px; color: var(--text); }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(29,78,216,.1); outline: none; }
.contact-info { padding: 32px; }
.info-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 32px; }
.info-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.info-icon i { font-size: 20px; color: var(--primary); }
.info-item h6 { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.info-item p { font-size: 15px; font-weight: 500; margin: 0; }

/* FOOTER */
footer { background: #0f172a; color: #94a3b8; padding: 48px 0 24px; }
.footer-logo { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.footer-logo span { color: #67e8f9; }
footer p { font-size: 14px; line-height: 1.6; }
.footer-link { color: #94a3b8; text-decoration: none; font-size: 14px; display: block; margin-bottom: 8px; }
.footer-link:hover { color: #fff; }
.footer-title { font-size: 13px; font-weight: 600; color: #fff; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; margin-top: 40px; font-size: 13px; text-align: center; }
.social-btn { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: inline-flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 16px; margin-right: 8px; text-decoration: none; transition: background .15s; }
.social-btn:hover { background: rgba(255,255,255,.15); color: #fff; }

/* MISC */
.badge-custom { background: var(--primary-light); color: var(--primary); font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 20px; }
.divider-custom { height: 3px; width: 48px; background: var(--primary); border-radius: 2px; margin: 16px 0 24px; }
.floating-cta { position: fixed; bottom: 24px; right: 24px; z-index: 999; }
.floating-cta a { background: #25D366; color: #fff; border-radius: 50px; padding: 14px 22px; font-size: 15px; font-weight: 600; text-decoration: none; display: flex; align-items: center; gap: 10px; box-shadow: 0 8px 32px rgba(37,211,102,.4); transition: transform .15s; }
.floating-cta a:hover { transform: translateY(-2px); color: #fff; }
.floating-cta i { font-size: 22px; }

/* ANIMACIONES */
@keyframes fadeInUp   { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInLeft { from { opacity:0; transform:translateX(-30px); } to { opacity:1; transform:translateX(0); } }
@keyframes fadeInRight{ from { opacity:0; transform:translateX(30px); } to { opacity:1; transform:translateX(0); } }
.anim-up    { opacity:0; animation: fadeInUp .7s ease forwards; }
.anim-left  { opacity:0; animation: fadeInLeft .7s ease forwards; }
.anim-right { opacity:0; animation: fadeInRight .7s ease forwards; }
.anim-d1 { animation-delay: .1s; }
.anim-d2 { animation-delay: .25s; }
.anim-d3 { animation-delay: .4s; }
.anim-d4 { animation-delay: .55s; }
.anim-d5 { animation-delay: .7s; }
.reveal { opacity:0; transform:translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }

@media (max-width: 768px) {
  .stats-hero { gap: 20px; }
  .hero-slide { min-height: auto; padding: 60px 0 48px; }
  .contact-form-wrap { padding: 24px; }
}
