/* ============================================================
   CAUXE · widgets.css
   Estilos específicos por sección/componente complejo
   ============================================================ */

/* ============== PROBLEMA ============== */
.problema .section-eyebrow { color: var(--cauxe-warn); }
.dolor-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .dolor-grid { grid-template-columns: repeat(3, 1fr); } }
.dolor-card {
  background: var(--cauxe-white);
  border-radius: var(--r-lg);
  padding: 40px 32px;
  border: 1px solid var(--cauxe-gray-light);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.dolor-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.dolor-icon {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--cauxe-warn-soft), rgba(217, 119, 6, 0.15));
  display: flex; align-items: center; justify-content: center;
  color: var(--cauxe-warn);
  margin-bottom: 24px;
}
.dolor-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--cauxe-deep);
  margin-bottom: 14px;
  line-height: 1.25;
}
.dolor-text { font-size: 15px; line-height: 1.65; color: var(--cauxe-charcoal); }
.dolor-text strong { color: var(--cauxe-warn); font-weight: 600; }

/* ============== SUITE PRODUCTOS ============== */
.suite-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .suite-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .suite-grid { grid-template-columns: repeat(3, 1fr); } }
.product-card {
  background: linear-gradient(180deg, var(--cauxe-sand-2) 0%, var(--cauxe-white) 100%);
  border: 1px solid var(--cauxe-gray-light);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--cauxe-flow), var(--cauxe-spark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); border-color: var(--cauxe-flow-light); }
.product-card:hover::before { transform: scaleX(1); }
.product-icon {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--cauxe-deep), var(--cauxe-flow));
  display: flex; align-items: center; justify-content: center;
  color: var(--cauxe-white);
  margin-bottom: 20px;
}
.product-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--cauxe-deep);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.product-name .x { color: var(--cauxe-flow); font-style: italic; font-weight: 900; }
.product-tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cauxe-flow);
  margin-bottom: 16px;
}
.product-text { font-size: 14px; line-height: 1.6; color: var(--cauxe-charcoal); margin-bottom: 20px; }
.product-features li {
  font-size: 13px;
  padding: 6px 0 6px 22px;
  position: relative;
  color: var(--cauxe-charcoal);
}
.product-features li::before {
  content: '';
  position: absolute;
  left: 0; top: 13px;
  width: 12px; height: 1px;
  background: var(--cauxe-spark);
}
.product-link {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--cauxe-flow);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.product-link:hover { color: var(--cauxe-deep); }
.product-link::after { content: '→'; transition: transform 0.3s ease; }
.product-link:hover::after { transform: translateX(4px); }

/* ============== WISCHAT FEATURED ============== */
.wischat { background: var(--cauxe-deep); color: var(--cauxe-white); overflow: hidden; position: relative; }
.wischat::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(37, 211, 102, 0.15), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.18), transparent 50%);
  pointer-events: none;
}
.wischat .container { position: relative; z-index: 2; }
.wischat .section-eyebrow { color: var(--whatsapp-green); }
.wischat .section-title { color: var(--cauxe-white); }
.wischat .section-title em {
  background: linear-gradient(135deg, var(--whatsapp-green), var(--cauxe-spark));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.wischat .section-lead { color: rgba(255, 255, 255, 0.75); }
.wischat .section-lead strong { color: var(--cauxe-white); }
.wischat-grid { display: grid; grid-template-columns: 1fr; gap: 64px; align-items: center; }
@media (min-width: 1024px) { .wischat-grid { grid-template-columns: 1fr 1fr; gap: 80px; } }

/* Mockup WhatsApp */
.wa-mockup {
  background: #ECE5DD;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 12px #1A1A1A;
  max-width: 380px;
  margin: 0 auto;
}
.wa-header { background: var(--whatsapp-dark); color: white; padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.wa-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cauxe-flow), var(--cauxe-spark));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: white;
  font-size: 16px;
}
.wa-name { font-size: 15px; font-weight: 600; line-height: 1.2; }
.wa-status { font-size: 11px; opacity: 0.7; display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.wa-status::before { content: ''; width: 6px; height: 6px; background: #4CD964; border-radius: 50%; }
.wa-chat {
  padding: 16px 14px;
  min-height: 380px;
  background-image:
    radial-gradient(circle at 15% 15%, rgba(0, 0, 0, 0.02) 1px, transparent 1px),
    radial-gradient(circle at 35% 75%, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
  background-size: 25px 25px;
  display: flex; flex-direction: column; gap: 4px;
}
.wa-msg {
  max-width: 78%;
  padding: 9px 12px 18px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
  position: relative;
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.15);
  animation: msgIn 0.5s ease forwards;
  opacity: 0;
}
.wa-msg.them { background: white; color: #303030; align-self: flex-start; border-top-left-radius: 0; }
.wa-msg.us { background: #DCF8C6; color: #303030; align-self: flex-end; border-top-right-radius: 0; }
.wa-msg .time { position: absolute; bottom: 4px; right: 8px; font-size: 10px; color: rgba(0, 0, 0, 0.45); display: flex; align-items: center; gap: 2px; }
.wa-msg .check { color: #4FC3F7; font-size: 12px; }
.wa-msg.bot::before {
  content: 'CAUXE AI';
  position: absolute; top: -6px; left: 8px;
  font-size: 9px;
  background: var(--cauxe-spark);
  color: var(--cauxe-deep);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  font-family: var(--font-mono);
}
.wa-msg.m1 { animation-delay: 0.4s; }
.wa-msg.m2 { animation-delay: 0.9s; }
.wa-msg.m3 { animation-delay: 1.4s; }
.wa-msg.m4 { animation-delay: 1.9s; }
.wa-msg.m5 { animation-delay: 2.4s; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
.wa-input { background: white; padding: 12px 16px; display: flex; align-items: center; gap: 12px; border-top: 1px solid rgba(0, 0, 0, 0.05); }
.wa-input-box { flex: 1; background: #F0F0F0; padding: 10px 16px; border-radius: 100px; font-size: 13px; color: #999; }
.wa-send { width: 42px; height: 42px; border-radius: 50%; background: var(--whatsapp-green); display: flex; align-items: center; justify-content: center; color: white; }

.wischat-features { display: grid; grid-template-columns: 1fr; gap: 20px; }
.wischat-feature {
  padding: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-md);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.wischat-feature:hover { border-color: var(--cauxe-spark); background: rgba(0, 212, 255, 0.05); }
.wischat-feature-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  color: var(--cauxe-spark);
  line-height: 1;
  margin-bottom: 8px;
}
.wischat-feature-num small { font-size: 16px; color: rgba(255, 255, 255, 0.5); font-weight: 400; }
.wischat-feature-title { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--cauxe-white); margin-bottom: 6px; }
.wischat-feature-text { font-size: 13px; color: rgba(255, 255, 255, 0.7); line-height: 1.55; }

/* ============== ROI CALCULATOR ============== */
.roi-wrap {
  background: linear-gradient(135deg, var(--cauxe-deep) 0%, var(--cauxe-deep-2) 100%);
  border-radius: var(--r-xl);
  padding: 56px 48px;
  color: var(--cauxe-white);
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(10, 31, 68, 0.2);
}
.roi-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at top right, rgba(0, 212, 255, 0.18), transparent 60%);
  pointer-events: none;
}
.roi-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; position: relative; z-index: 2; }
@media (min-width: 1024px) { .roi-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.roi-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.5vw, 40px); letter-spacing: -0.02em; line-height: 1.1; color: var(--cauxe-white); margin-bottom: 16px; }
.roi-title em { color: var(--cauxe-spark); font-style: italic; }
.roi-text { font-size: 15px; line-height: 1.65; color: rgba(255, 255, 255, 0.75); margin-bottom: 24px; }
.roi-form { display: flex; flex-direction: column; gap: 20px; }
.roi-field { display: flex; flex-direction: column; gap: 8px; }
.roi-field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cauxe-spark);
  font-weight: 600;
}
.roi-input-row { display: flex; align-items: center; gap: 16px; }
.roi-slider {
  flex: 1;
  appearance: none;
  -webkit-appearance: none;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  outline: none;
}
.roi-slider::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none;
  width: 22px; height: 22px;
  background: var(--cauxe-spark);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.2);
}
.roi-slider::-moz-range-thumb {
  width: 22px; height: 22px;
  background: var(--cauxe-spark);
  border-radius: 50%;
  cursor: pointer;
  border: 0;
}
.roi-value {
  min-width: 80px;
  text-align: right;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--cauxe-white);
}
.roi-result {
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: var(--r-md);
  padding: 32px;
  text-align: center;
}
.roi-result-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cauxe-spark);
  margin-bottom: 8px;
}
.roi-result-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 6vw, 72px);
  background: linear-gradient(135deg, var(--cauxe-spark), white);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.roi-result-period { font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.roi-disclaimer { font-size: 11px; color: rgba(255, 255, 255, 0.4); margin-top: 16px; font-style: italic; line-height: 1.5; }

/* ============== NEOCRM DASHBOARD MOCKUP ============== */
.neocrm-grid { display: grid; grid-template-columns: 1fr; gap: 64px; align-items: center; }
@media (min-width: 1024px) { .neocrm-grid { grid-template-columns: 1fr 1.2fr; gap: 80px; } }
.dash { background: var(--cauxe-white); border-radius: var(--r-md); box-shadow: 0 30px 80px rgba(10, 31, 68, 0.15); overflow: hidden; font-size: 12px; }
.dash-bar { background: var(--cauxe-deep); padding: 12px 16px; display: flex; align-items: center; gap: 10px; }
.dash-dot { width: 10px; height: 10px; border-radius: 50%; }
.dash-dot.r { background: #FF5F56; } .dash-dot.y { background: #FFBD2E; } .dash-dot.g { background: #27C93F; }
.dash-url { flex: 1; background: rgba(255, 255, 255, 0.1); border-radius: 6px; padding: 4px 12px; font-family: var(--font-mono); font-size: 11px; color: rgba(255, 255, 255, 0.8); margin-left: 12px; text-align: center; }
.dash-body { padding: 20px; }
.dash-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--cauxe-gray-light); }
.dash-h-title { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--cauxe-deep); }
.dash-h-meta { font-family: var(--font-mono); font-size: 10px; color: var(--cauxe-gray); }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.dash-kpi { background: var(--cauxe-sand-2); padding: 14px; border-radius: 10px; }
.dash-kpi-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cauxe-gray); margin-bottom: 6px; }
.dash-kpi-value { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--cauxe-deep); line-height: 1; }
.dash-kpi-trend { font-size: 10px; color: var(--cauxe-success); font-weight: 600; margin-top: 4px; }
.dash-chart { background: var(--cauxe-sand-2); border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.dash-chart-title { font-size: 11px; color: var(--cauxe-gray); margin-bottom: 12px; font-weight: 500; }
.dash-bars { display: flex; align-items: flex-end; height: 80px; gap: 6px; }
.dash-bar-item { flex: 1; background: linear-gradient(180deg, var(--cauxe-flow), var(--cauxe-spark)); border-radius: 4px 4px 0 0; }
.dash-pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.dash-pipe-col { background: var(--cauxe-sand-2); border-radius: 8px; padding: 10px; border-top: 3px solid var(--cauxe-flow); }
.dash-pipe-col:nth-child(2) { border-top-color: #FFBD2E; }
.dash-pipe-col:nth-child(3) { border-top-color: #4CAF50; }
.dash-pipe-col:nth-child(4) { border-top-color: var(--cauxe-spark); }
.dash-pipe-label { font-size: 9px; color: var(--cauxe-gray); text-transform: uppercase; font-weight: 600; margin-bottom: 4px; }
.dash-pipe-count { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--cauxe-deep); }
.dash-pipe-val { font-size: 9px; color: var(--cauxe-gray); margin-top: 2px; font-family: var(--font-mono); }

.feat-list { display: flex; flex-direction: column; margin: 24px 0 32px; }
.feat-list li { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--cauxe-gray-light); }
.feat-list li:last-child { border-bottom: 0; }
.feat-list .feat-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cauxe-flow), var(--cauxe-spark));
  display: flex; align-items: center; justify-content: center;
  color: white;
}
.feat-list .feat-title { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--cauxe-deep); margin-bottom: 3px; }
.feat-list .feat-text { font-size: 13px; color: var(--cauxe-charcoal); line-height: 1.55; }

/* ============== FINANCE MODULES ============== */
.finance-grid { display: grid; grid-template-columns: 1fr; gap: 64px; align-items: center; }
@media (min-width: 1024px) { .finance-grid { grid-template-columns: 1.2fr 1fr; gap: 80px; } }
.module-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.module {
  background: var(--cauxe-white);
  border: 1px solid var(--cauxe-gray-light);
  border-radius: var(--r-md);
  padding: 20px;
  transition: all 0.3s ease;
}
.module:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--cauxe-flow-light); }
.module-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--cauxe-sand-2); color: var(--cauxe-flow); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.module-name { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--cauxe-deep); margin-bottom: 4px; }
.module-desc { font-size: 12px; color: var(--cauxe-gray); line-height: 1.4; }

/* ============== INDUSTRIAS ============== */
.industria-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 700px) { .industria-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .industria-grid { grid-template-columns: repeat(3, 1fr); } }
.industria { background: var(--cauxe-white); border-radius: var(--r-lg); padding: 32px 28px; border: 1px solid var(--cauxe-gray-light); transition: all 0.4s ease; }
.industria:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--cauxe-flow-light); }
.industria-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cauxe-deep), var(--cauxe-flow));
  color: var(--cauxe-white);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.industria-name { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--cauxe-deep); margin-bottom: 10px; }
.industria-text { font-size: 14px; line-height: 1.6; color: var(--cauxe-charcoal); margin-bottom: 16px; }
.industria-case {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cauxe-flow);
  padding: 8px 12px;
  background: rgba(25, 118, 210, 0.08);
  border-radius: 8px;
  display: inline-block;
}

/* ============== DEVS ============== */
.devs::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent, rgba(0, 212, 255, 0.05) 50%, transparent),
    radial-gradient(circle at 70% 30%, rgba(0, 212, 255, 0.15), transparent 50%);
  pointer-events: none;
}
.devs .container { position: relative; z-index: 2; }
.devs-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: start; }
@media (min-width: 1024px) { .devs-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.endpoints { display: flex; flex-direction: column; gap: 12px; }
.endpoint {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 13px;
  transition: all 0.2s ease;
}
.endpoint:hover { border-color: var(--cauxe-spark); background: rgba(0, 212, 255, 0.05); }
.endpoint-method { font-size: 10px; padding: 3px 8px; border-radius: 4px; font-weight: 700; letter-spacing: 0.05em; }
.endpoint-method.get { background: rgba(0, 212, 255, 0.15); color: var(--cauxe-spark); }
.endpoint-method.post { background: rgba(80, 250, 123, 0.15); color: #50FA7B; }
.endpoint-method.put { background: rgba(255, 184, 108, 0.15); color: #FFB86C; }
.endpoint-method.del { background: rgba(255, 121, 198, 0.15); color: #FF79C6; }
.endpoint-path { color: rgba(255, 255, 255, 0.85); flex: 1; }
.endpoint-desc { color: rgba(255, 255, 255, 0.45); font-size: 11px; }
.dev-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }
@media (min-width: 600px) { .dev-stats { grid-template-columns: repeat(4, 1fr); } }
.dev-stat {
  padding: 20px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}
.dev-stat-num { font-family: var(--font-display); font-weight: 700; font-size: 28px; color: var(--cauxe-spark); line-height: 1; margin-bottom: 6px; }
.dev-stat-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.dev-portals { margin-top: 48px; display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 700px) { .dev-portals { grid-template-columns: repeat(3, 1fr); } }
.portal-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-md);
  transition: all 0.3s ease;
}
.portal-card:hover { border-color: var(--cauxe-spark); transform: translateY(-4px); background: rgba(0, 212, 255, 0.05); }
.portal-url { font-family: var(--font-mono); font-size: 14px; color: var(--cauxe-spark); margin-bottom: 8px; font-weight: 600; }
.portal-title { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--cauxe-white); margin-bottom: 6px; }
.portal-text { font-size: 13px; color: rgba(255, 255, 255, 0.65); line-height: 1.5; }

/* ============== PRECIOS ============== */
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 24px; }
@media (min-width: 768px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
.plan {
  background: var(--cauxe-white);
  border: 1px solid var(--cauxe-gray-light);
  border-radius: var(--r-lg);
  padding: 40px 32px;
  position: relative;
  transition: all 0.4s ease;
}
.plan:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); border-color: var(--cauxe-flow-light); }
.plan.featured {
  background: linear-gradient(180deg, var(--cauxe-deep), var(--cauxe-deep-2));
  color: var(--cauxe-white);
  border-color: var(--cauxe-spark);
  transform: scale(1.03);
  box-shadow: 0 30px 60px rgba(0, 212, 255, 0.2);
}
.plan.featured:hover { transform: scale(1.03) translateY(-8px); }
.plan-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--cauxe-spark);
  color: var(--cauxe-deep);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.plan-name { font-family: var(--font-display); font-weight: 700; font-size: 24px; margin-bottom: 8px; }
.plan.featured .plan-name { color: var(--cauxe-white); }
.plan-for {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cauxe-flow);
  margin-bottom: 24px;
}
.plan.featured .plan-for { color: var(--cauxe-spark); }
.plan-price { font-family: var(--font-display); font-weight: 700; font-size: 48px; color: var(--cauxe-deep); line-height: 1; letter-spacing: -0.03em; margin-bottom: 6px; }
.plan.featured .plan-price { color: var(--cauxe-white); }
.plan-price small { font-size: 18px; color: var(--cauxe-gray); font-weight: 500; }
.plan.featured .plan-price small { color: rgba(255, 255, 255, 0.6); }
.plan-period { font-size: 13px; color: var(--cauxe-gray); margin-bottom: 32px; }
.plan.featured .plan-period { color: rgba(255, 255, 255, 0.6); }
.plan-features { margin: 0 0 32px; }
.plan-features li {
  font-size: 13px;
  padding: 10px 0 10px 26px;
  position: relative;
  border-bottom: 1px dashed var(--cauxe-gray-light);
  line-height: 1.5;
}
.plan.featured .plan-features li { border-bottom-color: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.85); }
.plan-features li:last-child { border-bottom: 0; }
.plan-features li::before {
  content: '';
  position: absolute;
  left: 0; top: 13px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--cauxe-success-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 11px;
  background-repeat: no-repeat;
  background-position: center;
}
.plan.featured .plan-features li::before {
  background-color: rgba(0, 212, 255, 0.2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300D4FF' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.plan-btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  transition: all 0.3s ease;
  display: block;
  cursor: pointer;
}
.plan-btn.outline { background: transparent; color: var(--cauxe-deep); border: 1px solid var(--cauxe-deep); }
.plan-btn.outline:hover { background: var(--cauxe-deep); color: var(--cauxe-white); }
.plan-btn.solid { background: var(--cauxe-spark); color: var(--cauxe-deep); }
.plan-btn.solid:hover { background: var(--cauxe-white); }

/* ============== CERTIFICACIONES ============== */
.certs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (min-width: 700px) { .certs-grid { grid-template-columns: repeat(4, 1fr); } }
.cert {
  background: var(--cauxe-white);
  border: 1px solid var(--cauxe-gray-light);
  border-radius: var(--r-md);
  padding: 28px 20px;
  text-align: center;
  transition: all 0.3s ease;
}
.cert:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--cauxe-flow-light); }
.cert-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cauxe-deep), var(--cauxe-flow));
  color: var(--cauxe-white);
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
}
.cert-name { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--cauxe-deep); margin-bottom: 6px; line-height: 1.2; }
.cert-status {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cauxe-flow);
}
.cert-status.progress { color: var(--cauxe-warn); }
.cert-status.active { color: var(--cauxe-success); }
.cert-desc { font-size: 12px; color: var(--cauxe-gray); margin-top: 10px; line-height: 1.45; }

/* ============== CASOS ============== */
.casos-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 900px) { .casos-grid { grid-template-columns: repeat(3, 1fr); } }
.caso {
  background: var(--cauxe-sand-2);
  border-radius: var(--r-lg);
  padding: 32px;
  border: 1px solid var(--cauxe-gray-light);
  transition: all 0.3s ease;
}
.caso:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.caso-stars { color: #FFB400; font-size: 14px; letter-spacing: 2px; margin-bottom: 12px; }
.caso-quote-mark { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 56px; color: var(--cauxe-spark); line-height: 0.7; margin-bottom: 8px; }
.caso-quote { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 17px; color: var(--cauxe-deep); line-height: 1.45; margin-bottom: 24px; }
.caso-metric {
  background: linear-gradient(135deg, var(--cauxe-flow), var(--cauxe-spark));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 42px;
  line-height: 1;
  margin-bottom: 4px;
}
.caso-metric-label { font-size: 13px; color: var(--cauxe-charcoal); margin-bottom: 20px; }
.caso-author { padding-top: 20px; border-top: 1px solid var(--cauxe-gray-light); display: flex; align-items: center; gap: 12px; }
.caso-author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cauxe-deep), var(--cauxe-flow));
  color: var(--cauxe-white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
}
.caso-author-name { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--cauxe-deep); }
.caso-author-role { font-size: 11px; color: var(--cauxe-gray); font-family: var(--font-mono); }

/* ============== EQUIPO ============== */
.equipo-grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-top: 24px; }
@media (min-width: 768px) { .equipo-grid { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 24px auto 0; } }
.founder {
  background: var(--cauxe-white);
  border: 1px solid var(--cauxe-gray-light);
  border-radius: var(--r-xl);
  padding: 40px 32px;
  text-align: center;
  transition: all 0.4s ease;
}
.founder:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); border-color: var(--cauxe-flow-light); }
.founder-avatar { width: 160px; height: 160px; margin: 0 auto 24px; border-radius: 50%; overflow: hidden; box-shadow: var(--shadow-lg); }
.founder-name { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--cauxe-deep); margin-bottom: 6px; letter-spacing: -0.01em; }
.founder-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cauxe-flow);
  margin-bottom: 16px;
}
.founder-bio { font-size: 14px; color: var(--cauxe-charcoal); line-height: 1.65; max-width: 320px; margin: 0 auto 20px; }
.founder-social { display: flex; justify-content: center; gap: 12px; }
.founder-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--cauxe-white);
  border: 1px solid var(--cauxe-gray-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--cauxe-gray);
  transition: all 0.2s ease;
}
.founder-social a:hover { background: var(--cauxe-flow); color: white; border-color: var(--cauxe-flow); transform: translateY(-2px); }

/* ============== NEWSLETTER ============== */
.newsletter { background: var(--cauxe-white); border-top: 1px solid var(--cauxe-gray-light); padding: 80px 0; }
.news-wrap {
  background: linear-gradient(135deg, var(--cauxe-deep), var(--cauxe-deep-2));
  border-radius: var(--r-xl);
  padding: 56px 48px;
  color: var(--cauxe-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.news-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(0, 212, 255, 0.15), transparent 60%);
  pointer-events: none;
}
.news-content { position: relative; z-index: 2; max-width: 600px; margin: 0 auto; }
.news-eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cauxe-spark); margin-bottom: 16px; }
.news-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3.5vw, 38px); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 16px; }
.news-text { color: rgba(255, 255, 255, 0.7); margin-bottom: 32px; font-size: 15px; line-height: 1.55; }
.news-form { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; max-width: 500px; margin: 0 auto; }
.news-input {
  flex: 1; min-width: 240px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--cauxe-white);
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-size: 14px;
  transition: all 0.2s ease;
}
.news-input:focus { outline: none; border-color: var(--cauxe-spark); background: rgba(0, 212, 255, 0.08); }
.news-input::placeholder { color: rgba(255, 255, 255, 0.4); }
.news-submit {
  background: var(--cauxe-spark);
  color: var(--cauxe-deep);
  padding: 14px 28px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}
.news-submit:hover { background: var(--cauxe-white); transform: translateY(-2px); }
.news-disclaimer { font-size: 11px; color: rgba(255, 255, 255, 0.4); margin-top: 16px; }

/* ============== CONTACTO ============== */
.contacto::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.15), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(25, 118, 210, 0.2), transparent 50%);
  pointer-events: none;
}
.contacto .container { position: relative; z-index: 2; }
.contacto-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 1024px) { .contacto-grid { grid-template-columns: 1.2fr 1fr; gap: 64px; } }
.info { display: flex; flex-direction: column; gap: 20px; }
.info-card {
  padding: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-md);
  display: flex; gap: 14px; align-items: flex-start;
  transition: all 0.3s ease;
}
.info-card:hover { background: rgba(0, 212, 255, 0.05); border-color: var(--cauxe-spark); }
.info-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(0, 212, 255, 0.15);
  color: var(--cauxe-spark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.info-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cauxe-spark);
  margin-bottom: 4px;
}
.info-content { font-size: 13px; color: rgba(255, 255, 255, 0.9); line-height: 1.5; }
.info-content a { color: var(--cauxe-white); }
.info-content a:hover { color: var(--cauxe-spark); }
#map { height: 280px; border-radius: var(--r-md); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); }
.leaflet-container { background: var(--cauxe-deep-2) !important; }

/* ============== CHAT WIDGET ============== */
.chat-widget { position: fixed; bottom: 24px; right: 24px; z-index: 90; }
.chat-bubble {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--cauxe-flow), var(--cauxe-spark));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--cauxe-white);
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(25, 118, 210, 0.4);
  transition: all 0.3s ease;
  position: relative;
  border: none;
}
.chat-bubble:hover { transform: scale(1.08); }
.chat-bubble::before {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--cauxe-spark);
  opacity: 0;
  animation: chatPulse 2s ease-in-out infinite;
}
@keyframes chatPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}
.chat-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--cauxe-danger);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid white;
}
.chat-panel {
  position: absolute;
  bottom: 80px; right: 0;
  width: 360px;
  max-width: calc(100vw - 48px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background: var(--cauxe-white);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 64px rgba(10, 31, 68, 0.25);
  overflow: hidden;
  display: flex; flex-direction: column;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  visibility: hidden;
  transform-origin: bottom right;
  transition: all 0.3s ease;
}
.chat-panel.open { transform: scale(1) translateY(0); opacity: 1; visibility: visible; }
.chat-head {
  background: linear-gradient(135deg, var(--cauxe-deep), var(--cauxe-flow));
  color: var(--cauxe-white);
  padding: 20px;
  display: flex; align-items: center; gap: 12px;
}
.chat-head-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--cauxe-spark);
  display: flex; align-items: center; justify-content: center;
  color: var(--cauxe-deep);
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 20px;
}
.chat-head-name { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.chat-head-status { font-size: 11px; opacity: 0.8; display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.chat-head-status::before { content: ''; width: 7px; height: 7px; background: #4CD964; border-radius: 50%; }
.chat-head-close { margin-left: auto; cursor: pointer; opacity: 0.8; padding: 6px; background: none; border: none; color: white; }
.chat-head-close:hover { opacity: 1; }
.chat-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: var(--cauxe-sand-2);
  display: flex; flex-direction: column; gap: 10px;
}
.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
}
.chat-msg.bot { background: var(--cauxe-white); color: var(--cauxe-charcoal); align-self: flex-start; border-bottom-left-radius: 4px; box-shadow: var(--shadow-sm); }
.chat-msg.user { background: var(--cauxe-flow); color: white; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 8px; }
.chat-quick button {
  font-size: 11px;
  background: var(--cauxe-white);
  color: var(--cauxe-flow);
  border: 1px solid var(--cauxe-flow);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}
.chat-quick button:hover { background: var(--cauxe-flow); color: white; }
.chat-typing {
  display: flex; gap: 4px;
  padding: 12px 14px;
  background: var(--cauxe-white);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  width: fit-content;
  box-shadow: var(--shadow-sm);
}
.chat-typing span {
  width: 6px; height: 6px;
  background: var(--cauxe-gray);
  border-radius: 50%;
  animation: typingBounce 1.2s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}
.chat-input { display: flex; gap: 8px; padding: 14px; border-top: 1px solid var(--cauxe-gray-light); background: var(--cauxe-white); }
.chat-input input {
  flex: 1;
  border: 1px solid var(--cauxe-gray-light);
  border-radius: var(--r-pill);
  padding: 10px 16px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease;
}
.chat-input input:focus { border-color: var(--cauxe-flow); }
.chat-input button {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--cauxe-flow);
  color: white;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  border: none;
}
.chat-input button:hover { background: var(--cauxe-deep); }
