/* MarketinAI — Sección de Servicios Productizados */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #050a0f;
  --bg2: #0a1220;
  --bg3: #111a2b;
  --accent: #00d4ff;
  --accent-soft: rgba(0, 212, 255, 0.12);
  --accent2: #34d399;
  --accent2-soft: rgba(52, 211, 153, 0.12);
  --text: #e2e8f0;
  --text2: #94a3b8;
  --text3: #64748b;
  --border: rgba(0, 212, 255, 0.15);
  --border2: rgba(148, 163, 184, 0.15);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 1000px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
  color: var(--text);
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}

.nav-links a {
  color: var(--text2);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--bg3);
  text-decoration: none;
}

.nav-cta {
  background: var(--accent);
  color: var(--bg) !important;
  padding: 8px 16px !important;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
}

.nav-cta:hover { background: #33ddff; }

.nav-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; }

@media (max-width: 760px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg2); border-bottom: 1px solid var(--border); flex-direction: column; padding: 12px 24px; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 12px; }
  .nav-toggle { display: block; }
}

/* Hero */
.hero-servicios {
  padding: 72px 0 56px;
  text-align: center;
  background: radial-gradient(ellipse at top, rgba(0, 212, 255, 0.08), transparent 60%);
}

.hero-servicios h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-servicios h1 span { color: var(--accent); }

.hero-servicios .subtitle {
  color: var(--text2);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto 24px;
}

.hero-servicios .support {
  color: var(--text3);
  font-size: 0.95rem;
}

/* Page header */
.page-header {
  padding: 64px 0 40px;
  text-align: center;
  background: radial-gradient(ellipse at top, rgba(0, 212, 255, 0.06), transparent 60%);
}

.page-header h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1.2px;
  margin-bottom: 16px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-header .subtitle {
  color: var(--text2);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto;
}

.price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 24px;
  padding: 10px 22px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-weight: 700;
  color: var(--text);
}

.price-tag .amount { color: var(--accent); font-size: 1.5rem; }
.price-tag .period { color: var(--text2); font-size: 0.85rem; font-weight: 500; }

/* Cards */
.section { padding: 56px 0; }
.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 28px;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 212, 255, 0.35);
  box-shadow: var(--shadow);
}

.service-card .badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.service-card h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: 8px; }
.service-card .desc { color: var(--text2); font-size: 0.95rem; margin-bottom: 16px; flex-grow: 1; }
.service-card .price { color: var(--accent); font-weight: 800; font-size: 1.1rem; margin-bottom: 18px; }
.service-card .price span { color: var(--text3); font-size: 0.8rem; font-weight: 500; }

.service-card .cta {
  display: inline-flex;
  justify-content: center;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.92rem;
  transition: opacity 0.2s, transform 0.2s;
}

.service-card .cta:hover { opacity: 0.9; text-decoration: none; }

.service-card .cta.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.service-card .cta.secondary:hover { background: var(--bg3); }

/* Content blocks */
.content-block {
  max-width: 760px;
  margin: 0 auto;
}

.block {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
}

.block h2 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.block h2 .icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
}

.block ul {
  list-style: none;
}

.block ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--text2);
  font-size: 0.95rem;
}

.block ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent2);
  font-weight: 700;
}

.block ul li strong { color: var(--text); }

/* Guarantee box */
.guarantee-box {
  background: var(--accent2-soft);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: var(--radius);
  padding: 24px 28px;
  text-align: center;
  margin: 32px auto;
  max-width: 760px;
}

.guarantee-box h3 { color: var(--accent2); font-size: 1.1rem; margin-bottom: 8px; }
.guarantee-box p { color: var(--text2); font-size: 0.95rem; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-q {
  padding: 18px 22px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 0.98rem;
  transition: background 0.2s;
}

.faq-q:hover { background: var(--bg3); }

.faq-q .toggle {
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.2s;
}

.faq-item.active .faq-q .toggle { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-item.active .faq-a { max-height: 400px; }

.faq-a-inner {
  padding: 0 22px 20px;
  color: var(--text2);
  font-size: 0.95rem;
}

/* Forms */
.form-block {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.form-block h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; }
.form-block .subtitle { color: var(--text2); margin-bottom: 24px; font-size: 0.95rem; }

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group label .req { color: var(--accent); margin-left: 2px; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border2);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group textarea { min-height: 100px; resize: vertical; }

.form-group .hint {
  color: var(--text3);
  font-size: 0.8rem;
  margin-top: 5px;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.checkbox label { font-size: 0.85rem; color: var(--text2); line-height: 1.5; }
.checkbox label strong { color: var(--text); }

.form-status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}

.form-status.success { background: var(--accent2-soft); color: var(--accent2); display: block; }
.form-status.error { background: rgba(248, 113, 113, 0.12); color: #f87171; display: block; }

.btn-submit {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--bg);
  border: none;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-submit:hover { opacity: 0.9; }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* CTA section */
.cta-section {
  text-align: center;
  padding: 64px 0;
  background: radial-gradient(ellipse at bottom, rgba(0, 212, 255, 0.06), transparent 60%);
}

.cta-section h2 { font-size: 1.8rem; font-weight: 900; margin-bottom: 12px; }
.cta-section p { color: var(--text2); margin-bottom: 24px; max-width: 560px; margin-left: auto; margin-right: auto; }

.btn-primary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--bg);
  font-weight: 800;
  font-size: 1rem;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-primary:hover { opacity: 0.9; text-decoration: none; }

.btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
  margin-left: 12px;
}

.btn-secondary:hover { background: var(--bg3); text-decoration: none; }

@media (max-width: 560px) {
  .btn-primary, .btn-secondary { display: block; width: 100%; margin-left: 0; margin-bottom: 12px; }
}

/* Footer */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border2);
  text-align: center;
  color: var(--text3);
  font-size: 0.85rem;
}

footer a { color: var(--text2); }
footer a:hover { color: var(--accent); }

/* Utility */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.small { font-size: 0.85rem; color: var(--text3); }

/* Comparison table */
.comparison {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 0.95rem;
}

.comparison th,
.comparison td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border2);
}

.comparison th {
  color: var(--text);
  font-weight: 700;
  background: var(--bg3);
}

.comparison td { color: var(--text2); }
.comparison td strong { color: var(--text); }
.comparison tr:last-child th,
.comparison tr:last-child td { border-bottom: none; }

@media (max-width: 640px) {
  .comparison th, .comparison td { padding: 10px 12px; font-size: 0.85rem; }
}
