/* Reset general */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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;
}
/* Ocultar los inputs falsos de manera absoluta para que no ocupen espacio ni rompan el diseño */
.input-falso-oculto {
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Contenedor Principal (Caja Burdeos) */
.contenedor-auth {
    background-color: rgba(26, 12, 18, 0.95); /* Color oscuro de tu captura */
    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);
}

/* Logos y Títulos */
.logo-aion {
    max-width: 220px;
    margin-bottom: 30px;
}

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

/* Inputs de Texto */
.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);
}

/* Botón de Envío */
.btn-submit {
    width: 100%;
    padding: 14px;
    background-color: #7E4156; /* Color vino del botón LOGIN */
    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 (Remember me / Forgot) */
.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;
}

/* Separador "OR CONTINUE WITH" */
.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 #444;
}

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

/* Botón Circular de Google */
.btn-google-container {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.btn-google-redondo {
    background-color: #FFFFFF;
    width: 46px;
    height: 46px;
    border-radius: 4px; /* Cuadrado con bordes suaves como tu G */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: transform 0.2s, background-color 0.2s;
}

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

.btn-google-redondo img {
    width: 24px;
    height: 24px;
}

/* Mensajes de Error */
.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;
}
/* Estilos específicos para los Selectores del Shop */
.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; /* Quita el estilo nativo */
    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);
}

.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;
}

.item-info {
    color: #A0A0A0;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}
/* ==========================================================================
   VERSION ENRIQUECIDA DEL CATALOGO WEB (95% FLUIDO)
   ========================================================================== */

/* Estructura para que los paneles de administración y tienda fluyan verticalmente */
body.vista-fluida {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    padding: 30px 20px !important;
    min-height: 100vh;
}

/* Modificador de caja expandida para pantallas anchas */
.contenedor-auth.shop-ancho-maximo {
    width: 95% !important;
    max-width: 1400px !important; 
    margin: 0 auto;
}

/* Rejilla de productos adaptativa (Grid Multicolumna) */
.grid-productos { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 15px; 
    margin: 20px 0; 
    max-height: 500px; 
    overflow-y: auto; 
    padding-right: 5px; 
}

/* Personalización del scroll interno */
.grid-productos::-webkit-scrollbar { width: 6px; }
.grid-productos::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); }
.grid-productos::-webkit-scrollbar-thumb { background: #7E4156; border-radius: 4px; }

/* Tarjetas individuales de productos */
.producto-option { 
    display: flex; 
    align-items: center; 
    background: rgba(255,255,255,0.03); 
    border: 1px solid #42202D; 
    border-radius: 4px; 
    padding: 12px; 
    cursor: pointer; 
    transition: background 0.2s, border-color 0.2s; 
    text-align: left; 
}
.producto-option:hover { 
    background: rgba(126, 65, 86, 0.1); 
    border-color: #7E4156; 
}

/* Inputs de selección del producto */
.producto-option input[type="radio"] { 
    margin-right: 12px; 
    accent-color: #7E4156; 
    width: 18px; 
    height: 18px; 
    cursor: pointer; 
}

/* Miniaturas de imágenes del catálogo */
.prod-img { 
    width: 50px; 
    height: 50px; 
    object-fit: cover; 
    border-radius: 4px; 
    border: 1px solid #42202D; 
    margin-right: 12px; 
    background-color: #111; 
}
.prod-detalles { flex: 1; }
.prod-name { color: #fff; font-size: 15px; font-weight: 500; }
.prod-meta { color: #A0A0A0; font-size: 12px; margin-top: 2px; }
.prod-precio { color: #e6a119; font-weight: bold; font-size: 15px; margin-left: auto; }

/* Fila inferior de selectores */
.seccion-selectores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
    border-top: 1px solid #42202D;
    padding-top: 20px;
}

/* Estilos extra para tablas del panel administrativo */
.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; }
.btn-danger { background-color: #d9534f; color: white; padding: 6px 12px; border-radius: 4px; text-decoration: none; font-size: 12px; font-weight: bold; }
.btn-danger:hover { background-color: #c9302c; }
.btn-accion { display: inline-block; background-color: #7E4156; color: white; padding: 12px 18px; border-radius: 4px; text-decoration: none; margin-bottom: 20px; font-weight: bold; font-size: 14px; border: 1px solid #42202D; text-transform: uppercase; letter-spacing: 0.5px; }
.btn-accion:hover { background-color: #944D65; }
.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; }
.mini-img { width: 36px; height: 36px; object-fit: cover; border-radius: 4px; border: 1px solid #42202D; background-color: #111; }
.toast-notificacion { position: fixed; bottom: 20px; right: 20px; background-color: #7E4156; color: white; padding: 12px 25px; border-radius: 4px; font-weight: bold; box-shadow: 0 4px 12px rgba(0,0,0,0.5); display: none; z-index: 1000; border: 1px solid #944D65; }