/* ============================================================
   Webaldia — landing principal
   ============================================================ */

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(11, 37, 69, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 37, 69, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 75%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero__title {
  margin: 22px 0 22px;
  text-wrap: balance;
}
.hero__title .accent { color: var(--accent); }
.hero__sub {
  font-size: 18px; color: var(--text-2); line-height: 1.7;
  max-width: 520px; margin-bottom: 36px;
}
.hero__cta {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero__badges {
  display: flex; gap: 20px; flex-wrap: wrap;
}
.hero__badge {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-2); font-weight: 500;
}
.hero__badge-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(76, 185, 68, 0.20);
}

/* Hero visual: web abstracta */
.hero__visual { position: relative; }
.web-preview {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  overflow: hidden;
}
.web-preview__chrome {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.web-preview__dots { display: flex; gap: 6px; }
.web-preview__dots span { width: 10px; height: 10px; border-radius: 50%; }
.web-preview__dots span:nth-child(1) { background: #ef4444; }
.web-preview__dots span:nth-child(2) { background: #f59e0b; }
.web-preview__dots span:nth-child(3) { background: #10b981; }
.web-preview__url {
  flex: 1;
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px; color: var(--text-3);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.web-preview__body {
  padding: 24px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.web-preview__block {
  border-radius: 8px;
  animation: wa-shimmer 2.5s ease-in-out infinite;
}
.web-preview__block--hero {
  height: 80px;
  background: linear-gradient(135deg, rgba(11, 37, 69, 0.08), rgba(76, 185, 68, 0.08));
}
.web-preview__block--nav {
  height: 12px; width: 60%;
  background: rgba(11, 37, 69, 0.06);
}
.web-preview__block--text {
  height: 8px;
  background: rgba(11, 37, 69, 0.05);
}
.web-preview__block--text:nth-child(4) { width: 80%; }
.web-preview__block--text:nth-child(5) { width: 60%; }
.web-preview__blocks-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.web-preview__block--card {
  height: 60px;
  background: rgba(76, 185, 68, 0.06);
  border: 1px solid rgba(76, 185, 68, 0.12);
  border-radius: 8px;
}

/* Status badges floating */
.status-badge {
  position: absolute;
  background: var(--bg-0);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 10px 14px;
  box-shadow: var(--shadow-2);
  animation: wa-float 4.5s ease-in-out infinite;
  font-size: 13px;
  display: flex; align-items: center; gap: 8px;
}
.status-badge .icon { width: 20px; height: 20px; }
.status-badge .lbl { font-size: 11px; color: var(--text-3); }
.status-badge .val { font-weight: 700; }
.status-badge .val.green { color: var(--accent); }
.status-badge .val.navy { color: var(--primary); }
.status-badge--tr { top: -18px; right: -18px; }
.status-badge--bl { bottom: 30px; left: -28px; animation-delay: 1.2s; }
.status-badge--br { bottom: -16px; right: 24px; animation-delay: 2.2s; }

@keyframes wa-shimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* SECTIONS */
.section {
  padding: 100px 24px;
}
.section--alt {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section__head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section__head h2 { margin: 18px 0 16px; }
.section__head p  { color: var(--text-2); font-size: 17px; }

/* PROBLEM CARDS */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: var(--container);
  margin: 0 auto;
}
.problem-card {
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.problem-card:hover {
  transform: translateY(-3px);
  border-color: rgba(239, 68, 68, 0.30);
  box-shadow: var(--shadow-2);
}
.problem-card__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(11, 37, 69, 0.07), rgba(76, 185, 68, 0.10));
  color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  border: 1px solid rgba(76, 185, 68, 0.18);
  box-shadow: 0 4px 12px rgba(11, 37, 69, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.problem-card__icon svg { width: 26px; height: 26px; }
.problem-card:hover .problem-card__icon {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(76, 185, 68, 0.15);
}
.problem-card__title {
  font-family: 'Inter', system-ui, sans-serif; font-weight: 700;
  font-size: 17px; line-height: 1.3;
  margin-bottom: 8px; color: var(--text);
}
.problem-card__desc {
  color: var(--text-2);
  font-size: 14px; line-height: 1.6;
}

/* SERVICE BLOCKS */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.svc-card {
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.svc-card::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(140% 80% at 100% 0%, rgba(76, 185, 68, 0.05), transparent 60%);
  opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.svc-card:hover {
  transform: translateY(-4px);
  border-color: rgba(76, 185, 68, 0.35);
  box-shadow: var(--shadow-2);
}
.svc-card:hover::after { opacity: 1; }
.svc-card__icon {
  width: 52px; height: 52px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  border: 1px solid rgba(76, 185, 68, 0.20);
}
.svc-card__title {
  font-family: 'Inter', system-ui, sans-serif; font-weight: 700;
  font-size: 21px; line-height: 1.2;
  margin-bottom: 10px; color: var(--primary);
}
.svc-card__desc {
  color: var(--text-2);
  font-size: 15px; line-height: 1.6;
  margin-bottom: 18px;
}
.svc-card__list { list-style: none; }
.svc-card__list li {
  padding: 6px 0;
  font-size: 14px; color: var(--text-2);
  display: flex; align-items: flex-start; gap: 8px;
}
.svc-card__list li::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 8px;
}

/* HOW IT WORKS */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 32px; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(to right, var(--accent), var(--border), var(--accent));
  z-index: 0;
}
.step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.step__num {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800;
  margin-bottom: 18px;
  box-shadow: 0 6px 20px rgba(76, 185, 68, 0.25);
}
.step__title {
  font-weight: 700; font-size: 17px; color: var(--primary);
  margin-bottom: 8px;
}
.step__desc {
  font-size: 14px; color: var(--text-2); line-height: 1.6;
}

/* CASES GRID */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: var(--container);
  margin: 0 auto;
}
.case-card {
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.case-card:hover {
  transform: translateY(-3px);
  border-color: rgba(11, 37, 69, 0.20);
  box-shadow: var(--shadow-2);
}
.case-card__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.case-card__title {
  font-family: 'Inter', system-ui, sans-serif; font-weight: 700;
  font-size: 18px; line-height: 1.2; color: var(--primary);
}
.case-card__sector {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--primary-soft); color: var(--primary);
  padding: 4px 10px; border-radius: 999px;
}
.case-card__body { display: flex; flex-direction: column; gap: 10px; }
.case-card__row {
  display: flex; gap: 10px; font-size: 14px; line-height: 1.5;
}
.case-card__row-icon {
  flex-shrink: 0; width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.case-card__row-icon.problem { color: var(--danger); }
.case-card__row-icon.risk { color: var(--warning); }
.case-card__row-icon.solution { color: #3b82f6; }
.case-card__row-icon.result { color: var(--success); }
.case-card__row-text { color: var(--text-2); }
.case-card__row-text strong { color: var(--text); font-weight: 600; }

/* PLANS */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.plan-card {
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  display: flex; flex-direction: column;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.plan-card--featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-2);
  position: relative;
}
.plan-card--featured::before {
  content: 'Más popular';
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: white;
  padding: 4px 16px; border-radius: 999px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}
.plan-card__title {
  font-size: 24px; font-weight: 800; color: var(--primary);
  margin-bottom: 10px;
}
.plan-card__desc {
  color: var(--text-2); font-size: 15px; line-height: 1.6;
  margin-bottom: 24px;
}
.plan-card__features {
  list-style: none; flex: 1;
  margin-bottom: 24px;
}
.plan-card__features li {
  padding: 8px 0;
  font-size: 14px; color: var(--text-2);
  display: flex; align-items: flex-start; gap: 10px;
  border-bottom: 1px solid var(--border);
}
.plan-card__features li:last-child { border-bottom: none; }
.plan-card__features li svg { flex-shrink: 0; color: var(--accent); margin-top: 2px; }
.plan-card__cta { width: 100%; text-align: center; }

/* DIFFERENTIALS */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.diff-card {
  text-align: center;
  padding: 32px 20px;
}
.diff-card__icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  border: 1px solid rgba(11, 37, 69, 0.10);
}
.diff-card__title {
  font-weight: 700; font-size: 18px; color: var(--primary);
  margin-bottom: 8px;
}
.diff-card__desc {
  font-size: 14px; color: var(--text-2); line-height: 1.6;
}

/* FAQ ACCORDION */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--bg-0);
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item__q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer; user-select: none;
  font-weight: 600; font-size: 16px; color: var(--text);
}
.faq-item__q svg {
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: var(--text-3);
}
.faq-item.open .faq-item__q svg { transform: rotate(180deg); color: var(--accent); }
.faq-item__a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 22px;
  font-size: 15px; color: var(--text-2); line-height: 1.7;
}
.faq-item.open .faq-item__a {
  max-height: 300px;
  padding: 0 22px 18px;
}

/* CTA STRIP */
.cta-strip {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px;
  background:
    radial-gradient(80% 100% at 0% 0%, rgba(76, 185, 68, 0.06), transparent 60%),
    radial-gradient(70% 100% at 100% 100%, rgba(11, 37, 69, 0.04), transparent 60%),
    var(--bg-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  text-align: center;
}
.cta-strip h2 { margin-bottom: 14px; }
.cta-strip p { color: var(--text-2); font-size: 17px; margin-bottom: 28px; max-width: 540px; margin-left: auto; margin-right: auto; }

/* RESPONSIVE */
@media (max-width: 980px) {
  .hero { padding: 110px 20px 60px; }
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { max-width: 520px; margin: 0 auto; }
  .problems-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; max-width: 600px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .cases-grid { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 80px 20px; }
  .cta-strip { padding: 40px 24px; }
}
@media (max-width: 620px) {
  .problems-grid { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero__badges { gap: 14px; }
  .status-badge--tr { top: -10px; right: -8px; }
  .status-badge--bl { left: -10px; bottom: 14px; }
  .status-badge--br { right: 8px; bottom: -10px; }
}

/* CONTACT FORM */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
}
.contact-form .form-group {
  margin-bottom: 1.25rem;
}
.contact-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-size: 14px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-0);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(76, 185, 68, 0.12);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 620px) {
  .contact-form .form-row { grid-template-columns: 1fr; }
}
.contact-form .checkbox-group {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--text-2);
}
.contact-form .checkbox-group input[type="checkbox"] {
  width: auto; margin-top: 3px;
}
.contact-form .checkbox-group a {
  color: var(--accent); text-decoration: underline;
}
.contact-success {
  text-align: center;
  padding: 48px 24px;
}
.contact-success svg { margin-bottom: 16px; }
.contact-success h3 { margin-bottom: 8px; }
.contact-success p { color: var(--text-2); }
