body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #222;
}

.header {
    background-color: #111;
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-size: 16px;
}

.nav a:hover {
    text-decoration: underline;
}

.hero {
    text-align: center;
    padding: 80px 20px;
    background-color: #e9e9e9;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 20px;
}

.btn,
.btn-secundario {
    display: inline-block;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
}

.btn {
    background-color: #111;
    color: white;
}

.btn-secundario {
    background-color: #333;
    color: white;
    margin-top: 10px;
}

.categorias-home,
.beneficios {
    padding: 50px 20px;
    text-align: center;
}

.categorias-home h2,
.beneficios h2 {
    margin-bottom: 30px;
}

.contenedor-categorias,
.contenedor-beneficios,
.contenedor-productos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.tarjeta-categoria,
.item-beneficio,
.tarjeta-producto {
    background-color: white;
    border-radius: 10px;
    width: 280px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.tarjeta-producto img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
}

.tarjeta-producto h2,
.tarjeta-categoria h3,
.item-beneficio h3 {
    margin-top: 15px;
}

.tarjeta-producto p,
.tarjeta-categoria p,
.item-beneficio p {
    font-size: 14px;
    color: #555;
}

h1, h2 {
    color: #222;
    text-align: center;
    margin-top: 30px;
}

.seccion-contacto {
    max-width: 700px;
    margin: 50px auto;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.formulario-contacto {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.formulario-contacto input,
.formulario-contacto textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

.formulario-contacto button {
    border: none;
    cursor: pointer;
}

.mensaje-exito {
    background-color: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.mensaje-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.panel-admin {
    text-align: center;
    padding: 50px 20px;
}

.contenedor-admin {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.tarjeta-admin {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    width: 280px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.tabla-contenedor {
    max-width: 1000px;
    margin: 30px auto;
    overflow-x: auto;
}

.tabla-admin {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.tabla-admin th,
.tabla-admin td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: center;
}

.tabla-admin th {
    background-color: #111;
    color: white;
}

.tabla-admin a {
    text-decoration: none;
    color: #111;
    font-weight: bold;
}

.selector-variantes {
    margin-top: 15px;
    text-align: left;
}

.selector-variantes label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
}

.selector-variantes select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.precio-producto {
    font-size: 18px;
    margin-top: 15px;
    color: #111;
    font-weight: bold;
}

.btn-carrito {
    width: 100%;
    margin-top: 15px;
    border: none;
    cursor: pointer;
}

.nav-carrito {
    background-color: #ffd54f;
    color: #111 !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.nav-carrito:hover {
    transform: scale(1.05);
    text-decoration: none !important;
}

.contador-carrito {
    background-color: #111;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 50%;
    min-width: 20px;
    text-align: center;
}