/* Proceso de compra: carrito.php, caja.php (cajaperfil, cajadireccion y cajapagar se cargan dentro) y pedidocompletado.php
   usa los colores de rediseno.css (--n2-*) */

/* Encabezado con los pasos */
.n2c-hero { padding: 1.6rem 0 4.5rem; }
.n2c-hero h1 { font-size: calc(1.25rem + .9vw); margin: 0; }
.n2c-hero-fila { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.n2c-hero .n2-kicker { margin-bottom: .35rem; }
/* sin z-index: crearia un contexto de apilamiento y los modales de la caja (que van dentro) quedarian debajo del fondo oscuro */
.n2c-contenido { margin-top: -3.2rem; position: relative; padding-bottom: 4rem; }

.n2c-pasos { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.n2c-pasos li { display: flex; align-items: center; gap: .35rem; }
.n2c-pasos li + li::before { content: ""; width: 22px; height: 2px; background: rgba(255,255,255,.25); border-radius: 2px; }
.n2c-paso { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .75rem .35rem .35rem; border-radius: 2rem; color: rgba(255,255,255,.65); font-size: .86rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
.n2c-paso:hover { color: #fff; background: rgba(255,255,255,.08); }
.n2c-paso-num { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 2px solid rgba(255,255,255,.35); font-size: .8rem; }
.n2c-paso-num .material-icons { font-size: 1rem; }
.n2c-paso.active { color: #fff; }
.n2c-paso.active .n2c-paso-num { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.5); }
.n2c-paso.current { background: rgba(255,255,255,.12); color: #fff; }
.n2c-paso.current .n2c-paso-num { background: var(--n2-naranja); border-color: var(--n2-naranja); color: #fff; }
.n2c-paso-sinclic { cursor: default; }

/* Cajas blancas */
.n2c-caja { background: #fff; border: 1px solid var(--n2-borde); border-radius: 1.25rem; padding: 1.5rem; box-shadow: 0 .6rem 1.6rem rgba(2,29,71,.06); }
.n2c-caja + .n2c-caja { margin-top: 1.25rem; }
.n2c-caja-titulo { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--n2-borde); }
.n2c-caja-titulo h2 { display: flex; align-items: center; gap: .5rem; font-size: 1.12rem; font-weight: 700; color: var(--n2-texto); margin: 0; }
.n2c-caja-titulo h2 .material-icons { color: var(--n2-naranja); font-size: 1.35rem; }
.n2c-caja-titulo small { color: var(--n2-suave); font-size: .85rem; }
.n2c-subtitulo { display: flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--n2-suave); margin: 1.4rem 0 .7rem; }
.n2c-subtitulo:first-child { margin-top: 0; }
.n2c-subtitulo .material-icons { font-size: 1.05rem; }

.n2c-enlace { display: inline-flex; align-items: center; gap: .25rem; background: none; border: 0; padding: .35rem .65rem; border-radius: 2rem; font-size: .88rem; font-weight: 600; color: var(--n2-azul); text-decoration: none; cursor: pointer; }
.n2c-enlace:hover { background: var(--n2-fondo); color: var(--n2-azul); }
.n2c-enlace .material-icons { font-size: 1.1rem; }
.n2c-btn-chico { padding: .55rem 1.1rem; font-size: .9rem; }
.n2c-ancho { width: 100%; justify-content: center; }
.n2-btn.disabled, .n2-btn:disabled { opacity: .55; pointer-events: none; }

/* Productos del carrito */
.n2c-item { display: grid; grid-template-columns: 84px 1fr auto auto; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--n2-borde); }
.n2c-lista > div:last-child .n2c-item { border-bottom: 0; padding-bottom: 0; }
.n2c-item-img { width: 84px; height: 84px; object-fit: contain; border: 1px solid var(--n2-borde); border-radius: .9rem; background: #fff; cursor: pointer; }
.n2c-item-info { min-width: 0; }
.n2c-item-marca { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--n2-naranja); }
.n2c-item-nombre { display: block; font-size: .97rem; font-weight: 700; line-height: 1.35; color: var(--n2-texto); text-decoration: none; cursor: pointer; }
.n2c-item-nombre:hover { color: var(--n2-azul); }
.n2c-item-info small { color: var(--n2-suave); font-size: .8rem; }
.n2c-item-quitar { display: inline-flex; align-items: center; gap: .2rem; background: none; border: 0; padding: .2rem 0; margin-top: .25rem; color: #c0392b; font-size: .8rem; font-weight: 600; cursor: pointer; }
.n2c-item-quitar .material-icons { font-size: 1rem; }
.n2c-item-quitar:hover { text-decoration: underline; }
.n2c-cantidad { display: inline-flex; align-items: center; border: 1px solid var(--n2-borde); border-radius: 2rem; overflow: hidden; }
.n2c-cantidad button { width: 34px; height: 38px; border: 0; background: var(--n2-fondo); color: var(--n2-azul); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.n2c-cantidad button:hover { background: #e3ecfb; }
.n2c-cantidad .material-icons { font-size: 1.1rem; }
.n2c-cantidad input { width: 50px; height: 38px; border: 0; text-align: center; font-weight: 700; color: var(--n2-texto); -moz-appearance: textfield; }
.n2c-cantidad input::-webkit-outer-spin-button, .n2c-cantidad input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.n2c-item-precio { min-width: 110px; text-align: right; font-weight: 700; font-size: 1.05rem; color: var(--n2-marino); white-space: nowrap; }

/* Carrito vacio y sin sesion */
.n2c-vacio { text-align: center; padding: 2.5rem 1rem; }
.n2c-vacio > .material-icons { font-size: 3.5rem; color: var(--n2-naranja); }
.n2c-vacio h2 { font-size: 1.35rem; font-weight: 700; color: var(--n2-texto); margin: .7rem 0 .4rem; }
.n2c-vacio p { color: var(--n2-suave); margin: 0 auto 1.4rem; max-width: 440px; }
.n2c-vacio .d-flex { justify-content: center; }

/* Resumen (barra lateral) */
.n2c-resumen { position: sticky; top: 100px; }
.n2c-resumen-items { max-height: 290px; overflow: auto; margin: 0 -.25rem 1rem; padding: 0 .25rem; }
.n2c-resumen-item { display: flex; align-items: center; gap: .75rem; padding: .55rem 0; border-bottom: 1px dashed var(--n2-borde); }
.n2c-resumen-item:last-child { border-bottom: 0; }
.n2c-resumen-item img { width: 48px; height: 48px; object-fit: contain; border: 1px solid var(--n2-borde); border-radius: .6rem; background: #fff; flex: 0 0 auto; }
.n2c-resumen-item div { min-width: 0; flex: 1; }
.n2c-resumen-item b { display: block; font-size: .84rem; line-height: 1.3; color: var(--n2-texto); font-weight: 600; }
.n2c-resumen-item small { color: var(--n2-suave); font-size: .78rem; }
.n2c-resumen-item > span { font-size: .86rem; font-weight: 700; color: var(--n2-marino); white-space: nowrap; }
.n2c-totales { background: var(--n2-fondo); border-radius: 1rem; padding: .9rem 1rem; margin-bottom: 1rem; list-style: none; }
.n2c-totales li { display: flex; justify-content: space-between; gap: 1rem; padding: .22rem 0; color: var(--n2-suave); font-size: .92rem; }
.n2c-totales li.n2c-descuento { color: #16884a; font-weight: 600; }
.n2c-total { border-top: 1px solid var(--n2-borde); margin-top: .4rem; padding-top: .6rem !important; color: var(--n2-texto) !important; font-weight: 700; align-items: baseline; }
.n2c-total strong { font-size: 1.45rem; color: var(--n2-marino); }
.n2c-iva { display: block; text-align: right; font-size: .75rem; color: var(--n2-suave); margin: -.6rem 0 1rem; }
.n2c-promo { display: flex; gap: .5rem; margin-bottom: 1rem; }
.n2c-promo .form-control { border-radius: 2rem; text-transform: uppercase; }
.n2c-promo .form-control::placeholder { text-transform: none; }
.n2c-promo .n2-btn { padding: .5rem 1rem; font-size: .88rem; white-space: nowrap; }
.n2c-campo-label { display: flex; align-items: center; gap: .3rem; font-size: .82rem; font-weight: 600; color: var(--n2-texto); margin-bottom: .35rem; }
.n2c-campo-label .material-icons { font-size: 1rem; color: var(--n2-suave); }
.n2c-confianza { list-style: none; margin: 1.1rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--n2-borde); display: grid; gap: .55rem; }
.n2c-confianza li { display: flex; align-items: flex-start; gap: .55rem; font-size: .82rem; color: var(--n2-suave); line-height: 1.4; }
.n2c-confianza .material-icons { font-size: 1.15rem; color: var(--n2-azul); }

/* Navegacion de la caja */
.n2c-navegacion { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-top: 1.25rem; }
.n2c-navegacion .n2-btn { cursor: pointer; }
#navegacionsiguientecaja.disabled { visibility: hidden; }

/* Datos del cliente (cajaperfil) */
.n2c-cliente { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; background: var(--n2-fondo); border-radius: 1rem; padding: 1rem 1.1rem; }
.n2c-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--n2-azul); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.15rem; flex: 0 0 auto; }
.n2c-cliente-datos { flex: 1; min-width: 180px; }
.n2c-cliente-datos h3 { font-size: 1rem; font-weight: 700; color: var(--n2-texto); margin: 0; }
.n2c-cliente-datos span { display: block; font-size: .86rem; color: var(--n2-suave); }
.n2c-datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem; }
.n2c-dato { border: 1px solid var(--n2-borde); border-radius: .9rem; padding: .75rem .9rem; }
.n2c-dato small { display: block; font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--n2-suave); }
.n2c-dato b { display: block; color: var(--n2-texto); font-size: .95rem; word-break: break-word; }
.n2c-aviso { display: flex; gap: .75rem; align-items: flex-start; background: #fff4ea; border: 1px solid #ffd7b3; color: #6b3d10; border-radius: 1rem; padding: .9rem 1rem; }
.n2c-aviso > .material-icons { color: #c25e00; }
.n2c-aviso b { display: block; color: #c25e00; }
.n2c-aviso p { margin: .1rem 0 .6rem; font-size: .88rem; }
.n2c-aviso-azul { background: #eef4fd; border-color: #cfe0f8; color: #23406d; }
.n2c-aviso-azul > .material-icons, .n2c-aviso-azul b { color: var(--n2-azul); }
.n2c-aviso-azul p { margin-bottom: 0; }

/* Opciones de entrega (cajadireccion) */
.n2c-opciones { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .75rem; }
.n2c-opcion { position: relative; display: flex; gap: .75rem; align-items: flex-start; border: 2px solid var(--n2-borde); border-radius: 1rem; padding: .95rem 1rem; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; margin: 0; }
.n2c-opcion:hover { border-color: #b9d0f5; }
.n2c-opcion input { position: absolute; opacity: 0; pointer-events: none; }
.n2c-opcion-icono { width: 38px; height: 38px; border-radius: .75rem; background: var(--n2-fondo); color: var(--n2-azul); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.n2c-opcion b { display: block; color: var(--n2-texto); font-size: .95rem; }
.n2c-opcion small { display: block; color: var(--n2-suave); font-size: .82rem; line-height: 1.4; }
.n2c-opcion-check { position: absolute; top: .7rem; right: .7rem; font-size: 1.25rem; color: var(--n2-borde); }
.n2c-opcion.seleccionada { border-color: var(--n2-azul); background: #f4f8ff; box-shadow: 0 .4rem 1rem rgba(3,73,178,.1); }
.n2c-opcion.seleccionada .n2c-opcion-icono { background: var(--n2-azul); color: #fff; }
.n2c-opcion.seleccionada .n2c-opcion-check { color: var(--n2-azul); }
.n2c-opcion > div { padding-right: 1.2rem; }
.n2c-opcion-nueva { border-style: dashed; align-items: center; justify-content: center; color: var(--n2-azul); font-weight: 600; text-decoration: none; min-height: 76px; }
.n2c-opcion-nueva:hover { background: var(--n2-fondo); color: var(--n2-azul); }

/* Revision y pago (cajapagar) */
.n2c-revision { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.n2c-revision-caja { border: 1px solid var(--n2-borde); border-radius: 1rem; padding: .9rem 1rem; }
.n2c-revision-caja h3 { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--n2-suave); margin: 0 0 .5rem; }
.n2c-revision-caja h3 span { display: inline-flex; align-items: center; gap: .35rem; }
.n2c-revision-caja h3 .material-icons { font-size: 1.1rem; color: var(--n2-naranja); }
.n2c-revision-caja h3 a { text-transform: none; letter-spacing: 0; font-size: .82rem; font-weight: 600; color: var(--n2-azul); cursor: pointer; text-decoration: none; }
.n2c-revision-caja h3 a:hover { text-decoration: underline; }
.n2c-revision-caja p { margin: 0; font-size: .88rem; color: var(--n2-texto); line-height: 1.5; }
.n2c-revision-caja p span { color: var(--n2-suave); }

.n2c-metodos { display: grid; gap: .75rem; }
.n2c-metodo { border: 2px solid var(--n2-borde); border-radius: 1rem; overflow: hidden; transition: border-color .2s; }
.n2c-metodos .accordion-item.n2c-metodo { border: 2px solid var(--n2-borde) !important; border-radius: 1rem !important; background: #fff; }
.n2c-metodos .accordion-item.n2c-metodo:has(.collapse.show) { border-color: var(--n2-azul) !important; }
.n2c-metodo:has(.collapse.show) { border-color: var(--n2-azul); }
.n2c-metodo-cabeza { display: flex; align-items: center; gap: .8rem; padding: .95rem 1.1rem; color: var(--n2-texto); font-weight: 700; text-decoration: none; cursor: pointer; }
.n2c-metodo-cabeza:hover { color: var(--n2-texto); background: var(--n2-fondo); }
.n2c-metodo-cabeza .n2c-opcion-icono { width: 40px; height: 40px; }
.n2c-metodo-cabeza small { display: block; font-weight: 400; font-size: .82rem; color: var(--n2-suave); }
.n2c-metodo-cabeza > div { flex: 1; }
.n2c-metodo-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #b8c3d6; flex: 0 0 auto; }
.n2c-metodo-cabeza:not(.collapsed) .n2c-metodo-radio { border: 6px solid var(--n2-azul); }
.n2c-metodo-cabeza:not(.collapsed) .n2c-opcion-icono { background: var(--n2-azul); color: #fff; }
.n2c-metodo-cuerpo { padding: .3rem 1.1rem 1.2rem; }
.n2c-metodo-cuerpo .form-label { font-size: .82rem; font-weight: 600; margin-bottom: .25rem; }
.n2c-metodo-cuerpo .credit-card-wrapper { margin: .4rem 0 1.1rem; }
/* card.js marca el numero, la fecha o el cvv invalidos (el numero se valida con el algoritmo de Luhn) */
.credit-card-form .form-control.jp-card-invalid { border-color: #dc3545; box-shadow: 0 0 0 .15rem rgba(220,53,69,.15); }
.n2c-tarjetas { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--n2-suave); margin-bottom: .6rem; }
.n2c-cuenta { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: .25rem 0 1rem; }
.n2c-cuenta > div { background: var(--n2-fondo); border-radius: .8rem; padding: .7rem .9rem; min-height: 62px; }
.n2c-cuenta small { display: block; font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--n2-suave); }
.n2c-cuenta b { display: block; color: var(--n2-marino); font-size: 1rem; word-break: break-word; }
.n2c-pasosdeposito { list-style: none; counter-reset: paso; padding: 0; margin: 0 0 1rem; display: grid; gap: .45rem; }
.n2c-pasosdeposito li { counter-increment: paso; display: flex; gap: .6rem; font-size: .86rem; color: var(--n2-suave); }
.n2c-pasosdeposito li::before { content: counter(paso); width: 22px; height: 22px; border-radius: 50%; background: var(--n2-fondo); color: var(--n2-azul); font-weight: 700; font-size: .75rem; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.n2c-seguro { display: flex; align-items: center; justify-content: center; gap: .35rem; font-size: .78rem; color: var(--n2-suave); margin: .7rem 0 0; text-align: center; }
.n2c-seguro .material-icons { font-size: 1rem; color: #16884a; }
.n2c-cargando:empty { display: none; }
.n2c-cargando { text-align: center; margin-top: .6rem; }

/* Pedido completado */
.n2c-listo { max-width: 640px; margin: 0 auto; text-align: center; }
.n2c-listo-icono { width: 84px; height: 84px; border-radius: 50%; background: #eefaf3; color: #16884a; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.n2c-listo-icono .material-icons { font-size: 3rem; }
.n2c-listo h2 { font-size: 1.55rem; font-weight: 700; color: var(--n2-texto); margin-bottom: .4rem; }
.n2c-listo > p { color: var(--n2-suave); }
.n2c-listo-numero { display: inline-flex; flex-direction: column; background: var(--n2-fondo); border: 1px dashed #b9d0f5; border-radius: 1rem; padding: .8rem 1.6rem; margin: .6rem 0 1.4rem; }
.n2c-listo-numero small { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--n2-suave); }
.n2c-listo-numero b { font-size: 1.9rem; color: var(--n2-marino); line-height: 1.2; }
.n2c-siguientes { text-align: left; list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .6rem; }
.n2c-siguientes li { display: flex; gap: .75rem; align-items: flex-start; border: 1px solid var(--n2-borde); border-radius: 1rem; padding: .8rem 1rem; }
.n2c-siguientes .material-icons { color: var(--n2-azul); font-size: 1.5rem; }
.n2c-siguientes b { display: block; color: var(--n2-texto); font-size: .92rem; }
.n2c-siguientes span { font-size: .85rem; color: var(--n2-suave); }
.n2c-listo .d-flex { justify-content: center; }

/* Modales de la caja (direccion y facturacion) */
.n2c-modal .modal-content { border-radius: 1.25rem; border: 0; }
.n2c-modal .modal-header { border-bottom-color: var(--n2-borde); }
.n2c-modal .modal-title { font-weight: 700; color: var(--n2-texto); }
.n2c-modal .form-label { font-size: .82rem; font-weight: 600; margin-bottom: .25rem; }
.n2c-modal .modal-footer { border-top-color: var(--n2-borde); }

@media (max-width: 991.98px) {
  .n2c-resumen { position: static; }
  .n2c-hero { padding-bottom: 4rem; }
}
@media (max-width: 767.98px) {
  .n2c-hero-fila { flex-direction: column; align-items: flex-start; }
  .n2c-pasos { width: 100%; justify-content: space-between; }
  .n2c-pasos li + li::before { display: none; }
  .n2c-paso { flex-direction: column; gap: .2rem; padding: .3rem .2rem; font-size: .72rem; }
  .n2c-paso.current { background: none; }
  .n2c-caja { padding: 1.1rem; border-radius: 1rem; }
  .n2c-item { grid-template-columns: 64px 1fr auto; grid-template-areas: "img info info" "img cant precio"; gap: .5rem .75rem; }
  .n2c-item-img { grid-area: img; width: 64px; height: 64px; align-self: start; }
  .n2c-item-info { grid-area: info; }
  .n2c-cantidad { grid-area: cant; justify-self: start; }
  .n2c-item-precio { grid-area: precio; min-width: 0; }
  .n2c-revision, .n2c-cuenta { grid-template-columns: 1fr; }
  .n2c-metodo-cabeza { padding: .85rem .9rem; gap: .6rem; }
  .n2c-metodo-cabeza img { display: none; }
  .n2c-navegacion .n2-btn { padding: .7rem 1rem; font-size: .9rem; }
}

/* ---------- Mi cuenta (perfil.php; pedidos, direcciones y datosfacturacion se cargan en #datosperfil) ---------- */
.n2c-cuenta-menu { padding: 1.1rem; }
.n2c-cuenta-usuario { display: flex; align-items: center; gap: .8rem; padding: .2rem .3rem 1rem; margin-bottom: .6rem; border-bottom: 1px solid var(--n2-borde); }
.n2c-cuenta-usuario > div { min-width: 0; }
.n2c-cuenta-usuario h3 { font-size: 1rem; font-weight: 700; color: var(--n2-texto); margin: 0; }
.n2c-cuenta-usuario > div > span { display: block; font-size: .82rem; color: var(--n2-suave); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.n2c-cuenta-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.n2c-cuenta-nav a { display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; border-radius: .8rem; color: var(--n2-texto); font-weight: 600; font-size: .92rem; text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
.n2c-cuenta-nav a .material-icons { font-size: 1.25rem; color: var(--n2-suave); }
.n2c-cuenta-nav a:hover { background: var(--n2-fondo); color: var(--n2-azul); }
.n2c-cuenta-nav a.active { background: #eef4fd; color: var(--n2-azul); }
.n2c-cuenta-nav a.active .material-icons { color: var(--n2-azul); }
.n2c-cuenta-nav .n2c-cuenta-salir { color: #c0392b; margin-top: .4rem; border-top: 1px solid var(--n2-borde); border-radius: 0 0 .8rem .8rem; }
.n2c-cuenta-nav .n2c-cuenta-salir .material-icons { color: #c0392b; }
.n2c-cuenta-nav .n2c-cuenta-salir:hover { background: #fdeeee; color: #c0392b; }
.n2c-form .form-label { font-size: .82rem; font-weight: 600; margin-bottom: .25rem; }
.n2c-form-pie { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 1.1rem; margin-top: 1.2rem; border-top: 1px solid var(--n2-borde); }
.n2c-form-pie small { color: var(--n2-suave); }

/* direcciones */
.n2c-direcciones { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .9rem; }
.n2c-direccion { display: flex; flex-direction: column; border: 1px solid var(--n2-borde); border-radius: 1rem; padding: 1rem 1.1rem; }
.n2c-direccion-cabeza { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.n2c-direccion-cabeza b { color: var(--n2-texto); font-size: .98rem; }
.n2c-direccion p { color: var(--n2-suave); font-size: .86rem; line-height: 1.5; margin: 0 0 .8rem; flex: 1; }
.n2c-direccion-acciones { display: flex; gap: .3rem; border-top: 1px solid var(--n2-borde); padding-top: .6rem; }
.n2c-enlace-rojo { color: #c0392b; }
.n2c-enlace-rojo:hover { background: #fdeeee; color: #c0392b; }

/* pedidos */
.n2c-pedidos { display: grid; gap: .8rem; }
.n2c-pedido { border: 1px solid var(--n2-borde); border-radius: 1rem; padding: 1rem 1.1rem; }
.n2c-pedido-cabeza { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.n2c-pedido-num { display: flex; align-items: center; gap: .7rem; }
.n2c-pedido-num b { display: block; font-size: 1rem; color: var(--n2-texto); }
.n2c-pedido-num small { display: block; font-size: .8rem; color: var(--n2-suave); }
.n2c-pedido-total { text-align: right; }
.n2c-pedido-total small { display: block; font-size: .74rem; color: var(--n2-suave); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.n2c-pedido-total b { font-size: 1.1rem; color: var(--n2-marino); }
.n2c-pedido-datos { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: .8rem 0; font-size: .84rem; color: var(--n2-suave); }
.n2c-pedido-datos span { display: inline-flex; align-items: center; gap: .3rem; }
.n2c-pedido-datos .material-icons { font-size: 1.05rem; }
.n2c-pedido-datos a { color: var(--n2-azul); font-weight: 600; }
.n2c-pedido-datos small.d-block { display: none !important; } /* htmlguia trae el transporte, aqui ya se muestra antes */
.n2c-pedido-acciones { display: flex; flex-wrap: wrap; gap: .3rem; border-top: 1px solid var(--n2-borde); padding-top: .6rem; }
.n2c-pedido-entrega { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; background: #f6f3fe; border-radius: .75rem; padding: .7rem .9rem; margin: 0 0 .8rem; }
.n2c-pedido-entrega p { display: flex; gap: .4rem; margin: 0; font-size: .84rem; color: var(--n2-suave); flex: 1 1 18rem; }
.n2c-pedido-entrega p .material-icons { font-size: 1.05rem; color: #6741d9; margin-top: .1rem; }
.n2c-pedido-entrega a { color: var(--n2-azul); font-weight: 600; }
.n2c-estado { display: inline-flex; align-items: center; gap: .3rem; border-radius: 2rem; padding: .25rem .7rem; font-size: .78rem; font-weight: 700; background: var(--n2-fondo); color: var(--n2-suave); white-space: nowrap; }
.n2c-estado::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.n2c-estado-proceso { background: #eef4fd; color: var(--n2-azul); }
.n2c-estado-facturado { background: #fff4ea; color: #c25e00; }
.n2c-estado-enviado { background: #f1ecfd; color: #6741d9; }
.n2c-estado-entregado { background: #eefaf3; color: #16884a; }
.n2c-estado-cancelado { background: #fdeeee; color: #c0392b; }

/* detalle del pedido (modaldetallepedido.php) */
.n2c-detalle-seccion { border: 1px solid var(--n2-borde); border-radius: 1rem; padding: .85rem 1rem; margin-bottom: .75rem; }
.n2c-detalle-seccion h4 { display: flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--n2-suave); margin: 0 0 .45rem; }
.n2c-detalle-seccion h4 .material-icons { font-size: 1.1rem; color: var(--n2-naranja); }
.n2c-detalle-seccion p { margin: 0; font-size: .9rem; color: var(--n2-texto); line-height: 1.5; }
.n2c-detalle-seccion p span { color: var(--n2-suave); }
.n2c-detalle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .75rem; }
.n2c-detalle-producto { display: flex; align-items: center; gap: .9rem; padding: .75rem 0; border-bottom: 1px solid var(--n2-borde); }
.n2c-detalle-producto:last-child { border-bottom: 0; }
.n2c-detalle-producto img { width: 60px; height: 60px; object-fit: contain; border: 1px solid var(--n2-borde); border-radius: .7rem; background: #fff; flex: 0 0 auto; }
.n2c-detalle-producto > div { flex: 1; min-width: 0; }
.n2c-detalle-producto b { display: block; font-size: .9rem; color: var(--n2-texto); line-height: 1.35; }
.n2c-detalle-producto small { color: var(--n2-suave); font-size: .78rem; }
.n2c-detalle-producto > span { font-weight: 700; color: var(--n2-marino); white-space: nowrap; }
.n2c-modal .nav-tabs { padding: 0 1rem; border-bottom-color: var(--n2-borde); }
.n2c-modal .nav-tabs .nav-link { font-weight: 600; font-size: .9rem; }
.n2c-modal .n2c-totales { margin: 0; width: 100%; }

@media (max-width: 991.98px) {
  .n2c-cuenta-menu { padding: .7rem; }
  .n2c-cuenta-usuario { display: none; }
  .n2c-cuenta-nav { display: flex; overflow-x: auto; gap: .3rem; scrollbar-width: none; }
  .n2c-cuenta-nav::-webkit-scrollbar { display: none; }
  .n2c-cuenta-nav li { flex: 0 0 auto; }
  .n2c-cuenta-nav a { white-space: nowrap; padding: .55rem .8rem; font-size: .86rem; }
  .n2c-cuenta-nav .n2c-cuenta-salir { border-top: 0; margin-top: 0; border-radius: .8rem; }
}
@media (max-width: 575.98px) {
  .n2c-detalle-grid { grid-template-columns: 1fr; }
  .n2c-pedido-total { text-align: left; }
}
.n2c-pedido-num b { white-space: nowrap; }
@media (max-width: 575.98px) { .n2c-pedido-num { flex-wrap: wrap; } }
.n2c-pedidos-mas { display: flex; flex-direction: column; align-items: center; gap: .6rem; margin-top: 1.2rem; }
.n2c-pedidos-mas small { color: var(--n2-suave); font-size: .82rem; }

/* carrito largo: en computadora la lista se desplaza dentro de su caja; en celular hay una barra fija con el total */
.n2c-lista-aviso { align-items: center; gap: .35rem; font-size: .8rem; color: var(--n2-suave); margin: 0 0 .25rem; }
.n2c-lista-aviso .material-icons { font-size: 1rem; }
@media (min-width: 992px) {
  .n2c-lista-scroll { max-height: min(560px, calc(100vh - 230px)); overflow-y: auto; margin-right: -.75rem; padding-right: .75rem; scrollbar-width: thin; scrollbar-color: #c5d0e0 transparent; }
  .n2c-lista-scroll::-webkit-scrollbar { width: 6px; }
  .n2c-lista-scroll::-webkit-scrollbar-thumb { background: #c5d0e0; border-radius: 6px; }
}
.n2c-barra-movil { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #fff; border-top: 1px solid var(--n2-borde); box-shadow: 0 -.5rem 1.2rem rgba(2,29,71,.08); padding: .65rem 1rem; transition: transform .25s, opacity .25s; }
.n2c-barra-movil small { display: block; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--n2-suave); }
.n2c-barra-movil b { font-size: 1.15rem; color: var(--n2-marino); }
.n2c-barra-oculta { transform: translateY(120%); opacity: 0; pointer-events: none; }

/* carrito sin sesion (carritoinvitado.php): aviso del resumen y pantalla de la caja que pide la cuenta */
.n2c-aviso-invitado { display: flex; gap: .5rem; margin: .85rem 0 0; padding: .7rem .85rem; border-radius: .8rem; background: var(--n2-fondo); font-size: .83rem; color: var(--n2-suave); line-height: 1.45; }
.n2c-aviso-invitado .material-icons { font-size: 1.1rem; color: var(--n2-azul); }
.n2c-cuenta-compra { max-width: 720px; margin: 0 auto; }
.n2c-cuenta-compra-cabeza { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.n2c-cuenta-compra-cabeza > .material-icons { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 3.2rem; height: 3.2rem; border-radius: 1rem; background: #fff1e3; color: var(--n2-naranja); font-size: 1.6rem; }
.n2c-cuenta-compra-cabeza h2 { font-size: 1.35rem; font-weight: 700; color: var(--n2-texto); margin-bottom: .3rem; }
.n2c-cuenta-compra-cabeza p { color: var(--n2-suave); margin: 0; }
.n2c-cuenta-compra-opciones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin-bottom: 1.25rem; }
.n2c-cuenta-compra-opcion { display: flex; align-items: center; gap: .85rem; padding: 1.1rem 1.15rem; border: 1px solid var(--n2-borde); border-radius: 1rem; color: var(--n2-texto); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.n2c-cuenta-compra-opcion:hover { border-color: var(--n2-azul); box-shadow: 0 .6rem 1.4rem rgba(2,29,71,.1); color: var(--n2-texto); }
.n2c-cuenta-compra-opcion > .material-icons:first-child { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: .8rem; background: #e8f0fc; color: var(--n2-azul); }
.n2c-cuenta-compra-opcion > .material-icons:last-child { margin-left: auto; color: var(--n2-suave); }
.n2c-cuenta-compra-opcion b { display: block; }
.n2c-cuenta-compra-opcion small { color: var(--n2-suave); }
@media (max-width: 575.98px) { .n2c-cuenta-compra-opciones { grid-template-columns: minmax(0, 1fr); } }
