/* =============================================================
   Webiu.net — Hoja de estilos principal
   Estilos personalizados que complementan las utilidades de Tailwind.
   ============================================================= */

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #1e293b;
    overflow-x: hidden;
}

/* Color del texto seleccionado (CSS puro, no depende de Tailwind) */
::selection {
    background-color: #8b5cf6;
    color: #ffffff;
}
::-moz-selection {
    background-color: #8b5cf6;
    color: #ffffff;
}

/* Paneles tipo tarjeta (antes glassmorphism, ahora tema claro) */
.glass-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* Texto con gradiente de marca */
.text-gradient {
    background: linear-gradient(to right, #a78bfa, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Botones con gradiente de marca */
.btn-gradient {
    background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

/* Borde animado con brillo (hover) */
.glowing-border {
    position: relative;
}

.glowing-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #8b5cf6, #3b82f6, #22d3ee, #8b5cf6);
    z-index: -1;
    border-radius: inherit;
    background-size: 400%;
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.glowing-border:hover::before {
    opacity: 1;
}

@keyframes glowing {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

/* Animación de fondo tipo "blob" */
@keyframes blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Animación de aparición hacia arriba */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* =============================================================
   Cotizador / selector de paquetes
   ============================================================= */
.option-row.selected {
    border-color: #8b5cf6 !important;
    background-color: rgba(139, 92, 246, 0.1) !important;
}

.option-row.selected .check-circle {
    background-color: #8b5cf6;
    border-color: #8b5cf6;
    color: #fff;
}

/* Utilidad de accesibilidad: oculta visualmente pero deja disponible para lectores de pantalla */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =============================================================
   COTIZADOR POR PASOS
   ============================================================= */

/* ---------- Contenedor de cada paso ---------- */
.paso {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color .25s ease;
}

.paso.paso-abierto {
    border-color: rgba(139, 92, 246, .45);
}

.paso-cabecera {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: left;
    color: #0f172a;
}

.paso-cabecera:focus-visible {
    outline: 2px solid #22d3ee;
    outline-offset: -2px;
}

.paso-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .25s ease, color .25s ease;
}

/* Paso completado: palomita verde */
.paso.paso-listo .paso-num {
    background: #22c55e;
    color: #fff;
    font-size: 0;
}

.paso.paso-listo .paso-num::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 13px;
}

.paso-titulo {
    flex-grow: 1;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.paso-sub {
    font-weight: 400;
    color: #64748b;
}

.paso-flecha {
    flex-shrink: 0;
    color: #64748b;
    font-size: 14px;
    transform: rotate(-90deg);
    transition: transform .25s ease;
}

.paso.paso-abierto .paso-flecha {
    transform: rotate(0deg);
}

.paso-cuerpo {
    display: none;
    padding: 4px 24px 24px;
    border-top: 1px solid rgba(15, 23, 42, .08);
}

.paso.paso-abierto .paso-cuerpo {
    display: block;
    padding-top: 24px;
}

.paso-nota {
    margin-top: 16px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.6;
}

.paso-acciones {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-paso {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease;
}

.btn-paso:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(139, 92, 246, .45);
}

.btn-paso:disabled {
    opacity: .35;
    cursor: not-allowed;
}

/* ---------- Tarjetas de opción (paquetes y planes) ---------- */
.tarjeta {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}

.tarjeta:hover {
    border-color: #64748b;
}

.tarjeta:focus-visible {
    outline: 2px solid #22d3ee;
    outline-offset: 2px;
}

.tarjeta.activa {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, .07);
}

.tarjeta-insignia {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: #fbbf24;
    color: #1e1400;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

.tarjeta-insignia-accent {
    background: #22d3ee;
    color: #042f37;
}

.tarjeta-cuerpo {
    flex-grow: 1;
    padding: 24px 20px 20px;
}

.tarjeta-titulo {
    font-size: 19px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.tarjeta-precio {
    font-size: 30px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    margin-bottom: 12px;
    transition: color .2s ease;
}

.tarjeta.activa .tarjeta-precio {
    color: #0e7490;
}

.tarjeta-moneda {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    margin-left: 7px;
}

.tarjeta-desc {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.55;
}

.tarjeta-entrega {
    margin-top: 10px;
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tarjeta-pie {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid rgba(15, 23, 42, .08);
}

.tarjeta-estado {
    font-size: 13.5px;
    color: #64748b;
}

.tarjeta.activa .tarjeta-estado {
    color: #0f172a;
    font-weight: 600;
}

.tarjeta-radio {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 2px solid #cbd5e1;
    flex-shrink: 0;
    position: relative;
    transition: border-color .2s ease;
}

.tarjeta.activa .tarjeta-radio {
    border-color: #8b5cf6;
}

.tarjeta.activa .tarjeta-radio::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 999px;
    background: #8b5cf6;
}

/* ---------- Filas de complementos ---------- */
.fila {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}

.fila:hover {
    border-color: #64748b;
}

.fila:focus-visible {
    outline: 2px solid #22d3ee;
    outline-offset: 2px;
}

.fila.activa {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, .07);
}

.fila-casilla {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    border-radius: 7px;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 11px;
    transition: background .2s ease, border-color .2s ease;
}

.fila.activa .fila-casilla {
    background: #8b5cf6;
    border-color: #8b5cf6;
    color: #fff;
}

.fila-texto {
    flex-grow: 1;
    min-width: 0;
}

.fila-titulo {
    font-size: 15.5px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 3px;
}

.fila-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.fila-precio {
    flex-shrink: 0;
    text-align: right;
    line-height: 1.3;
}

.fila-precio span {
    display: block;
    font-size: 16px;
    font-weight: 700;
}

.fila-precio .precio-unico {
    color: #a78bfa;
}

.fila-precio .precio-mensual {
    color: #0e7490;
}

.fila-precio em {
    display: block;
    font-style: normal;
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}

.fila-cantidad {
    display: none;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.fila.activa .fila-cantidad {
    display: flex;
}

.fila-cantidad button {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #64748b;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fila-cantidad button:hover {
    background: #e2e8f0;
}

.fila-cantidad > span {
    min-width: 18px;
    text-align: center;
    font-weight: 700;
    color: #0f172a;
    font-size: 14px;
}

.fila-cantidad em {
    font-style: normal;
    font-size: 11px;
    color: #64748b;
}

/* ---------- Formulario ---------- */
.etiqueta {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.campo {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 13px 16px;
    color: #0f172a;
    font-size: 15px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.campo::placeholder {
    color: #64748b;
}

.campo:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 1px #8b5cf6;
}

.campo.campo-error {
    border-color: #f87171;
}

.aviso {
    font-size: 12px;
    color: #dc2626;
    margin-top: 6px;
    min-height: 1px;
}

.btn-pagar {
    width: 100%;
    margin-top: 24px;
    padding: 16px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(139, 92, 246, .3);
    transition: opacity .2s ease, box-shadow .2s ease;
}

.btn-pagar:hover:not(:disabled) {
    box-shadow: 0 0 30px rgba(139, 92, 246, .55);
}

.btn-pagar:disabled {
    opacity: .4;
    cursor: not-allowed;
    box-shadow: none;
}

.sello-stripe {
    margin-top: 20px;
    padding: 18px 20px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    text-align: center;
}

.sello-stripe-titulo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 800;
    color: #15803d;
}

.sello-stripe-titulo i {
    font-size: 20px;
    color: #16a34a;
}

.sello-stripe-sub {
    margin-top: 4px;
    font-size: 12.5px;
    color: #475569;
}

.sello-stripe-tarjetas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 14px;
}

.sello-stripe-tarjetas i {
    font-size: 34px;
    color: #475569;
}

.sello-stripe-tarjetas i.fa-cc-visa { color: #1a1f71; }
.sello-stripe-tarjetas i.fa-cc-mastercard { color: #eb001b; }
.sello-stripe-tarjetas i.fa-cc-amex { color: #2671b9; }

/* ---------- Panel de resumen ---------- */
.resumen {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
}

.resumen-cabecera {
    background: #f5f3ff;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.resumen-cabecera h3 {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
}

.resumen-cuerpo {
    padding: 22px;
}

.resumen-vacio {
    font-size: 13.5px;
    color: #64748b;
    text-align: center;
    padding: 28px 8px;
    line-height: 1.6;
}

.resumen-bloque {
    margin-bottom: 18px;
}

.resumen-rotulo {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 8px;
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.resumen-rotulo-sub {
    font-weight: 400;
    letter-spacing: .04em;
    color: #64748b;
    text-transform: none;
}

.rotulo-accent { color: #0e7490; }
.rotulo-amber  { color: #fbbf24; }

.resumen-linea {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 4px 0;
    font-size: 13.5px;
}

.resumen-linea-nombre {
    color: #475569;
    line-height: 1.4;
}

.resumen-linea-monto {
    color: #0f172a;
    font-weight: 600;
    white-space: nowrap;
}

.resumen-totales {
    background: #f1f5f9;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 12px;
    padding: 18px;
    margin-top: 20px;
}

.resumen-totales .resumen-rotulo {
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 6px;
}

.resumen-hoy {
    font-size: 34px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.resumen-moneda {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    margin-left: 7px;
}

.resumen-iva {
    font-size: 11px;
    color: #64748b;
    margin-top: 6px;
}

.resumen-mensual {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(15, 23, 42, .08);
}

.resumen-mensual-monto {
    font-size: 21px;
    font-weight: 700;
    color: #0e7490;
    line-height: 1;
}

.resumen-nota {
    font-size: 11px;
    color: #64748b;
    margin-top: 8px;
    line-height: 1.5;
}

.resumen-garantia {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 16px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.resumen-garantia i {
    color: #0e7490;
    margin-top: 2px;
}

.resumen-garantia p {
    font-size: 12px;
    color: #64748b;
    line-height: 1.6;
}

/* Respeta a quien pidió menos movimiento */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- Tres tarjetas en una fila: más compactas ---------- */
.tarjetas-3 .tarjeta-cuerpo {
    padding: 22px 16px 18px;
}

.tarjetas-3 .tarjeta-titulo {
    font-size: 16.5px;
    margin-bottom: 6px;
}

.tarjetas-3 .tarjeta-precio {
    font-size: 26px;
    margin-bottom: 10px;
}

.tarjetas-3 .tarjeta-moneda {
    display: block;
    margin-left: 0;
    margin-top: 3px;
    font-size: 11.5px;
}

.tarjetas-3 .tarjeta-desc {
    font-size: 12.5px;
    line-height: 1.5;
}

.tarjetas-3 .tarjeta-entrega {
    font-size: 11.5px;
    margin-top: 9px;
}

.tarjetas-3 .tarjeta-pie {
    padding: 12px 16px;
}

.tarjetas-3 .tarjeta-estado {
    font-size: 12.5px;
}

.tarjetas-3 .tarjeta-insignia {
    font-size: 10px;
    padding: 3px 10px;
}

/* En pantallas medianas el tercero se pasa a un renglón propio;
   a partir de 900px ya caben los tres cómodamente. */
@media (min-width: 640px) and (max-width: 899px) {
    .tarjetas-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .tarjetas-3 > .tarjeta:last-child {
        grid-column: 1 / -1;
    }
}

/* ---------- Complemento que ya viene incluido en el paquete ---------- */
.fila.fila-incluida {
    cursor: default;
    border-color: rgba(34, 197, 94, .45);
    background: rgba(34, 197, 94, .06);
}

.fila.fila-incluida .fila-casilla {
    background: var(--verde, #22c55e);
    border-color: #22c55e;
    color: #fff;
}

.fila-precio .precio-incluido {
    color: #22c55e;
    font-size: 14px;
    font-weight: 700;
}
