/* /assets/css/style.css */

/* --- Variables de Paleta de Colores --- */
:root {
    --arena: #F3E6D0;
    --beige: #BFA27A;
    --tierra: #6F4E37;
    --oscuro: #2F241D;
    --dorado: #CAA24A;
    --fuente-titulos: 'Cinzel', serif;
    --fuente-textos: 'Lora', serif;
}

/* --- Reseteo Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--fuente-textos);
    background-color: var(--arena);
    color: var(--oscuro);
    line-height: 1.6;
}

h1, h2, h3 { font-family: var(--fuente-titulos); }

/* --- Barra de Navegación --- */
.navbar {
    background-color: var(--oscuro);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    border-bottom: 3px solid var(--dorado);
}

.navbar .logo a {
    color: var(--dorado);
    text-decoration: none;
    font-size: 2rem;
    font-family: var(--fuente-titulos);
    font-weight: bold;
}

.menu-ancestral {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.menu-ancestral a {
    color: var(--arena);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.menu-ancestral a:hover {
    color: var(--dorado);
    text-shadow: 0 0 8px rgba(202, 162, 74, 0.6);
}

/* --- Botones y Efectos Metalizados --- */
.btn-dorado {
    background: linear-gradient(135deg, #BFA27A, #CAA24A, #BFA27A);
    color: var(--oscuro);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.btn-dorado:hover {
    background: linear-gradient(135deg, #CAA24A, #F3E6D0, #CAA24A);
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--dorado); /* Efecto Brillo / Glow */
}

/* --- Hero Banner --- */
.hero-banner {
    background-color: var(--tierra);
    color: var(--arena);
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    border-bottom: 5px solid var(--dorado);
}

.hero-banner h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--dorado);
}

/* --- Footer --- */
.footer-ancestral {
    background-color: var(--oscuro);
    color: var(--beige);
    padding: 3rem 5% 1rem;
    margin-top: 3rem;
    border-top: 2px solid var(--dorado);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3 { color: var(--dorado); margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col a { color: var(--arena); text-decoration: none; }
.footer-col a:hover { color: var(--dorado); }

.form-boletin input {
    padding: 10px;
    border: 1px solid var(--beige);
    background-color: var(--arena);
    color: var(--oscuro);
    border-radius: 4px;
    margin-bottom: 10px;
    width: 100%;
}

/* /assets/css/style.css (Agregar al final) */

/* --- Vista Carrito / Morral --- */
.vista-carrito {
    padding: 3rem 5%;
}

.cabecera-carrito {
    text-align: center;
    margin-bottom: 3rem;
}

.cabecera-carrito h1 i {
    margin-right: 10px;
}

.layout-carrito {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* Columna Izquierda */
.lista-items {
    flex: 2;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Tarjeta individual de producto con animaciones */
.item-carrito {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
    padding: 1rem;
    border-radius: 20px; /* Bordes muy redondeados */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(191, 162, 122, 0.2); /* Borde sutil beige */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.item-carrito:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(202, 162, 74, 0.25); /* Resplandor dorado */
}

.item-imagen img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
}

.item-detalles {
    flex: 1;
    padding: 0 1.5rem;
}

.item-detalles h3 {
    font-size: 1.1rem;
    color: var(--tierra);
    margin-bottom: 0.3rem;
}

.precio-unitario {
    color: #888;
    font-size: 0.9rem;
}

/* Controles de cantidad estilo píldora */
.control-cantidad {
    display: flex;
    align-items: center;
    background-color: var(--arena);
    border-radius: 25px; /* Estilo píldora */
    padding: 5px 10px;
    border: 1px solid var(--beige);
}

.control-cantidad button {
    background: none;
    border: none;
    color: var(--oscuro);
    cursor: pointer;
    font-size: 1rem;
    padding: 5px;
    transition: color 0.2s;
}

.control-cantidad button:hover {
    color: var(--dorado);
}

.control-cantidad input {
    width: 40px;
    text-align: center;
    background: transparent;
    border: none;
    font-weight: bold;
    color: var(--oscuro);
    outline: none;
}

.item-subtotal {
    width: 100px;
    text-align: right;
    font-size: 1.1rem;
    color: var(--oscuro);
}

/* Botón de eliminar animado */
.btn-icono {
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
    padding: 10px;
}

.btn-icono:hover {
    color: #c0392b;
    transform: scale(1.2) rotate(5deg);
}

/* Columna Derecha: Tarjeta Resumen */
.resumen-pago {
    flex: 1;
    min-width: 300px;
    background: linear-gradient(145deg, var(--arena), #ffffff);
    padding: 2rem;
    border-radius: 25px;
    border: 2px solid var(--dorado);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: sticky;
    top: 20px;
}

.resumen-pago h2 {
    color: var(--tierra);
    margin-bottom: 1rem;
    text-align: center;
}

.resumen-pago hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, transparent, var(--beige), transparent);
    margin: 1.5rem 0;
}

.fila-resumen {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.fila-resumen.envio {
    color: #666;
    font-size: 0.95rem;
}

.fila-resumen.total {
    font-size: 1.4rem;
    font-weight: bold;
}

.btn-bloque {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 1.5rem;
    padding: 15px 0;
    font-size: 1.1rem;
    border-radius: 30px; /* Botón muy redondeado */
}

/* Sección Seguridad Inferior */
.metodos-pago-seguro {
    margin-top: 2rem;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

.iconos-pagos {
    margin-top: 10px;
    font-size: 1.8rem;
    color: var(--tierra);
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Animación de estado vacío */
.carrito-vacio {
    text-align: center;
    padding: 4rem 2rem;
    background-color: #fff;
    border-radius: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.animacion-flotar i {
    animation: flotar 3s ease-in-out infinite;
}

@keyframes flotar {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

/* Responsividad para móviles */
@media (max-width: 768px) {
    .item-carrito {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .item-detalles { padding: 0; }
    .item-subtotal { text-align: center; width: 100%; }
}
/* /assets/css/style.css (Agregar al final) */

/* --- Vista Checkout --- */
.vista-checkout {
    padding: 3rem 5%;
}

.cabecera-checkout {
    text-align: center;
    margin-bottom: 3rem;
}

.layout-checkout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* Reutilizando la clase tarjeta-glass del carrito */
.tarjeta-glass {
    background: linear-gradient(145deg, var(--arena), #ffffff);
    padding: 2.5rem;
    border-radius: 25px;
    border: 2px solid var(--dorado);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.seccion-formulario {
    flex: 2;
    min-width: 320px;
}

.seccion-resumen-fijo {
    flex: 1;
    min-width: 320px;
    position: sticky;
    top: 20px;
}

.separador-dorado {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, transparent, var(--dorado), transparent);
    margin: 1.5rem 0;
}

.separador-dorado.gruesa { height: 2px; }

/* Grid de Formulario */
.grid-inputs {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.grupo-input {
    display: flex;
    flex-direction: column;
}

.ancho-completo { width: 100%; }
.mitad { width: calc(50% - 0.75rem); }

.grupo-input label {
    font-size: 0.95rem;
    color: var(--tierra);
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.grupo-input input, .grupo-input textarea {
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid var(--beige);
    background-color: rgba(255, 255, 255, 0.7);
    color: var(--oscuro);
    font-family: var(--fuente-textos);
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.grupo-input input:focus, .grupo-input textarea:focus {
    border-color: var(--dorado);
    box-shadow: 0 0 8px rgba(202, 162, 74, 0.3);
}

.titulo-margen { margin-top: 2rem; }

/* Checkboxes y Radios */
.terminos-legales {
    margin-top: 2rem;
    background: rgba(191, 162, 122, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
}

.checkbox-legal {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--oscuro);
}

.checkbox-legal input { margin-top: 4px; }
.checkbox-legal a { color: var(--tierra); font-weight: bold; text-decoration: underline; }

.opciones-pago {
    background: #fff;
    border: 1px solid var(--beige);
    border-radius: 15px;
    padding: 1rem;
}

.opcion-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: bold;
}

.iconos-mini {
    margin-left: auto;
    font-size: 1.5rem;
    color: var(--tierra);
}

/* Mini Items del Resumen */
.lista-checkout-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 10px;
}

.item-mini {
    display: flex;
    align-items: center;
    gap: 15px;
}

.imagen-mini {
    position: relative;
    width: 65px;
    height: 65px;
}

.imagen-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--beige);
}

.badge-cantidad {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--tierra);
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
}

.info-mini h4 {
    font-size: 0.95rem;
    color: var(--oscuro);
    margin: 0 0 5px 0;
}

.precio-mini {
    font-weight: bold;
    color: var(--tierra);
    margin: 0;
}

.total-final {
    font-size: 1.5rem;
}

.btn-pagar { font-size: 1.2rem; padding: 18px 0; margin-top: 2rem; }
.nota-seguridad { text-align: center; font-size: 0.85rem; color: #888; margin-top: 1rem; }

/* Responsive */
@media (max-width: 768px) {
    .mitad { width: 100%; }
    .layout-checkout { flex-direction: column-reverse; }
    .seccion-resumen-fijo { position: static; }
}