/* Variables para colores */
:root {
    --primary-bg: #0a0a0a;
    --secondary-bg: #1c2526;
    --gold-gradient: linear-gradient(45deg, #ffd700, #b8860b);
    --gold-shadow: rgba(255, 215, 0, 0.5);
    --text-light: #d3d3d3;
    --border-color: rgba(255, 215, 0, 0.2);
    --input-bg: rgba(255, 255, 255, 0.1); /* Fondo para inputs */
    --input-text: #fff; /* Color del texto en inputs */
}

/* Estilo general del cuerpo */
body {
    font-family: 'Roboto', sans-serif;
    background: var(--gold-gradient); /* Degradado dorado como fondo principal */
    background-attachment: fixed;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow-x: hidden;
}

/* Fondo decorativo con un efecto de luz */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.1), transparent 70%);
    z-index: -1;
}

/* Contenedor principal */
.container {
    background: linear-gradient(145deg, var(--primary-bg), var(--secondary-bg));
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7), inset 0 0 10px var(--gold-shadow);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

/* Detalle de borde dorado */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    border: 2px solid transparent;
    border-image: var(--gold-gradient) 1;
    pointer-events: none;
}

/* Títulos */
h1, h2 {
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 1.5rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px var(--gold-shadow);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    animation: glow 2s infinite alternate;
}

h2 {
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--gold-gradient);
}

/* Animación de brillo para el título principal */
@keyframes glow {
    0% {
        text-shadow: 0 0 15px var(--gold-shadow);
    }
    100% {
        text-shadow: 0 0 25px rgba(255, 215, 0, 0.8);
    }
}

/* Estilos para el formulario */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

label {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

/* Campos de entrada (input y textarea) */
input, textarea {
    background: var(--input-bg); /* Fondo oscuro translúcido */
    color: var(--input-text); /* Texto blanco para visibilidad */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    transition: background 0.3s ease, border-color 0.3s ease;
    outline: none;
}

input:focus, textarea:focus {
    background: rgba(255, 215, 0, 0.2); /* Fondo más claro al enfocar */
    border-color: #ffd700; /* Borde dorado al enfocar */
}

/* Placeholder */
input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.5); /* Placeholder visible */
    font-style: italic;
}

/* Botón */
button {
    background: var(--gold-gradient);
    color: #0a0a0a; /* Texto oscuro para contraste con el fondo dorado */
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--gold-shadow);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mensajes de error, éxito y depuración */
.text-red-500, .text-green-500, .text-blue-500 {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    text-align: center;
    margin: 1rem 0;
}

.text-red-500 {
    color: #ff6b6b; /* Mantener color rojo para errores */
}

.text-green-500 {
    color: #6bff6b; /* Mantener color verde para éxito */
}

.text-blue-500 {
    color: #6bcaff; /* Mantener color azul para depuración */
}

/* Enlace dentro de mensajes */
.text-green-500 a {
    color: #ffd700;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.text-green-500 a:hover {
    color: #b8860b;
}

/* Elementos del menú (para index.php) */
.menu-item {
    font-size: 1.1rem;
    color: var(--text-light);
    padding: 0.75rem;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    position: relative;
    transition: transform 0.3s ease, background 0.3s ease;
}

.menu-item::before {
    content: '✦';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffd700;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-item:hover {
    transform: translateX(10px);
    background: rgba(255, 215, 0, 0.1);
}

.menu-item:hover::before {
    opacity: 1;
}

/* Listas (para index.php) */
ul {
    list-style: none;
    padding: 0;
}

li.menu-item {
    position: relative;
    padding-left: 30px;
}

/* Texto adicional (postres, precio en index.php) */
p {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    text-align: center;
    color: var(--text-light);
    margin-top: 1rem;
}

p:last-of-type {
    font-size: 1.3rem;
    font-weight: bold;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px var(--gold-shadow);
}

/* Detalles decorativos */
.border-b-2 {
    border-bottom: 2px solid var(--border-color);
}

/* Responsive */
@media (max-width: 640px) {
    .container {
        padding: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    .menu-item {
        font-size: 1rem;
    }

    input, textarea {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    button {
        font-size: 1rem;
        padding: 0.5rem;
    }

    p {
        font-size: 1rem;
    }

    p:last-of-type {
        font-size: 1.1rem;
    }
}