@charset "UTF-8";

/* =========================================================
   ContaPagos - Cotizador (variante 2026 / azul)
   Estilos propios de cotizador-azul.php.

   A diferencia de las otras paginas azul, esta SI sigue usando
   Bootstrap (CSS + JS): el acordeon (data-bs-toggle="collapse")
   y varias clases de grid (row/col-md-*) estan generadas dentro
   del <script> original, que no se toco. Este archivo solo
   re-tematiza esos componentes con la paleta de marca; no
   reemplaza a Bootstrap.

   Este archivo es autonomo (no depende de precios-2026.css ni de
   contacto-2026.css) porque esta pagina reutiliza el nombre de
   clase ".plan-card" con una estructura distinta a la de
   preciosUsuarios-azul.php, y cargar ambos archivos hubiera
   generado un choque de estilos.
   ========================================================= */

/* ---------- Encabezado de pagina (mini-hero) ---------- */

.page-header-2026 {
    position: relative;
    background: linear-gradient(135deg, #001f73 0%, #0032b9 55%, #142f8f 100%);
    overflow: hidden;
    padding: 72px 0 84px;
    text-align: center;
}

.page-header-2026 .wrap {
    position: relative;
    z-index: 1;
}

.page-header-2026 h1 {
    color: #fff;
    font-size: clamp(1.9rem, 3.6vw, 2.8rem);
    margin: 1rem 0 .75rem;
}

.page-header-2026 p {
    color: #e3e9ff;
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- Icono flotante del carrito ---------- */

.cart-icon-container {
    position: fixed;
    top: 96px;
    right: 24px;
    z-index: 1040;
    cursor: pointer;
}

.cart-icon {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--violet));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: var(--shadow-lg);
    transition: transform .2s ease;
}

.cart-icon:hover {
    transform: translateY(-2px);
}

#contador {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--amber);
    color: #1e1b4b;
    font-size: .72rem;
    font-weight: 800;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}

@media (max-width: 576px) {
    .cart-icon-container {
        top: 84px;
        right: 16px;
    }

    .cart-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* ---------- Overlay + sidebar del carrito ---------- */

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 17, 32, .55);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
    z-index: 1200;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 420px;
    max-width: 92vw;
    background: #fff;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform .35s ease;
    z-index: 1300;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', sans-serif;
}

.cart-sidebar.active {
    transform: translateX(0);
}

.cart-header {
    background: linear-gradient(135deg, var(--primary), var(--violet));
    color: #fff;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.cart-header h3 {
    margin: 0;
    font-size: 1.05rem;
    color: #fff;
    font-family: 'Sora', sans-serif;
    display: flex;
    align-items: center;
    gap: .55rem;
}

.close-cart {
    background: rgba(255, 255, 255, .18);
    border: 0;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.close-cart:hover {
    background: rgba(255, 255, 255, .3);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.empty-cart-message {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem 1rem;
}

.empty-cart-message i {
    font-size: 2.5rem;
    color: var(--border);
    margin-bottom: 1rem;
    display: block;
}

.empty-cart-message p {
    margin: 0 0 .3rem;
}

.cart-item {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: .85rem;
}

.cart-item.extra {
    border-left-color: var(--cyan);
}

.cart-item.feature {
    border-left-color: var(--violet);
}

.cart-item h5 {
    margin: 0 0 .6rem;
    font-size: .92rem;
    color: var(--ink);
}

.cart-item-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    font-size: .82rem;
    color: var(--text-muted);
}

.cart-item-subtotal {
    font-weight: 800;
    color: var(--ink);
}

.cart-item small {
    display: block;
    margin-top: .5rem;
    color: var(--text-muted);
}

.remove-item {
    background: none;
    border: 0;
    color: #ef4444;
    cursor: pointer;
    font-size: .9rem;
    padding: .3rem;
    flex-shrink: 0;
}

.remove-item:hover {
    color: #b91c1c;
}

.cart-footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem;
    flex-shrink: 0;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 1.1rem;
    color: var(--ink);
    font-family: 'Sora', sans-serif;
}

.cart-actions {
    display: flex;
    gap: .75rem;
}

.btn2 {
    flex: 1;
    padding: .8rem 1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: .85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    transition: transform .2s ease, box-shadow .2s ease;
}

.btn2:hover {
    transform: translateY(-2px);
}

.btn2.btn-secondary {
    background: var(--surface-alt);
    color: var(--text);
    border-color: var(--border);
}

.btn2.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 50, 185, .3);
}

.btn2.btn-pdf {
    background: var(--violet);
    color: #fff;
    box-shadow: 0 10px 24px rgba(255, 33, 79, .3);
}

/* ---------- Notificaciones flotantes (toast) ---------- */
/* Nota: este script usa notification.classList.add('show') en vez de
   la version de home/precios (que crea y borra el nodo). Por eso la
   transicion aqui es opacity/transform con .show, no una animacion. */

.notification {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: .65rem;
    background: #fff;
    border-radius: var(--radius-sm);
    padding: .9rem 1.25rem;
    box-shadow: var(--shadow-lg);
    font-size: .88rem;
    font-weight: 600;
    color: var(--text);
    border-left: 4px solid var(--accent);
    max-width: calc(100vw - 48px);
    opacity: 0;
    transform: translateX(30px);
    transition: opacity .25s ease, transform .25s ease;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.success {
    border-left-color: var(--accent);
}

.notification.success i {
    color: var(--accent);
}

.notification.error {
    border-left-color: #ef4444;
}

.notification.error i {
    color: #ef4444;
}

.notification.warning {
    border-left-color: var(--amber);
}

.notification.warning i {
    color: var(--amber);
}

.notification.info {
    border-left-color: var(--cyan);
}

.notification.info i {
    color: var(--cyan);
}

@media (max-width: 576px) {
    .notification {
        left: 16px;
        right: 16px;
        top: 16px;
        max-width: none;
    }
}

/* ---------- Acordeon de planes ---------- */

.cotizador-seccion {
    padding: 72px 0 96px;
}

#acordeonPlanes .accordion-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-md);
}

#acordeonPlanes .accordion-header {
    margin: 0;
}

#acordeonPlanes .accordion-button {
    background: var(--surface);
    color: var(--ink);
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.02rem;
    padding: 1.5rem 1.75rem;
    box-shadow: none;
}

#acordeonPlanes .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

#acordeonPlanes .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    color: #fff;
    box-shadow: none;
}

#acordeonPlanes .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

#acordeonPlanes .accordion-body {
    padding: 0;
}

.plan-card {
    padding: 1.75rem;
}

.plan-name {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--ink);
    margin-bottom: .35rem;
}

.plan-price {
    font-family: 'Sora', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
}

.plan-price-unit {
    font-size: .8rem;
    color: var(--text-muted);
}

.plan-nota {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    border-radius: var(--radius-sm);
    padding: .75rem 1rem;
    font-size: .85rem;
    margin-top: .75rem;
}

.badge-plan {
    font-size: .68rem;
    font-weight: 700;
    padding: .25rem .6rem;
    border-radius: 999px;
}

.section-title {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: .95rem;
    color: var(--ink);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.section-title i {
    color: var(--primary);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    position: relative;
    padding: .5rem 0 .5rem 1.6rem;
    font-size: .9rem;
    color: var(--text);
    border-bottom: 1px dashed var(--border);
}

.feature-list li:last-child {
    border-bottom: 0;
}

.feature-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: .55rem;
    color: var(--accent);
    font-size: .78rem;
}

.features-list {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: .5rem 1rem;
}

.feature-titulo {
    font-weight: 700;
    color: var(--ink);
    font-family: 'Sora', sans-serif;
    margin-top: 1rem;
    margin-bottom: .5rem;
    padding-bottom: .4rem;
    border-bottom: 2px solid var(--border);
    font-size: .92rem;
}

.feature-titulo:first-child {
    margin-top: 0;
}

.feature-item {
    padding: .6rem 0 .6rem 1.1rem;
    color: var(--text);
    font-size: .88rem;
    border-left: 3px solid transparent;
    transition: border-color .2s ease;
}

.feature-item strong {
    color: var(--ink);
}

.feature-item[data-has-html="true"] {
    background-color: var(--surface);
    border-radius: 4px;
}

.addon-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .75rem 1rem;
    border-bottom: 1px dashed var(--border);
    font-size: .88rem;
    color: var(--text);
}

.addon-item:last-child {
    border-bottom: 0;
}

.addon-item.disabled {
    opacity: .6;
    background-color: var(--surface-alt);
}

.addon-price {
    font-weight: 700;
    color: var(--ink);
    margin-right: .75rem;
    white-space: nowrap;
}

.addon-btn {
    border: 0;
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    padding: .4rem .9rem;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.addon-btn:hover:not(:disabled) {
    background: var(--primary-dark);
}

.addon-btn.added {
    background: var(--accent);
}

.addon-item.disabled .addon-btn {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.action-btn {
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: .9rem 1.25rem;
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    color: #fff;
    box-shadow: 0 10px 22px rgba(0, 50, 185, .3);
    transition: transform .2s ease;
}

.action-btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

.action-btn.added {
    background: var(--accent);
    box-shadow: none;
}

.action-btn:disabled {
    background: var(--border);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
}
