/* ==========================================================================
   RESET GENERAL Y PARÁMETROS BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Regla base: Todas las pantallas por defecto mantendrán un centrado absoluto perfecto */
body {
    background: url('../images/fondo.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    color: #FFFFFF;
}

/* Contenedor de aislamiento estructural exclusivo para la Webshop pública */
.layout-shop-fluido {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: calc(100vh - 40px);
}

/* ==========================================================================
   ESTILOS DE CONTENEDORES (AUTH, LOGIN Y REGISTRO)
   ========================================================================== */
.contenedor-auth {
    background-color: rgba(26, 12, 18, 0.95);
    border: 1px solid #42202D;
    border-radius: 6px;
    padding: 40px 35px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

/* Control preventivo para evitar el desborde visual de logos gigantes */
.contenedor-auth img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.titulo-auth {
    color: #e0e0e0;
    font-size: 24px;
    margin-bottom: 25px;
    font-weight: 300;
}

.input-grupo {
    margin-bottom: 20px;
}

.input-auth {
    width: 100%;
    padding: 14px 16px;
    background-color: #FFFFFF;
    border: none;
    border-radius: 4px;
    color: #333333;
    font-size: 15px;
    outline: none;
    transition: box-shadow 0.2s;
}

.input-auth:focus {
    box-shadow: 0 0 0 3px rgba(126, 65, 86, 0.5);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background-color: #7E4156;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: #944D65;
}

.opciones-extra {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    font-size: 13px;
    color: #A0A0A0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-label input {
    margin-right: 8px;
    accent-color: #7E4156;
}

.enlace-auth {
    color: #A0A0A0;
    text-decoration: none;
    transition: color 0.2s;
}

.enlace-auth:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

/* Línea divisoria elegante */
.separador {
    display: flex;
    align-items: center;
    text-align: center;
    color: #8A8A8A;
    font-size: 12px;
    font-weight: bold;
    margin: 35px 0 20px 0;
}

.separador::before, .separador::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #42202D;
}

.separador:not(:empty)::before { margin-right: .5em; }
.separador:not(:empty)::after { margin-left: .5em; }

/* Mensajes de Alerta */
.msg-error {
    background-color: rgba(255, 77, 77, 0.15);
    border-left: 4px solid #ff4d4d;
    color: #ff4d4d;
    padding: 10px;
    font-size: 14px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: left;
}

.msg-exito {
    background-color: rgba(77, 255, 142, 0.15);
    border-left: 4px solid #4dff8e;
    color: #4dff8e;
    padding: 12px;
    font-size: 14px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: left;
}

/* Selector Personalizado con flecha SVG integrada */
.select-auth {
    width: 100%;
    padding: 14px 16px;
    background-color: #FFFFFF;
    border: none;
    border-radius: 4px;
    color: #333333;
    font-size: 15px;
    outline: none;
    transition: box-shadow 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://w3.org' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%237E4156' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    cursor: pointer;
}

.select-auth:focus {
    box-shadow: 0 0 0 3px rgba(126, 65, 86, 0.5);
}

/* Tablas Administrativas */
.tabla-admin { 
    width: 100%; 
    border-collapse: collapse; 
    margin-top: 20px; 
    color: #fff; 
    font-size: 14px; 
    text-align: left; 
}
.tabla-admin th { 
    background-color: #7E4156; 
    color: #fff; 
    padding: 12px; 
    border: 1px solid #42202D; 
    font-weight: 600; 
}
.tabla-admin td { 
    padding: 12px; 
    border: 1px solid #42202D; 
    background-color: rgba(255,255,255,0.02); 
    vertical-align: middle; 
}

.badge-activo { background-color: rgba(77, 255, 142, 0.15); color: #4dff8e; padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: bold; }
.badge-inactivo { background-color: rgba(255, 77, 77, 0.15); color: #ff4d4d; padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: bold; }
/* ==========================================================================
   ESTILOS DE LA ARQUITECTURA DE LA TIENDA (LAYOUT ENRIQUECIDO V2)
   ========================================================================== */
.contenedor-shop-general {
    background-color: rgba(26, 12, 18, 0.96);
    border: 1px solid #42202D;
    border-radius: 8px;
    padding: 25px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 10;
}

.shop-header-top {
    display: grid;
    grid-template-columns: 320px 1fr 280px;
    align-items: center;
    border-bottom: 1px solid #42202D;
    padding-bottom: 20px;
    margin-bottom: 25px;
    gap: 20px;
}

.header-izq {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

/* Fuerza al logo a mantener su escala correcta aislada del body flex */
.logo-tienda, .header-izq img {
    max-width: 190px !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

.btn-toggle-temporada {
    background-color: #7E4156;
    color: #FFFFFF;
    border: 1px solid #42202D;
    border-radius: 4px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s;
}

.btn-toggle-temporada:hover { background-color: #944D65; }
.btn-toggle-temporada.filtro-activo { background-color: #e6a119; color: #111; border-color: #e6a119; }

.header-banner-centro { width: 100%; }

.banner-decorativo-shop {
    width: 100%;
    height: 90px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    border: 1px solid #42202D;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 8px 15px;
}

.banner-tag {
    background-color: rgba(0, 0, 0, 0.75);
    color: #e6a119;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 2px;
    text-transform: uppercase;
}

.banner-decorativo-vacio {
    width: 100%;
    height: 90px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed #42202D;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555555;
    font-size: 14px;
    font-style: italic;
}

.header-der { text-align: right; }
.user-saldo-info { color: #A0A0A0; font-size: 14px; line-height: 1.5; }
.oro-resaltado { color: #e6a119; font-weight: bold; font-size: 16px; }

/* Disposición Dividida */
.shop-layout-principal {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.shop-sidebar-izq {
    width: 240px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid #42202D;
    border-radius: 4px;
    padding: 20px 15px;
    flex-shrink: 0;
}

.titulo-sidebar {
    color: #e6a119;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #42202D;
}

.lista-categorias-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cat-link {
    display: block;
    color: #A0A0A0;
    text-decoration: none;
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.2s;
}

.cat-link:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.03); }
.cat-link.active { color: #FFFFFF; background: #7E4156; font-weight: bold; }
.btn-volver-atras { display: inline-block; color: #8A8A8A; font-size: 13px; text-decoration: none; }
.btn-volver-atras:hover { color: #FFFFFF; }

/* Rejilla de Cards independientes */
.shop-contenido-grilla { flex-grow: 1; }

.grid-productos-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    max-height: 680px;
    overflow-y: auto;
    padding-right: 8px;
}

.grid-productos-cards::-webkit-scrollbar { width: 6px; }
.grid-productos-cards::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.1); }
.grid-productos-cards::-webkit-scrollbar-thumb { background: #42202D; border-radius: 4px; }
.grid-productos-cards::-webkit-scrollbar-thumb:hover { background: #7E4156; }

.card-item-shop {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #42202D;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
    cursor: pointer;
}

.card-item-shop:hover {
    transform: translateY(-3px);
    border-color: #7E4156;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.card-imagen-contenedor {
    width: 100%;
    height: 130px;
    background-color: #0d0609;
    border-bottom: 1px solid #42202D;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.card-imagen-contenedor img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.card-info-cuerpo {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-titulo {
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-descripcion {
    color: #8A8A8A;
    font-size: 12px;
    line-height: 1.4;
    height: 38px;
    overflow: hidden;
    margin-bottom: 15px;
}

.card-footer-accion {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-precio { color: #e6a119; font-weight: bold; font-size: 16px; }

.btn-card-adquirir {
    background-color: transparent;
    color: #FFFFFF;
    border: 1px solid #7E4156;
    border-radius: 4px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
}

.card-item-shop:hover .btn-card-adquirir {
    background-color: #7E4156;
}

/* Ventana Flotante In-Situ (Modal) */
.modal-shop-flotante {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.modal-shop-contenido {
    background-color: #1a0c12;
    border: 1px solid #7E4156;
    border-radius: 6px;
    width: 90%;
    max-width: 680px;
    padding: 30px;
    position: relative;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.9);
}

.btn-cerrar-modal {
    position: absolute;
    right: 18px;
    top: 12px;
    color: #8A8A8A;
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
}

.btn-cerrar-modal:hover { color: #FFFFFF; }

.modal-cuerpo-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 30px;
}

.modal-item-vista {
    text-align: center;
    border-right: 1px solid #2d1620;
    padding-right: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-img-wrapper {
    width: 90px;
    height: 90px;
    background: #0d0609;
    border: 1px solid #42202D;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    padding: 10px;
}

.modal-img-wrapper img { max-width: 100%; max-height: 100%; object-fit: contain; }
#modal-item-titulo { color: #FFFFFF; font-size: 16px; font-weight: bold; margin-bottom: 10px; }
#modal-item-desc { color: #8A8A8A; font-size: 12px; line-height: 1.4; margin-bottom: 20px; }

.modal-item-precio {
    color: #A0A0A0;
    font-size: 13px;
    margin-top: auto;
    background: rgba(0,0,0,0.2);
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #42202D;
}
.modal-item-precio span { color: #e6a119; font-weight: bold; font-size: 16px; }

.modal-formulario-vista { display: flex; flex-direction: column; justify-content: center; }
.modal-paso-titulo { color: #e6a119; font-size: 14px; text-transform: uppercase; margin-bottom: 20px; }
.modal-label { display: block; color: #A0A0A0; font-size: 13px; margin-bottom: 6px; }
/* ==========================================================================
   CORRECCIÓN DEL BOTÓN CIRCULAR DE GOOGLE (IMAGEN GIGANTE)
   ========================================================================== */

/* Fuerza al contenedor a mantener un tamaño fijo de caja suave */
.btn-google-redondo, .btn-google-container a {
    background-color: #FFFFFF !important;
    width: 46px !important;
    height: 46px !important;
    border-radius: 4px !important; /* Bordes suaves según tu diseño original */
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
    transition: transform 0.2s, background-color 0.2s !important;
    overflow: hidden !important;
}

.btn-google-redondo:hover {
    transform: scale(1.05) !important;
    background-color: #F5F5F5 !important;
}

/* Control estricto de la imagen interna para evitar el desborde en producción */
.btn-google-redondo img, .btn-google-container img {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
}