@charset "utf-8";
/* ── Hero banner ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;1,300&family=Josefin+Sans:wght@300&display=swap');

:root {
    /* Identidad de Marca - Cambiá esto y cambia todo el sitio */
    --primary-color: #d4af37; /* Dorado para Tu Alianza */
    --secondary-color: #2c3e50;
    --bg-color: #f9f9f9;
    --text-color: #333;
    --container-width: 1200px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
/* ── Header ── */
header {
    background: #2c3e50;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

.nav-links li a:hover { color: #d4af37; }

/* ── Mobile ── */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 12px;
        padding: 14px 16px;
        align-items: flex-start;
    }

    nav > * {
        align-self: flex-start;
    }

    .nav-links {
        gap: 0;
        width: 100%;
        justify-content: space-between;
    }

    .nav-links li a {
        font-size: 14px;
        letter-spacing: 0;
    }

    .cart-texto { display: none; }

    .cart-link {
        padding: 7px 10px;
        gap: 4px;
    }
}


nav a { color: white; text-decoration: none; margin-left: 15px; }

/* Grid de Productos */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 40px 0;
}

.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover { transform: translateY(-5px); }
.card img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 15px; }
.btn-pago { 
    background: var(--primary-color); 
    color: white; 
    border: none; 
    padding: 10px 20px; 
    cursor: pointer; 
    width: 100%;
}
/* Mejora de las Cards de productos */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.card {
    background: #fff;
    border: none;
    border-radius: 4px; /* Menos redondeado = más elegante */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    padding-bottom: 15px;
}

.card img {
    width: 100%;
    height: 250px;
    object-fit: contain; /* Para que no se corten los relojes/anillos */
    background: #fdfdfd;
}

.card h3 {
    font-size: 0.9rem;
    color: #444;
    padding: 0 10px;
    height: 45px; /* Altura fija para que los botones alineen */
    overflow: hidden;
}

.precio {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    margin: 10px 0;
}

/* Estilos para el Menú */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}


.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* ── Carrito ── */
.cart-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #d4af37;
    color: #000 !important;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
}
.cart-link:hover {
    background: #c9a227;
    transform: scale(1.03);
}
.cart-count {
    background: #2c3e50;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

/* ── Menú responsive ── */
@media (max-width: 768px) {
    .nav-links {
        gap: 12px;
    }
    
    .cart-texto {
        display: none;  /* En mobile solo se ve el ícono */
    }
    .cart-link {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .nav-links li:not(:last-child) a {
        font-size: 12px;
    }
}

.cart-icon svg {
    display: block;
    vertical-align: middle;
}

/* Ajuste para mobile por si lo ves en el cel */
@media (max-width: 600px) {
    nav { flex-direction: column; height: auto; padding: 10px 0; }
    .nav-links { gap: 10px; margin-top: 10px; }
}

/* =============================================
   HOME — Grilla de productos, buscador, paginación
   Agregar al final de public/css/style.css
   ============================================= */

/* Wrapper general de la home */
.home-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 15px 60px;
}

/* ---------- BUSCADOR ---------- */
.buscador-wrapper {
    position: relative;
    max-width: 360px;
    margin: 0 0 24px;  /* ← era "0 auto 40px" */
}

.buscador-wrapper input {
    width: 100%;
    padding: 13px 45px 13px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.buscador-wrapper input:focus {
    border-color: #d4af37;
}

.buscador-icono {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: #aaa;
    pointer-events: none;
}

/* ---------- GRILLA ---------- */
.grilla-productos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 24px;
}

/* Tarjeta de producto */
.tarjeta-producto {
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.tarjeta-producto:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.tarjeta-imagen {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tarjeta-imagen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.tarjeta-producto:hover .tarjeta-imagen img {
    transform: scale(1.05);
}

.img-placeholder {
    color: #ccc;
    font-size: 0.85rem;
}

.tarjeta-info {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
}

.tarjeta-info h3 {
    margin: 0;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.4;
    /* Máximo 2 líneas */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tarjeta-precio {
    font-size: 1.1rem;
    font-weight: bold;
    color: #000;
    margin-top: auto;
}

/* ---------- ESTADOS ---------- */
.loading-productos {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #eee;
    border-top-color: #d4af37;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.sin-resultados {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.sin-resultados span {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}

.error-msg {
    grid-column: 1 / -1;
    text-align: center;
    color: #e74c3c;
    padding: 40px;
}

/* ---------- PAGINACIÓN ---------- */
.paginacion {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.paginacion button {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s;
    font-family: inherit;
}

.paginacion button:hover {
    border-color: #d4af37;
    color: #d4af37;
}

.paginacion button.activa {
    background: #d4af37;
    border-color: #d4af37;
    color: #fff;
    font-weight: bold;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 600px) {
    .grilla-productos {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .tarjeta-info h3 {
        font-size: 0.85rem;
    }

    .tarjeta-precio {
        font-size: 1rem;
    }
}
/* =============================================
   PRODUCTO — Detalle de producto
   Agregar al final de public/css/style.css
   ============================================= */

.producto-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 15px 60px;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 28px;
}
.breadcrumb a {
    color: #888;
    text-decoration: none;
}
.breadcrumb a:hover { color: #d4af37; }
.breadcrumb span { margin: 0 6px; }

/* Grid principal */
.producto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

/* Columna imagen */
.producto-imagen-frame {
    background: #f9f9f9;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
}
.producto-imagen-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.img-placeholder.grande {
    color: #ccc;
    font-size: 1rem;
}

/* Columna info */
.producto-nombre {
    font-size: 1.6rem;
    font-weight: bold;
    color: #222;
    margin: 0 0 12px;
    line-height: 1.3;
}
.producto-precio {
    font-size: 2rem;
    font-weight: bold;
    color: #000;
    margin-bottom: 24px;
}

/* Variantes */
.variantes-grupo {
    margin-bottom: 18px;
}
.variante-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.variantes-opciones {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.btn-variante {
    padding: 7px 16px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.15s;
    font-family: inherit;
}
.btn-variante:hover:not(:disabled) {
    border-color: #d4af37;
    color: #d4af37;
}
.btn-variante.seleccionado {
    background: #d4af37;
    border-color: #d4af37;
    color: #fff;
    font-weight: 600;
}
.btn-variante.sin-stock {
    opacity: 0.35;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Cantidad */
.producto-cantidad-row {
    margin-bottom: 22px;
}
.cantidad-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}
.cantidad-control button {
    width: 36px;
    height: 36px;
    border: none;
    background: #f4f4f4;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.15s;
}
.cantidad-control button:hover { background: #e8e8e8; }
.cantidad-control span {
    min-width: 36px;
    text-align: center;
    font-weight: bold;
}

/* Botón agregar */
.btn-agregar-carrito {
    width: 100%;
    padding: 15px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
    margin-bottom: 14px;
}
.btn-agregar-carrito:hover { background: #d4af37; }

/* Mensaje carrito */
.msg-carrito {
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.msg-ok    { background: #eafaf1; color: #27ae60; border: 1px solid #a9dfbf; }
.msg-error { background: #fdf2f2; color: #e74c3c; border: 1px solid #f5c6c6; }

/* Descripción */
.producto-descripcion {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 10px;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Extras (envíos, etc) */
.producto-extras {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 20px;
    font-size: 0.85rem;
    color: #666;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 700px) {
    .producto-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .producto-nombre { font-size: 1.3rem; }
    .producto-precio { font-size: 1.6rem; }
}
/* Botones de tarjeta */
.tarjeta-producto {
    /* ya existía, solo asegurate que NO sea un <a> sino un <div> */
}
.tarjeta-botones {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
}
.btn-tarjeta {
    flex: 1;
    padding: 8px 0;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    border: none;
    font-family: inherit;
    transition: all 0.2s;
}
.btn-info {
    background: #f4f4f4;
    color: #333;
    border: 1px solid #ddd;
}
.btn-info:hover {
    background: #e8e8e8;
}
.btn-agregar {
    background: #000;
    color: #fff;
}
.btn-agregar:hover {
    background: var(--primary-color);
    color: #000;
}
/* =============================================
   CATEGORÍAS — Banners y Pills
   Agregar al final de public/css/style.css
   ============================================= */

/* -- Banners de categorías -- */
/* =============================================
   BANNERS CON IMAGEN — reemplazar el bloque
   de .banner-cat en style.css
   ============================================= */

.banner-cat {
    position: relative;
    padding: 28px 20px 20px;
    border-radius: 10px;
    cursor: pointer;
    color: #fff;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    min-height: 160px;        /* altura cómoda para imagen */
    max-height: 200px;        /* evita que se estiren demasiado */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.banner-cat:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.25);
}

/* Overlay oscuro para que el texto se lea sobre la imagen */
.banner-cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.05) 0%,
        rgba(0,0,0,0.55) 100%
    );
    transition: background 0.2s;
    z-index: 0;
}

.banner-cat:hover .banner-cat-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.1) 0%,
        rgba(0,0,0,0.7) 100%
    );
}

/* Textos encima del overlay */
.banner-cat-nombre,
.banner-cat-sub,
.banner-cat-flecha {
    position: relative;
    z-index: 1;
}

.banner-cat-nombre {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.banner-cat-sub {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 4px;
    line-height: 1.4;
}

.banner-cat-flecha {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 1.1rem;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 1;
}

.banner-cat:hover .banner-cat-flecha {
    opacity: 1;
    transform: translateX(4px);
}

/* Línea dorada arriba — solo para banners sin imagen */
.banner-cat:not(.banner-con-imagen)::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--primary-color);
    opacity: 0.7;
    z-index: 1;
}

/* Banner "Ver todo" siempre dorado */
.banner-todos {
    background: #d4af37 !important;
    background-image: none !important;
    color: #000 !important;
}

.banner-todos .banner-cat-nombre { color: #000; text-shadow: none; }
.banner-todos .banner-cat-sub    { color: #333; opacity: 0.7; }
.banner-todos .banner-cat-overlay { display: none; }

/* Responsive */
@media (max-width: 600px) {
    .banner-cat {
        min-height: 120px;
        max-height: 150px;
        padding: 20px 14px 14px;
    }
    .banner-cat-nombre { font-size: 0.95rem; }
}


.loading-categorias {
    text-align: center;
    padding: 20px;
}

/* -- Pills horizontales -- */
.pills-categorias {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.pill-grupo {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pill-hijas {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding-left: 8px;
}

.pill {
    padding: 7px 16px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    font-size: 0.88rem;
    font-family: inherit;
    white-space: nowrap;
    transition: all 0.15s;
    color: #444;
}

.pill:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pill.activa {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
    font-weight: 600;
}

.pill-hija {
    font-size: 0.8rem;
    padding: 5px 12px;
    background: #f9f9f9;
    color: #666;
}

.pill-hija.activa {
    background: var(--primary-color);
    color: #000;
    font-weight: 600;
}

/* -- Título de sección activa -- */
.titulo-seccion {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 16px;
}

.breadcrumb-link {
    cursor: pointer;
    color: var(--primary-color);
    text-decoration: underline;
}

.breadcrumb-link:hover {
    color: #b8971f;
}

/* -- Responsive -- */
@media (max-width: 600px) {
    .banners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .banner-cat {
        min-height: 90px;
        padding: 20px 14px 14px;
    }
    .banner-cat-nombre {
        font-size: 0.9rem;
    }
    .pills-categorias {
        gap: 6px;
    }
}
/* Corregir breadcrumb estirado */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 28px;
}
.breadcrumb a {
    color: #888;
    text-decoration: none;
    white-space: nowrap;
}
.breadcrumb a:hover { color: #d4af37; }
.bc-sep {
    color: #bbb;
    padding: 0 6px;
    flex-shrink: 0;
}
.bc-actual {
    color: #444;
    white-space: nowrap;
}
#producto-detalle {
    width: 100%;
}

#producto-detalle .breadcrumb {
    width: fit-content;
    max-width: 100%;
}

/* Reemplazar el .banners-grid que ya tenés por este: */
.banners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 900px) {
    .banners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .banners-grid {
        grid-template-columns: 1fr;
    }
}



.hero-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    background: #fff;
    border-left: 4px solid #d4af37;
    border-radius: 0 8px 8px 0;
    padding: 32px 36px;
    margin-bottom: 40px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.hero-izq { flex: 1; min-width: 220px; }

.hero-tag {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 11px;
    font-weight: 300;
    color: #d4af37;
    letter-spacing: 0.3em;
    margin-bottom: 12px;
}

.hero-titulo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 300;
    font-style: italic;
    color: #2c3e50;
    line-height: 1.2;
    margin: 0 0 12px;
}

.hero-sub {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 12px;
    font-weight: 300;
    color: #aaa;
    letter-spacing: 0.15em;
    margin: 0;
}

.hero-der {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: right;
    min-width: 220px;  /* ← agregar */
}

.hero-dato {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 14px;   /* ← era 12px */
    font-weight: 300;
    color: #555;       /* ← era #888, más visible */
    letter-spacing: 0.05em;
}
@media (max-width: 600px) {
    .hero-banner { flex-direction: column; padding: 24px 20px; }
    .hero-der { text-align: left; }
    .hero-titulo { font-size: 28px; }
}

.hero-whatsapp {
    text-decoration: none;
    color: #555;
    transition: color 0.2s;
}

.hero-whatsapp:hover {
    color: #25d366; /* verde WhatsApp */
}

.checkout-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 15px 60px;
}

.checkout-titulo {
    font-size: 1.6rem;
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 12px;
    border-bottom: 2px solid #d4af37;
    display: inline-block;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

/* Secciones del formulario */
.checkout-seccion {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
    padding: 24px;
    margin-bottom: 20px;
}

.checkout-seccion h2 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-group input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #d4af37;
}

/* Opciones de envío */
.envio-opciones {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.envio-opcion {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 14px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.envio-opcion:has(input:checked) {
    border-color: #d4af37;
    background: #fffdf5;
}

.envio-opcion input[type=radio] {
    accent-color: #d4af37;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.envio-opcion-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.envio-opcion-titulo {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.envio-opcion-precio {
    font-size: 0.85rem;
    color: #888;
}

.envio-opcion-gratis {
    font-size: 0.85rem;
    color: #27ae60;
    font-weight: 600;
}

.retiro-info {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 14px;
    margin-top: 16px;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

/* Resumen */
.resumen-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
    padding: 24px;
    position: sticky;
    top: 20px;
}

.resumen-card h2 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.resumen-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 10px;
}

.resumen-item-nombre small {
    color: #aaa;
}

.resumen-linea {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #666;
    padding: 8px 0;
    border-top: 1px solid #f0f0f0;
}

.resumen-total {
    font-size: 1.1rem;
    font-weight: bold;
    color: #000;
    border-top: 2px solid #eee;
    padding-top: 12px;
    margin-top: 4px;
}

.btn-pagar {
    width: 100%;
    padding: 15px;
    background: #009ee3;  /* Azul Mercado Pago */
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
    margin-top: 20px;
}

.btn-pagar:hover { background: #007bb5; }
.btn-pagar:disabled { background: #aaa; cursor: not-allowed; }

.mp-seguro {
    text-align: center;
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 10px;
}

.msg-checkout {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-top: 14px;
}
.msg-ok    { background: #eafaf1; color: #27ae60; border: 1px solid #a9dfbf; }
.msg-error { background: #fdf2f2; color: #e74c3c; border: 1px solid #f5c6c6; }

/* ── Páginas de resultado ── */
.pago-resultado-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 15px;
}

.pago-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    padding: 48px 40px;
    text-align: center;
    max-width: 480px;
    width: 100%;
}

.pago-icono {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
}

.pago-ok .pago-icono  { background: #eafaf1; color: #27ae60; }
.pago-error .pago-icono { background: #fdf2f2; color: #e74c3c; }

.pago-card h1 { font-size: 1.4rem; color: #333; margin: 0 0 12px; }
.pago-card p  { color: #666; margin: 0 0 20px; }

.pago-numero {
    background: #f9f9f9;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 16px;
}

.pago-info {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 24px;
}

.pago-info a { color: #d4af37; }

.btn-volver, .btn-reintentar {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-volver     { background: #2c3e50; color: #fff; }
.btn-volver:hover { background: #d4af37; color: #000; }
.btn-reintentar  { background: #fff; color: #333; border: 1px solid #ddd; }
.btn-reintentar:hover { border-color: #d4af37; }

/* Responsive */
@media (max-width: 700px) {
    .checkout-grid { grid-template-columns: 1fr; }
    .envio-opciones { grid-template-columns: 1fr; }
    .resumen-card { position: static; }
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-group select:focus {
    outline: none;
    border-color: #d4af37;
}

@media (max-width: 500px) {
    .form-row { grid-template-columns: 1fr; }
}

/* ── Banner de aviso global ──
   Agregar al final de public/css/style.css
   ─────────────────────────────────────── */

.banner-aviso-global {
    background: #d4af37;
    color: #000;
    text-align: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    width: 100%;
    box-sizing: border-box;
    line-height: 1.4;
}

@media (max-width: 600px) {
    .banner-aviso-global {
        font-size: 13px;
        padding: 10px 14px;
    }
}

/* =============================================
   NOSOTROS
   Agregar al final de public/css/style.css
   ============================================= */

.nosotros-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 15px 60px;
}

.nosotros-header {
    margin-bottom: 36px;
}

.nosotros-header h1 {
    font-size: 2rem;
    color: #2c3e50;
    margin: 0 0 10px;
    font-weight: 600;
}

.nosotros-divider {
    width: 60px;
    height: 3px;
    background: #d4af37;
    border-radius: 2px;
}

.nosotros-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

.nosotros-col-principal {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.nosotros-seccion h2 {
    font-size: 1.15rem;
    color: #2c3e50;
    margin: 0 0 12px;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.nosotros-texto {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
}

/* Card lateral de contacto */
.nosotros-card-contacto {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.nosotros-card-contacto h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 8px;
}

.nosotros-card-contacto p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.btn-whatsapp-nosotros {
    display: inline-block;
    margin-top: 8px;
    background: #25d366;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.btn-whatsapp-nosotros:hover {
    background: #1da851;
}

/* Responsive */
@media (max-width: 700px) {
    .nosotros-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .nosotros-header h1 { font-size: 1.6rem; }
}

/* =============================================
   REPARACIONES
   Agregar al final de public/css/style.css
   ============================================= */

.reparaciones-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 15px 60px;
}

.rep-header {
    margin-bottom: 28px;
}

.rep-header h1 {
    font-size: 2rem;
    color: #2c3e50;
    margin: 0 0 10px;
    font-weight: 600;
}

.rep-imagen-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.rep-imagen {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.rep-texto {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 36px;
}

.rep-contacto {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
}

.rep-contacto p {
    font-size: 1rem;
    color: #555;
    margin: 0 0 14px;
}

@media (max-width: 600px) {
    .rep-header h1 { font-size: 1.6rem; }
    .rep-imagen { max-height: 250px; }
}

/* ── Toast de carrito ── */
.toast-carrito {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #2c3e50;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 9999;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s;
    border-left: 4px solid #d4af37;
}
.toast-carrito.visible {
    opacity: 1;
    transform: translateY(0);
}