@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;700&display=swap');

*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    min-height: 100vh;
    overflow-y: auto; 
    background: #0c192c; 
}

.container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

.bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    pointer-events: none; /* Para que no interfieran con clics */
    z-index: -1;
}

.bubbles span {
    width: 2vw;
    height: 2vw;
    max-width: 30px;
    max-height: 30px;
    min-width: 10px;
    min-height: 10px;
    margin: 0.5vw;
    border-radius: 50%;
    background: #4fc3dc;
    box-shadow: 0 0 0 0.8vw #4fc3dc44, 0 0 5vw #4fc3dc, 0 0 10vw #4fc3dc;
    animation: animate 1s linear infinite;
    animation-duration: calc(90s / var(--i));
}

.bubbles span:nth-child(even){
    background: #ff2d75;
    box-shadow: 0 0 0 10px #ff2d7544, 
    0 0 50px #ff2d75, 
    0 0 100px #ff2d75;
}

@keyframes animate {
    0% {
        transform: translateY(100vh) scale(0);
    }
    100% {
        transform: translateY(-10vh) scale(1);
    }
}

header {
    width: auto;
    height: auto;
    background: rgba(169, 169, 169, 0.3);
    padding: 5px;
    box-shadow: 0px 2px 10px rgba(169, 169, 169, 0.5);
}

header img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

h1 {
    margin: 5px auto;
    text-align: center;
    background: rgba(169, 169, 169, 0.5);
    color: white;
    text-transform: uppercase;
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    padding: 20px;
    border-radius: 50px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: block;
    width: fit-content;
}

h2 {
    margin: 5px auto;
    font-family: 'Press Start 2P', cursive;
    color: white;
    text-align: center;
    text-transform: uppercase;
    font-size: 18px; /* Aumentado */
    padding: 20px; /* Un poco más de espacio */
}

nav {
    font-family: 'Press Start 2P', cursive;
    margin: 5px auto;
    text-align: center;
    background: rgba(169, 169, 169, 0.5);
    padding: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    font-size: 14px; /* Aumentado de 10px a 14px */
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 20px;
    font-weight: normal;
    transition: color 0.5s, transform 0.5s;
}

nav a:hover {
    color: #e261a2;
    transform: scale(1.1);
}

/* Estilos para la sección de productos */
.productos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centra las cajas */
    align-items: center;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto; /* Centra la sección en la pantalla */
}

.producto {
    background: rgba(169, 169, 169, 0.8);
    padding: 10px;
    margin: 15px;
    border-radius: 20px;
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.6);
    width: 280px;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 18px;
}

.producto:hover {
    transform: scale(1.07);
    box-shadow: 0px 8px 25px rgba(255, 255, 255, 0.25);
}

.producto img {
    width: 100%; /* Que ocupe todo el ancho de la caja */
    height: 150px; /* Altura fija para uniformidad */
    object-fit: cover; /* Recorta la imagen sin deformarla */
    border-radius: 10px;
    display: block; /* Evita espacios blancos extra alrededor de la imagen */
}

.login-container {
    background-color: #262626;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    text-align: center;
    width: 400px;
    max-width: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

h3 {
    color: #ffffff;
    font-size: 22px; /* Aumentar tamaño del título */
    margin-bottom: 20px;
}

button {
    background: linear-gradient(90deg, #ff5722, #ff4500);
    color: white;
    border: none;
    padding: 12px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
}

button:hover {
    background: linear-gradient(90deg, #e03e00, #b02e00);
    transform: scale(1.05);
}

/* Estilos para formularios */
.form-container {
    background: linear-gradient(135deg, #292929, #3a3a3a);
    padding: 25px;
    border-radius: 12px;
    width: 320px;
    margin: auto;
    box-shadow: 0px 6px 20px rgba(255, 255, 255, 0.15);
    text-align: center;
}

.form-container h2 {
    color: #ff5722;
    font-weight: 700;
}

.form-container input,
.form-container select {
    width: calc(100% - 20px);
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ff4500;
    border-radius: 6px;
    background-color: #333;
    color: white;
    font-size: 16px;
}

.form-container a {
    display: block;
    margin-top: 15px;
    color: #ff4500;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.form-container a:hover {
    color: #ffdd57;
}

/* Estilos para la administración */
.admin-container {
    width: 80%;
    margin: auto;
    background: linear-gradient(135deg, #292929, #3a3a3a);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0px 6px 20px rgba(255, 255, 255, 0.15);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 1px solid white;
    padding: 12px;
    text-align: center;
    font-size: 14px;
}

th {
    font-weight: bold;
    color: white;
}

td {
    background-color: #333;
    color: white;
}

input {
    width: 100%;
    background-color: #444;
    color: white;
    border: 1px solid #ff4500;
    padding: 12px;
    border-radius: 6px;
}

button {
    font-size: 16px;
}

.success-bubble {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4CAF50; /* Verde para éxito */
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: bubbleFadeIn 3s ease-in-out;
}

.success-bubble a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.success-bubble a:hover {
    color: #ffeb3b; /* Amarillo cuando el enlace es hover */
}

/* Animación para el efecto de burbuja flotante */
@keyframes bubbleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-10px) translateX(-50%);
    }
    50% {
        opacity: 1;
        transform: translateY(0) translateX(-50%);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px) translateX(-50%);
    }
}