* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
}

/*  NAVBAR  */
.navbar {
    background: #1a1a2e;
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00d4ff;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar ul a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.navbar ul a:hover {
    color: #00d4ff;
}

/*  HERO  */
.hero {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #00d4ff;
}

.hero p {
    font-size: 1.2rem;
}

/*  CONTENEDOR  */
.contenedor {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.contenedor h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #1a1a2e;
    border-bottom: 3px solid #00d4ff;
    padding-bottom: 10px;
}

/*  TARJETAS  */
.tarjetas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.tarjeta {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

.tarjeta:hover {
    transform: translateY(-5px);
}

.tarjeta img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.tarjeta-body {
    padding: 15px;
}

.tarjeta-body h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.tarjeta-body p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.precio {
    font-size: 1.2rem;
    font-weight: bold;
    color: #00d4ff;
    display: block;
    margin-bottom: 5px;
}

.categoria {
    font-size: 0.8rem;
    background: #1a1a2e;
    color: white;
    padding: 3px 8px;
    border-radius: 20px;
}

/*  BOTÓN  */
.btn {
    display: inline-block;
    background: #00d4ff;
    color: #1a1a2e;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover {
    background: #00b8d9;
}

button {
    background: #00d4ff;
    color: #1a1a2e;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    margin-top: 10px;
    transition: background 0.3s;
}

button:hover {
    background: #00b8d9;
}

/*  FORMULARIO CONTACTO  */
.form-contacto {
    max-width: 500px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-contacto input,
.form-contacto textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-contacto textarea {
    height: 120px;
    resize: vertical;
}

/*LOGIN  */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #1a1a2e;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    width: 350px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.login-box h2 {
    margin-bottom: 25px;
    color: #1a1a2e;
}

.login-box input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

/*TABLA ADMIN */
.tabla-admin {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tabla-admin th {
    background: #1a1a2e;
    color: white;
    padding: 12px;
    text-align: left;
}

.tabla-admin td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.tabla-admin tr:hover {
    background: #f9f9f9;
}

/*FORMULARIO ADMIN*/ 
.form-admin {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.form-admin input,
.form-admin textarea,
.form-admin select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.btn-danger {
    background: #e74c3c;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: auto;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-warning {
    background: #f39c12;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: auto;
}

footer {
    background: #1a1a2e;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}


@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 10px;
    }

    .navbar ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .tarjetas {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}