/* ===== vallMarketing — Agencia de Marketing Digital ===== */
:root {
  --navy: #0F2C59;
  --navy-2: #1a3d73;
  --teal: #00D2D3;
  --teal-2: #00B3B4;
  --white: #ffffff;
  --ink: #1e293b;
  --text-2: #475569;
  --border: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f4f8fb;
  --shadow: 0 4px 16px rgba(15, 44, 89, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 44, 89, 0.15);
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 0; gap: 20px;
}
.brand img { height: 60px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 15px; font-weight: 500; color: var(--navy); transition: color .2s; }
.nav a:hover { color: var(--teal-2); }
.nav .btn { padding: 9px 18px; }
.btn {
  display: inline-block;
  background: var(--teal);
  color: #fff; font-weight: 700; font-size: 15px;
  padding: 11px 22px; border-radius: 10px;
  border: none; cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--teal-2); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,210,211,0.35); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); box-shadow: none; }
.btn-outline:hover { background: var(--navy); color: #fff; box-shadow: 0 8px 20px rgba(15,44,89,0.3); }
.btn-navy { background: var(--navy); color: var(--white) !important; }
.btn-navy:hover { background: var(--navy-2); box-shadow: 0 8px 20px rgba(15,44,89,0.35); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: #eef2ff; box-shadow: 0 8px 20px rgba(255,255,255,0.3); }

.menu-toggle { display: none; background: none; border: none; font-size: 28px; color: var(--navy); cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #16407c 55%, #0d6b7a 100%);
  color: #fff; position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; right: -120px; top: -120px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,210,211,0.25), transparent 70%);
}
.hero::before {
  content: ''; position: absolute; left: -100px; bottom: -100px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,210,211,0.15), transparent 70%);
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px;
  align-items: center; padding: 80px 0 90px;
}
.hero h1 { font-size: 48px; line-height: 1.15; font-weight: 800; margin-bottom: 20px; }
.hero h1 span { color: var(--teal); }
.hero p.lead { font-size: 18px; color: rgba(255,255,255,0.9); max-width: 540px; margin-bottom: 24px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 34px; flex-wrap: wrap; }
.hero-stat h3 { font-size: 30px; color: var(--teal); font-weight: 800; }
.hero-stat p { font-size: 14px; color: rgba(255,255,255,0.8); }

.hero-visual {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px; padding: 24px;
  backdrop-filter: blur(8px);
}
.visual-card { background: #fff; border-radius: 14px; padding: 20px; color: var(--ink); box-shadow: var(--shadow-lg); }
.visual-card .vc-title { font-weight: 800; font-size: 17px; color: var(--navy); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.chip { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.chip-ia { background: #e0f7f8; color: var(--teal-2); }
.chip-app { background: #e8eefe; color: var(--navy-2); }
.chip-web { background: #eef2f7; color: #334155; }
.vc-list { display: flex; flex-direction: column; gap: 10px; }
.vc-item { display: flex; align-items: center; gap: 12px; background: var(--bg-alt); padding: 10px 14px; border-radius: 10px; font-size: 14px; }
.vc-item .ic { width: 40px; height: 40px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 21px; flex-shrink: 0; }
.vc-item .ic-ia { background: #e0f7f8; }
.vc-item .ic-app { background: #e8eefe; }
.vc-item .ic-web { background: #eef2f7; }
.vc-item strong { display: block; font-size: 13px; color: var(--navy); }
.vc-item small { color: var(--text-2); font-size: 12px; }

/* ---------- Sectiones generales ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-tag {
  display: inline-block; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--teal-2); background: #e0f7f8;
  padding: 6px 14px; border-radius: 30px; margin-bottom: 16px;
}
.section-title { font-size: 36px; font-weight: 800; color: var(--navy); line-height: 1.2; margin-bottom: 14px; }
.section-subtitle { font-size: 17px; color: var(--text-2); max-width: 640px; margin-bottom: 44px; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Servicios ---------- */
.services-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.service-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s, border-color .3s;
  position: relative; overflow: hidden;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--teal); }
.service-icon {
  width: 60px; height: 60px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 18px;
}
.si-app { background: linear-gradient(135deg,#e8eefe,#dbe4ff); }
.si-web { background: linear-gradient(135deg,#e0f7f8,#ccf3f4); }
.si-ia { background: linear-gradient(135deg,#eef2f7,#e6ecf3); }
.service-card h3 { font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.service-card p { font-size: 14.5px; color: var(--text-2); margin-bottom: 16px; }
.service-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.service-card ul li { font-size: 14px; color: var(--text-2); display: flex; align-items: flex-start; gap: 8px; }
.service-card ul li::before { content: '✓'; color: var(--teal-2); font-weight: 700; flex-shrink: 0; }

/* ---------- Productos ---------- */
.products-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.product-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-top {
  padding: 28px 28px 22px; color: #fff; position: relative; overflow: hidden;
}
.product-top h3 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.product-top p { font-size: 14px; opacity: 0.9; }
.product-badge {
  position: absolute; top: 18px; right: 18px;
  background: rgba(255,255,255,0.2); color: #fff;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 4px 10px; border-radius: 20px;
}
.pt-vallmia { background: linear-gradient(135deg,#0F2C59,#16407c); }
.pt-carta { background: linear-gradient(135deg,#0b6e4f,#0e8a63); }
.pt-conexion { background: linear-gradient(135deg,#4a1d8f,#7c3aed); }
.product-body { padding: 22px 28px 26px; flex: 1; display: flex; flex-direction: column; }
.product-body p { font-size: 14.5px; color: var(--text-2); margin-bottom: 16px; flex: 1; }
.product-body ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.product-body ul li { font-size: 13.5px; color: var(--text-2); display: flex; align-items: flex-start; gap: 8px; }
.product-body ul li::before { content: '✓'; color: var(--teal-2); font-weight: 700; flex-shrink: 0; }
.product-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-weight: 700; font-size: 14px;
  background: var(--navy); color: #fff;
  padding: 11px 18px; border-radius: 10px;
  transition: background .2s, transform .2s, box-shadow .2s;
  text-align: center;
}
.product-link:hover { background: var(--teal-2); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,210,211,0.3); }
.product-link::after { content: '→'; transition: transform .2s; }
.product-link:hover::after { transform: translateX(4px); }

/* ---------- Proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.step-num {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--teal), var(--teal-2));
  color: #fff; font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.step h4 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--text-2); }

/* ---------- Por qué vallMarketing ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.why-card { display: flex; gap: 16px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.why-icon { width: 52px; height: 52px; border-radius: 14px; background: #e0f7f8; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.why-card h4 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.why-card p { font-size: 14px; color: var(--text-2); }

/* ---------- CTA final ---------- */
.cta-final {
  background: linear-gradient(135deg, var(--navy), #16407c, #0d6b7a);
  color: #fff; border-radius: 24px; padding: 60px 48px; text-align: center; position: relative; overflow: hidden;
}
.cta-final h2 { font-size: 36px; font-weight: 800; margin-bottom: 16px; }
.cta-final p { font-size: 17px; color: rgba(255,255,255,0.9); max-width: 560px; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,0.8); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 14px; margin-top: 14px; max-width: 300px; }
.footer-brand img { height: 40px; filter: brightness(0) invert(1); }
.footer h5 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul li a { font-size: 14px; transition: color .2s; }
.footer ul li a:hover { color: var(--teal); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px; }

/* ---------- Contacto ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info h3 { font-size: 22px; color: var(--navy); margin-bottom: 14px; }
.contact-info p { font-size: 15px; color: var(--text-2); margin-bottom: 24px; }
.contact-method { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.contact-method .ic { width: 46px; height: 46px; border-radius: 12px; background: #e0f7f8; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.contact-method strong { display: block; color: var(--navy); font-size: 15px; }
.contact-method span { font-size: 14px; color: var(--text-2); }
.form-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 10px; font-size: 14px; font-family: inherit; color: var(--ink);
  transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,210,211,0.15);
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-msg { margin-top: 14px; font-size: 14px; font-weight: 600; padding: 12px; border-radius: 8px; display: none; }
.form-msg.ok { display: block; background: #dcfce7; color: #166534; }
.form-msg.err { display: block; background: #fee2e2; color: #991b1b; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .hero-inner { grid-template-columns: 1fr; padding: 60px 0; }
  .hero h1 { font-size: 38px; }
  .services-grid, .products-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 20px; gap: 16px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { width: 100%; text-align: left; }
  .menu-toggle { display: block; }
  .hero h1 { font-size: 32px; }
  .hero-stats { gap: 24px; }
  .services-grid, .products-grid, .why-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .section-title { font-size: 28px; }
  .cta-final { padding: 40px 24px; }
  .cta-final h2 { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
