/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* --------- Modo oscuro aplicado SOLO en Mi Cuenta --------- */
body.woocommerce-account .woocommerce-MyAccount-navigation,
body.woocommerce-account .woocommerce-MyAccount-content,
body.woocommerce-account .woocommerce {
	color:#e5e7eb;
}

.ia-chip-days {
    display: inline-block;
    /* background: rgba(16, 185, 129, 0.15); */
    color: #34d399;
    /* font-weight: 700; */
    /* margin-left: 8px; */
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.85em;
    vertical-align: middle;
    /* border: 1px solid rgba(52, 211, 153, 0.3); */
}

.ia-metrics-info li { line-height: 20px; margin: 10px 0 0 0 !important; color: #666666;}
.ia-keywords input { font-size: .775rem; }
input#wc_programa_url { font-size: .775rem; }
button.button.button--ia.js-bia-submit { margin-top: 30px; margin-bottom: 30px; }
button, input, optgroup, select, textarea { font-size: .775rem; }

/* ===== Mejoras de legibilidad móvil ===== */
@media (max-width: 640px){
  .ia-accordion .ia-acc-head { align-items:flex-start; }
  .ia-accordion .ia-acc-keyword{
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
    line-height: 1.2;
  }
  .ia-accordion .ia-acc-num{ margin-top:2px; }
}

/* Menú lateral */
body.woocommerce-account .woocommerce-MyAccount-navigation {
	background:#17191c; border:1px solid rgba(148,163,184,.25); border-radius:12px; padding:10px 0; font-size:.775rem;
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul{ list-style:none; margin:0; padding:0; font-size:.775rem; }
body.woocommerce-account .woocommerce-MyAccount-navigation li a{
	display:block; padding:12px 16px; color:#666666 !important; text-decoration:none; border-left:3px solid transparent; font-size:.775rem;
}
body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
body.woocommerce-account .woocommerce-MyAccount-navigation li a:hover{
	color:#f8fafc !important; background:rgba(59,130,246,.08); border-left-color:#3b82f6;
}

/* Contenido */
body.woocommerce-account .woocommerce-MyAccount-content{
	background:#17191C; border:1px solid rgba(148,163,184,.25); border-radius:12px; padding:18px; font-size:.775rem;
}

/* Tablas / Formularios / Enlaces (dentro de Mi Cuenta) */
body.woocommerce-account .woocommerce table.shop_table,
body.woocommerce-account .woocommerce table.shop_table th,
body.woocommerce-account .woocommerce table.shop_table td{
	background:transparent; color:#e5e7eb; border-color:rgba(148,163,184,.25);
}
body.woocommerce-account .woocommerce table.shop_table thead th{
	color:#f8fafc; background:rgba(148,163,184,.08);
}
body.woocommerce-account .woocommerce form .form-row label{ color:#e5e7eb; }
body.woocommerce-account .woocommerce input[type="text"],
body.woocommerce-account .woocommerce input[type="email"],
body.woocommerce-account .woocommerce input[type="password"],
body.woocommerce-account .woocommerce input[type="url"],
body.woocommerce-account .woocommerce textarea,
body.woocommerce-account .woocommerce select,
body.woocommerce-account .select2-container .select2-selection--single{
	background:rgba(2,6,23,.5); border:1px solid rgba(148,163,184,.35); color:#f1f5f9; border-radius:10px;
}
body.woocommerce-account .select2-container .select2-selection--single .select2-selection__rendered{ color:#f1f5f9; }

body.woocommerce-account .woocommerce a,
body.woocommerce-account .woocommerce-MyAccount-content a{ color:#93c5fd; }
body.woocommerce-account .woocommerce a:hover,
body.woocommerce-account .woocommerce-MyAccount-content a:hover{ color:#bfdbfe; }

/* Avisos */
body.woocommerce-account .woocommerce-error,
body.woocommerce-account .woocommerce-info,
body.woocommerce-account .woocommerce-message{
	border-radius:10px; color:#e5e7eb;
}
body.woocommerce-account .woocommerce-error   { background:rgba(244,63,94,.12);  border-color:rgba(244,63,94,.35); }
body.woocommerce-account .woocommerce-info    { background:rgba(59,130,246,.12); border-color:rgba(59,130,246,.35); }
body.woocommerce-account .woocommerce-message { background:rgba(16,185,129,.12); border-color:rgba(16,185,129,.35); }

/* Botones Woo (solo Mi Cuenta) */
body.woocommerce-account .woocommerce a.button,
body.woocommerce-account .woocommerce button.button,
body.woocommerce-account .woocommerce input.button,
body.woocommerce-account .woocommerce #respond input#submit{
	background:linear-gradient(90deg,#3b82f6,#22c55e) !important; color:#fff !important; border:none !important;
	border-radius:999px !important; padding:11px 16px !important; font-weight:500 !important; box-shadow:0 8px 20px rgba(56,189,248,.25) !important;
	white-space:normal;
}
body.woocommerce-account .woocommerce a.button:hover,
body.woocommerce-account .woocommerce button.button:hover,
body.woocommerce-account .woocommerce input.button:hover,
body.woocommerce-account .woocommerce #respond input#submit:hover{
	filter:brightness(1.05); transform:translateY(-1px);
}

/* Paginación (solo Mi Cuenta) */
body.woocommerce-account .woocommerce nav.woocommerce-pagination ul{ border-color:rgba(148,163,184,.25); }
body.woocommerce-account .woocommerce nav.woocommerce-pagination ul li span,
body.woocommerce-account .woocommerce nav.woocommerce-pagination ul li a{
	color:#e5e7eb; background:#1c1e21; border-color:rgba(148,163,184,.25);
}
body.woocommerce-account .woocommerce nav.woocommerce-pagination ul li a:hover,
body.woocommerce-account .woocommerce nav.woocommerce-pagination ul li span.current{
	background:rgba(59,130,246,.12); border-color:#3b82f6;
}

/* Viñetas visibles */
body.woocommerce-account .woocommerce-MyAccount-content ul,
body.woocommerce-account .woocommerce-MyAccount-content ol{ margin-left:1.2em; }
body.woocommerce-account .woocommerce-MyAccount-content ul li::marker,
body.woocommerce-account .woocommerce-MyAccount-content ol li::marker{ color:#93c5fd; }

/* ---------- UI IA Studio (solo Mi Cuenta) ---------- */
body.woocommerce-account .woocommerce-MyAccount-content .ia-card{
	background:#1d1f22; border-radius:14px; padding:24px; color:#e2e8f0; font-size:.775rem;
	box-shadow:0 8px 30px rgba(2,6,23,.35); margin:12px 0 24px; overflow:visible; position:relative;
}
body.woocommerce-account .woocommerce-MyAccount-content .ia-card::before{
	content:""; position:absolute; inset:-1px;
	background:radial-gradient(1200px 200px at -10% -20%, rgba(59,130,246,.25), transparent 40%),
	           radial-gradient(800px 160px at 120% 0%, rgba(16,185,129,.2), transparent 40%);
	pointer-events:none; border-radius: 14px;
}
.ia-header{ display:flex; align-items:center; gap:14px; margin-bottom:10px; }
@media (max-width:680px){ .ia-header{ flex-direction: column; } }
.ia-badge{ display:inline-flex; gap:8px; background:rgba(16,185,129,.15); color:#34d399; border:1px solid rgba(52,211,153,.3);
	padding:6px 10px; border-radius:999px; font-weight:600; font-size:.775rem; letter-spacing:.3px; }
.ia-title{ margin:0; font-size:.775rem; line-height:1.2; color:#f8fafc; }
.ia-sub{ margin:.25rem 0 1rem; color:#94a3b8; }
.ia-grid{ display:grid; grid-template-columns:1fr; gap:14px; }
/*@media (min-width:680px){ .ia-grid{ grid-template-columns:1fr 1fr; } }*/

.ia-field label{ display:block; font-weight:600; font-size:.775rem; margin:6px 0 6px; color:#e5e7eb; }
.ia-input, .ia-input:focus{ width:100%; padding:12px 14px; border-radius:10px; border:1px solid rgba(148,163,184,.35); background:rgba(2,6,23,.5); color:#f1f5f9; outline:none; }
.ia-help{ font-size:.775rem; color:#94a3b8; margin-top:6px; }
.ia-actions{ display:flex; align-items:center; gap:20px; margin-top: 40px; margin-bottom: 40px; flex-wrap:wrap; }

/* Botón IA + fixes móviles */
body.woocommerce-account .woocommerce-MyAccount-content .button.button--ia{
	display:inline-flex; gap:10px; align-items:center; justify-content:center; padding:12px 18px; border-radius:999px; font-weight:700;
	background:linear-gradient(90deg,#3b82f6,#22c55e) !important; border:none !important; color:#fff !important; text-decoration:none !important;
	box-shadow:0 8px 20px rgba(56,189,248,.25) !important; max-width:100%; font-size:.775rem; border-radius: .375rem !important; align-items: baseline;
}
body.woocommerce-account .woocommerce-MyAccount-content .button.button--ia:hover{ filter:brightness(1.05); transform:translateY(-1px); }
body.woocommerce-account .woocommerce-MyAccount-content .button.button--ghost{
	background:#10B98126 !important; border:1px solid rgba(148, 163, 184, .35) !important; color:#34D399 !important; font-size:.775rem; border-radius:.375rem !important; box-shadow:none !important;
}
@media (max-width:560px){
  .ia-actions .button{ width:100%; text-align:center; }
}

/* Inputs keywords */
.ia-keywords{ display:grid; grid-template-columns:1fr; gap:10px; }
@media (min-width:680px){ .ia-keywords{ grid-template-columns:repeat(3,1fr); } }

/* Progreso / Planes */
.ia-progress{ background:#1c1e21; border:1px solid rgba(148,163,184,.2); border-radius:12px; padding:18px; margin-top:14px; }
.ia-steps{ list-style:none; padding:0; margin:0; }
.ia-steps li{ display:flex; align-items:center; gap:10px; padding:8px 0; color:#cbd5e1; }
.ia-dot{ width:10px; height:10px; border-radius:999px; background:#475569; display:inline-block; }
.ia-step--done .ia-dot{ background:#22c55e; box-shadow:0 0 0 2px rgba(34,197,94,.35); }
.ia-progressbar{ height:8px; background:#111827; border-radius:999px; overflow:hidden; margin-top:10px; }
.ia-progressbar > span{ display:block; height:100%; width:0%; background:linear-gradient(90deg,#3b82f6,#22c55e); transition:width .6s ease; }
.ia-plans{ display:grid; grid-template-columns:1fr; gap:14px; margin-top:18px; }
@media (min-width:800px){ .ia-plans{ grid-template-columns:repeat(3,1fr);} }
.ia-plan{ background:#1c1e21; border:1px solid rgba(148,163,184,.25); border-radius:12px; padding:16px; }
.ia-plan h3{ margin:0 0 6px; color:#f8fafc; font-size:1.1rem; }
.ia-price{ font-weight:800; font-size:.775rem; color:#e2e8f0; }
.ia-plan ul{ margin:10px 0 14px 18px; color:#cbd5e1; }

/* Summary */
.ia-summary{ background:#1d1f22; border-radius:14px; padding:18px; color:#e2e8f0; box-shadow:0 8px 30px rgba(2,6,23,.25); }
.ia-chip{ display:inline-block; padding:6px 10px; border-radius:999px; border:1px solid rgba(148,163,184,.35); margin:14px 6px 0 0; font-size:.775rem; color:#e2e8f0; }
.ia-spark{ width:100%; height:70px; }
.ia-summary-row{ display:grid; grid-template-columns:1fr; gap:12px; }
@media (min-width:800px){ .ia-summary-row{ grid-template-columns:2fr 1fr; } }

/* === Actividad: columna (gráfico arriba, checklist debajo) === */
.ia-activity{ display:flex; flex-direction:column; gap:18px; margin-top:16px; }

/* Tarjetas */
.ia-heat, .ia-platforms{ background:#1c1e21; border:1px solid rgba(148,163,184,.25); border-radius:12px; padding:16px; }
.ia-heat h4, .ia-platforms h4{ margin:0 0 12px; color:#f8fafc; font-size:1.1rem; }

/* Barras 28 días con etiquetas */
.ia-bars{
  display:grid; grid-template-columns:repeat(28, minmax(6px,1fr));
  gap:6px; align-items:end; height:150px; padding:10px 8px 30px;
  background:#1c1e21; border-radius:10px; border:1px solid rgba(148,163,184,.15);
  overflow:visible;
}
.ia-bars span{ background:#1f2937; border-radius:6px 6px 0 0; position:relative; min-width:6px; }
.ia-bars span i{
  position:absolute; left:50%; transform:translateX(-50%); bottom:-24px;
  display:flex; flex-direction:column; align-items:center; gap:2px;
  font-size:.775rem; color:#94a3b8; line-height:1; white-space:nowrap;
}
.ia-bars span i .dnum{ font-weight:700; color:#cbd5e1; }
.ia-bars span i .ddow{ opacity:.9; }

/* Móvil: menos etiquetas */
@media (max-width:900px){
  .ia-bars{ height:120px; gap:4px; padding:8px 6px 26px; }
  .ia-bars span i{ display:none; }
  .ia-bars span:nth-child(7n) i{ display:flex; }
  .ia-bars span:last-child i{ display:flex; }
}

/* Checklist / filas */
.ia-platforms{ display:flex; flex-direction:column; gap:12px; }
.ia-platforms .ia-row{
  display:flex; align-items:flex-start; justify-content:space-between;
  column-gap:14px; row-gap:8px; padding:12px 0; border-bottom:1px dashed rgba(148,163,184,.22);
}
.ia-platforms .ia-row:last-child{ border-bottom:none; }

/* Chips de plataforma */
.ia-platforms .ia-tag{
  flex:0 0 auto; display:inline-flex; align-items:center; gap:6px;
  padding:8px 12px; border-radius:999px; font-weight:700; font-size:.775rem; line-height:1; border:1px solid transparent; white-space:nowrap;
}
.ia-platforms .ia-tag.tag-gpt   { background:rgba(59,130,246,.15);  color:#93c5fd;  border-color:rgba(59,130,246,.35); }
.ia-platforms .ia-tag.tag-gemini{ background:rgba(16,185,129,.15);  color:#86efac;  border-color:rgba(16,185,129,.35); }
.ia-platforms .ia-tag.tag-perp  { background:rgba(234,179,8,.15);   color:#fde68a;  border-color:rgba(234,179,8,.35); }
.ia-platforms .ia-tag.tag-over  { background:rgba(147,51,234,.15);  color:#d8b4fe;  border-color:rgba(147,51,234,.35); }
.ia-platforms .ia-tag.tag-cop   { background:rgba(244,63,94,.15);   color:#fca5a5;  border-color:rgba(244,63,94,.35); }

/* Texto de tarea y contador */
.ia-platforms .ia-task{ flex:1 1 auto; min-width:0; font-size:.775rem; color:#cbd5e1; }
.ia-platforms .ia-count{ flex:0 0 auto; font-weight:800; text-align:right; min-width:26px; }
@media (max-width:540px){ .ia-platforms .ia-row{ flex-wrap:wrap; } .ia-platforms .ia-count{ margin-left:auto; } }

/* Checks */
.ia-checks{ display:inline-flex; gap:4px; margin-right:6px; vertical-align:middle; }
.ia-check{
  display:inline-flex; align-items:center; justify-content:center; width:18px; height:18px; border-radius:999px;
  position:relative; background:rgba(34,197,94,.15); border:1px solid rgba(34,197,94,.35);
}
.ia-check::before{
  content:""; width:8px; height:8px; border-radius:2px; transform:rotate(45deg);
  border-right:2px solid #22c55e; border-bottom:2px solid #22c55e;
}

/* Badges pequeñas */
.ia-kpi{ display:inline-flex; align-items:center; gap:6px; padding:6px 10px; margin:4px; border-radius:999px; border:1px solid rgba(148,163,184,.28); background:#1c1e21; color:#e2e8f0; font-size:.775rem; }

/* Glosario */
.ia-metrics-info{ margin:12px 0 10px; line-height:2.6; color:#cbd5e1; }

/* ===== Log ===== */
.ia-log { display:grid; grid-template-columns:1fr; gap:10px; }
.ia-log .row{
	background:#1c1e21; border:1px solid rgba(148,163,184,.25); border-radius:10px; padding:12px; display:grid;
	grid-template-columns: 1fr auto; gap:10px; align-items:center;
}
.ia-log .row .meta{ font-size:.775rem; color:#94a3b8; }
.ia-log .row .txt{ color:#e2e8f0; }
.ia-log .row .badge{ font-size:.775rem; padding:4px 8px; border-radius:999px; border:1px solid rgba(148,163,184,.35); }
.ia-log .row .badge.type-info{ background:rgba(59,130,246,.12); }
.ia-log .row .badge.type-success{ background:rgba(16,185,129,.12); }
.ia-log .row .badge.type-warning{ background:rgba(234,179,8,.12); }
.ia-log .row .badge.type-error{ background:rgba(244,63,94,.12); }
.ia-log .row .ctx{ font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; font-size:.775rem; color:#cbd5e1; word-break:break-all; }

/* Paginación del log */
.ia-log-pager{ display:flex; gap:8px; align-items:center; justify-content:space-between; margin-top:10px; }
.ia-log-pager .pages{ font-size:.775rem; color:#94a3b8; }

/* Badge de categoría (intención) */
.ia-cat{
  display:inline-block;
  padding:4px 10px;
  border-radius:999px;
  font-size:.775rem;
  font-weight:700;
  line-height:1;
  border:1px solid transparent;
  white-space:nowrap;
}

/* Colores por intención */
.ia-cat--informacional{ background:rgba(59,130,246,.15); color:#93c5fd; border-color:rgba(59,130,246,.35); }
.ia-cat--transaccional{ background:rgba(16,185,129,.15); color:#86efac; border-color:rgba(16,185,129,.35); }
.ia-cat--comparativa{ background:rgba(147,51,234,.15); color:#d8b4fe; border-color:rgba(147,51,234,.35); }
.ia-cat--local{ background:rgba(234,179,8,.15); color:#fde68a; border-color:rgba(234,179,8,.35); }
.ia-cat--problema-solucion{ background:rgba(244,63,94,.15); color:#fca5a5; border-color:rgba(244,63,94,.35); }
.ia-cat--desconocida{ background:rgba(148,163,184,.12); color:#e5e7eb; border-color:rgba(148,163,184,.28); }

/* === CSS global overlay (nuevo, único) === */
body.ia-no-scroll { overflow: hidden; }
.ia-overlay-global{
  position:fixed; inset:0; display:none; align-items:center; justify-content:center;
  background:rgba(2,6,23,.65); z-index:9999;
  backdrop-filter:saturate(120%) blur(2px);
}
.ia-overlay-global__box{
  background:#1c1e21; border:1px solid rgba(148,163,184,.3);
  padding:16px 18px; border-radius:12px; text-align:center; color:#e5e7eb; width:min(92vw,420px);
}
.ia-spinner{
  width:28px; height:28px; border-radius:50%;
  border:3px solid rgba(148,163,184,.35); border-top-color:#3b82f6;
  animation:ia-spin 1s linear infinite; margin:0 auto;
}
.ia-overlay-global__txt{ margin-top:8px; font-weight:700; }
.ia-overlay-global__steps{
  margin-top:10px; text-align:left; max-height:180px; overflow:auto;
  border-top:1px solid rgba(148,163,184,.2); padding-top:10px;
}
.ia-overlay-global__steps p{
  margin:.25rem 0; font-size:.775rem; color:#cbd5e1; opacity:.9; animation:ia-fade .45s ease;
}
@keyframes ia-spin{ to { transform:rotate(360deg);} }
@keyframes ia-fade{ from{opacity:0; transform:translateY(3px);} to{opacity:1; transform:translateY(0);} }
.button.is-busy,[type=submit].is-busy{ opacity:.8; pointer-events:none; }

/* === Estilos mínimos del acordeón (encajan con tu UI) === */
.ia-accordion .ia-acc-item{ border:1px solid rgba(148,163,184,.22); border-radius:10px; margin:8px 0; background:#1c1e21; }
.ia-acc-head{
  width:100%; text-align:left; display:flex; align-items:center; gap:10px;
  background:transparent; border:0; padding:12px 14px; cursor:pointer; color:#e2e8f0; font-weight:700;
}
.ia-acc-head:hover{ background:rgba(148,163,184,.08); }
.ia-acc-num{
  flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:999px;
  border:1px solid rgba(148,163,184,.35); font-size:.825rem;
}
.ia-acc-keyword{ flex:1 1 auto; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ia-acc-count{ flex:0 0 auto; font-size:.775rem; color:#94a3b8; }
.ia-acc-panel{ padding:10px 14px 14px; border-top:1px dashed rgba(148,163,184,.22); }

