/* Calculadora de caída de tensión (2026-09-30). Estilos propios: output.css (Tailwind compilado) no trae todas las
   utilidades y en LXC105 no se puede recompilar. */
.cdt-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 1024px) { .cdt-grid { grid-template-columns: 3fr 2fr; align-items: start; } .cdt-sticky { position: sticky; top: 5rem; } }
.cdt-card { border: 1px solid #e2e8f0; background: #fff; border-radius: 1rem; padding: 1.25rem; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
@media (min-width: 640px) { .cdt-card { padding: 1.5rem; } }
.cdt-fila { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .cdt-fila { grid-template-columns: 1fr 1fr; } .cdt-fila3 { grid-template-columns: 1fr 1fr 1fr; } }
.cdt-bloque + .cdt-bloque { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid #f1f5f9; }
.cdt-bloque-titulo { font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #64748b; margin-bottom: .75rem; }
.cdt-seg { display: inline-flex; border: 1px solid #cbd5e1; border-radius: .5rem; overflow: hidden; margin-top: .25rem; }
.cdt-seg input { position: absolute; opacity: 0; pointer-events: none; }
.cdt-seg label { padding: .5rem .9rem; font-size: .875rem; cursor: pointer; color: #334155; background: #fff; user-select: none; }
.cdt-seg label + input + label { border-left: 1px solid #cbd5e1; }
.cdt-seg input:checked + label { background: #2540cc; color: #fff; }
.cdt-seg input:focus-visible + label { outline: 2px solid #3457f2; outline-offset: -2px; }
.cdt-estado { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .05em; padding: .25rem .6rem; border-radius: 999px; }
.cdt-ok { background: #d1fae5; color: #065f46; }
.cdt-ko { background: #fee2e2; color: #991b1b; }
.cdt-grande { font-size: 2.5rem; line-height: 1.1; font-weight: 700; color: #0f172a; font-variant-numeric: tabular-nums; }
.cdt-barra { height: .5rem; background: #f1f5f9; border-radius: 999px; overflow: hidden; margin-top: .75rem; }
.cdt-barra-fill { height: 100%; border-radius: 999px; transition: width .2s; }
.cdt-ok-bg { background: #10b981; }
.cdt-ko-bg { background: #ef4444; }
.cdt-datos { margin-top: 1rem; display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; font-size: .875rem; }
.cdt-datos dt { color: #64748b; }
.cdt-datos dd { color: #0f172a; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.cdt-formula { margin-top: 1rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .75rem; color: #475569; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: .5rem; padding: .6rem .75rem; overflow-wrap: anywhere; }
.cdt-avisos { margin-top: 1rem; list-style: disc; padding-left: 1.25rem; font-size: .8rem; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: .5rem; padding: .6rem .75rem .6rem 1.75rem; }
.cdt-avisos li + li { margin-top: .25rem; }
.cdt-notas { font-size: .875rem; color: #475569; line-height: 1.6; }
.cdt-notas li { margin-top: .4rem; }
.cdt-notas ul { list-style: disc; padding-left: 1.25rem; }
.cdt-tabla { width: 100%; font-size: .8rem; border-collapse: collapse; margin-top: .5rem; }
.cdt-tabla th, .cdt-tabla td { text-align: left; padding: .35rem .5rem; border-bottom: 1px solid #f1f5f9; }
.cdt-tabla th { color: #64748b; font-weight: 600; }
.cdt-tabla td:nth-child(2) { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cdt-banda { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
@media (min-width: 640px) { .cdt-banda { flex-direction: row; align-items: center; justify-content: space-between; } }
/* v2 (auditoría 30-09) */
.cdt-seg { position: relative; }
.cdt-tabla td:nth-child(3) { white-space: nowrap; }
.cdt-sub { display: block; font-size: .75rem; color: #64748b; font-weight: 400; }
.cdt-flotante { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 40; display: none; align-items: center; justify-content: space-between; gap: .75rem;
  background: #fff; border: 1px solid #e2e8f0; border-radius: .9rem; padding: .7rem 1rem; box-shadow: 0 10px 25px rgba(15,23,42,.15); cursor: pointer; font: inherit; text-align: left; }
.cdt-flotante strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; margin-right: auto; }
.cdt-flotante-on { display: flex; }
@media (min-width: 1024px) { .cdt-flotante-on { display: none; } }
.cdt-check { color: #334155; }
/* v5 (SEO y ganchos, 30-09) */
.cdt-acciones { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.cdt-acciones .btn-secondary { padding: .5rem .9rem; }
.cdt-faq { margin-top: .75rem; }
.cdt-faq details { border-top: 1px solid #f1f5f9; padding: .75rem 0; }
.cdt-faq details:first-child { border-top: 0; }
.cdt-faq summary { cursor: pointer; font-weight: 600; color: #0f172a; font-size: .95rem; }
.cdt-faq summary:focus-visible { outline: 2px solid #3457f2; outline-offset: 2px; border-radius: .25rem; }
.cdt-faq p { margin-top: .5rem; color: #475569; font-size: .9rem; line-height: 1.6; }
.cdt-enlace { color: #2540cc; text-decoration: underline; text-underline-offset: 2px; }
.cdt-cta { background: #eef4ff; border-color: #b8ceff; }
