/* ============================================ */
/* VARIABLES DE COLOR - MODO OSCURO NEGRO      */
/* ALTO CONTRASTE - DISEÑO PREMIUM             */
/* ============================================ */

:root {
    --bg-page: #000000;
    --text-primary: #ffffff;
    --text-secondary: #d1d5db;
    --card-bg: #0a0a0a;
    --card-border: #1a1a1a;
    --input-bg: #0d0d0d;
    --input-border: #2a2a2a;
    --input-text: #ffffff;
    --button-bg: #2563eb;
    --button-hover: #1d4ed8;
    --table-header-bg: #0d0d0d;
    --table-row-bg: #0a0a0a;
    --table-row-hover: #1a1a1a;
    --link-color: #60a5fa;
    --border-color: #1a1a1a;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    color-scheme: dark;
}

/* ============================================ */
/* TEMA GLOBAL - MODO OSCURO                   */
/* ============================================ */

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--bg-page);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

/* ============================================ */
/* HEADER Y FOOTER                             */
/* ============================================ */

header,
footer {
    background-color: var(--card-bg);
    color: var(--text-primary);
    border-color: var(--border-color);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ============================================ */
/* MENÚ MÓVIL                                  */
/* ============================================ */

#mobile-menu {
    background-color: var(--card-bg);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ============================================ */
/* CARD / CONTENEDORES                         */
/* ============================================ */

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.card-title {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.card-label {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

/* ============================================ */
/* INPUTS Y FORMS                              */
/* ============================================ */

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="file"],
select,
textarea {
    background-color: var(--input-bg);
    color: var(--input-text);
    border: 1px solid var(--input-border);
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="file"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--button-bg);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    background-color: rgba(13, 13, 13, 0.8);
}

/* ============================================ */
/* BOTONES                                     */
/* ============================================ */

button {
    transition: all 0.3s ease;
}

button:hover {
    background-color: var(--button-hover) !important;
    color: var(--text-primary) !important;
    opacity: 1;
    transform: translateY(-1px);
}

/* ============================================ */
/* TABLAS                                      */
/* ============================================ */

#table-wrap {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background-color: var(--table-header-bg);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

tbody tr {
    background-color: var(--table-row-bg);
    border: 1px solid var(--card-border);
    transition: background-color 0.3s ease;
}

tbody tr:hover {
    background-color: var(--table-row-hover);
}

td, th {
    padding: 12px 16px;
    text-align: left;
    color: var(--text-primary);
}

/* ============================================ */
/* ENLACES                                     */
/* ============================================ */

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

.link-volver {
    color: var(--text-primary);
}

.link-volver:hover {
    text-decoration: underline;
}

/* ============================================ */
/* IMÁGENES                                    */
/* ============================================ */

img {
    max-width: 100%;
    height: auto;
}

/* ============================================ */
/* UTILIDADES                                  */
/* ============================================ */

.shadow-md {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 0 30px rgba(37, 99, 235, 0.1);
}

.rounded {
    border-radius: 4px;
}

.rounded-lg {
    border-radius: 8px;
}

.rounded-xl {
    border-radius: 12px;
}

.transition {
    transition: all 0.3s ease;
}

/* ============================================ */
/* RESPONSIVE                                  */
/* ============================================ */

@media (max-width: 768px) {
    main {
        padding: 1rem;
    }

    header, footer {
        padding: 1rem;
    }
}

/* ============================================ */
/* ESTADOS DE DISPONIBILIDAD PARA SABORES      */
/* ============================================ */

.status-disponible {
    background-color: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-no-disponible {
    background-color: rgba(239, 68, 68, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.ingrediente-disponible {
    background-color: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.ingrediente-no-disponible {
    background-color: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.texto-disponible {
    color: #10b981;
}

.texto-no-disponible {
    color: #ff6b6b;
}

.indicador-disponible {
    background-color: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.indicador-no-disponible {
    background-color: rgba(239, 68, 68, 0.2);
    color: #ff6b6b;
}
/ *   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 / *   E S T A D O S   D E   D I S P O N I B I L I D A D   P A R A   S A B O R E S             * / 
 / *   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 
 . s t a t u s - d i s p o n i b l e   { 
         b a c k g r o u n d - c o l o r :   r g b a ( 3 4 ,   1 9 7 ,   9 4 ,   0 . 1 ) ; 
         c o l o r :   # 2 2 c 5 5 e ; 
         b o r d e r :   1 p x   s o l i d   r g b a ( 3 4 ,   1 9 7 ,   9 4 ,   0 . 2 ) ; 
 } 
 
 . s t a t u s - n o - d i s p o n i b l e   { 
         b a c k g r o u n d - c o l o r :   r g b a ( 2 3 9 ,   6 8 ,   6 8 ,   0 . 1 ) ; 
         c o l o r :   # e f 4 4 4 4 ; 
         b o r d e r :   1 p x   s o l i d   r g b a ( 2 3 9 ,   6 8 ,   6 8 ,   0 . 2 ) ; 
 } 
 
 . i n g r e d i e n t e - d i s p o n i b l e   { 
         b a c k g r o u n d - c o l o r :   r g b a ( 3 4 ,   1 9 7 ,   9 4 ,   0 . 0 5 ) ; 
         b o r d e r :   1 p x   s o l i d   r g b a ( 3 4 ,   1 9 7 ,   9 4 ,   0 . 1 ) ; 
 } 
 
 . i n g r e d i e n t e - n o - d i s p o n i b l e   { 
         b a c k g r o u n d - c o l o r :   r g b a ( 2 3 9 ,   6 8 ,   6 8 ,   0 . 0 5 ) ; 
         b o r d e r :   1 p x   s o l i d   r g b a ( 2 3 9 ,   6 8 ,   6 8 ,   0 . 1 ) ; 
 } 
 
 . t e x t o - d i s p o n i b l e   { 
         c o l o r :   # 2 2 c 5 5 e ; 
 } 
 
 . t e x t o - n o - d i s p o n i b l e   { 
         c o l o r :   # e f 4 4 4 4 ; 
 } 
 
 . i n d i c a d o r - d i s p o n i b l e   { 
         b a c k g r o u n d - c o l o r :   r g b a ( 3 4 ,   1 9 7 ,   9 4 ,   0 . 1 5 ) ; 
         c o l o r :   # 1 6 a 3 4 a ; 
 } 
 
 . i n d i c a d o r - n o - d i s p o n i b l e   { 
         b a c k g r o u n d - c o l o r :   r g b a ( 2 3 9 ,   6 8 ,   6 8 ,   0 . 1 5 ) ; 
         c o l o r :   # d c 2 6 2 6 ; 
 } 
 
 