/* ===================================
   Estilos generales
=================================== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #fff;
    color: #333;
}

/* ===================================
   Header unificado para todas las páginas
=================================== */
header {
    background: url("../img/FONDO MARMOL.jpg") repeat-x center top;
    background-size: auto 180px; /* ajusta la altura de la imagen */
    color: white;
    text-align: center;
    height: 150px; /* altura uniforme */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 40px; /* mismo tamaño para todos */
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.8); /* sombra para resaltar */
    color: white;
}


/* ===================================
   Menú de navegación
=================================== */
nav {
    background: #92f5f8; /* celeste */
    display: flex;
    justify-content: center;
    gap: 140px; /* separación entre enlaces */
    padding: 10px 0;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;
    font-size: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    transition: 0.3s;
}

nav a:hover {
    background-color: #ff99cc;
    border-radius: 5px;
}

/* ===================================
   Botones principales
=================================== */
.inicio {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 50px 20px;
    flex-wrap: wrap;
}

.main-btn {
    background-color: #ff99cc;
    color: white;
    font-size: 2rem;
    padding: 40px 60px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.main-btn:hover {
    background-color: #ff66aa;
}



/* ==========================
   Barra de navegación
========================== */
nav {
    background: #92f5f8; /* celeste */
    padding: 10px;
    display: flex;
    justify-content: center;
    gap: 20px;
    border-bottom: 2px solid #ddd;
}

nav a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    transition: 0.3s;
}

nav a:hover {
    color: #ffffff;
}

/* ==========================
   Título Catálogo
========================== */
.titulo-catalogo-container {
    text-align: center;
    margin: 20px 0;
}

.bienvenida {
    font-size: 2rem;
    font-weight: bold;
    color: #444;
}

/* ==========================
   Grid de categorías
========================== */
.grid-categorias {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding: 20px;
}

.col {
    text-align: center;
}

.btn-container {
    width: 100%;
}

.main-btn {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    color: white;
    background: linear-gradient(45deg, #ff74bd, #59d7c4);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.main-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

textarea {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  resize: none;
  font-family: inherit;
}

/* ==========================
   Modal para imágenes
========================== */
#modalImagen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

#modalImagen.show {
    display: flex;
}

#modalImagen img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    cursor: pointer;
    animation: zoomIn 0.2s ease-in-out;
}

@keyframes zoomIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ==========================
   Footer
========================== */
/* ===================================
   Footer
=================================== */
footer {
    background: #92f5f8;
    color: rgb(255, 255, 255);
    text-align: center;
    padding: 15px 0;
    font-size: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
    width: 100%;
}

#footer-text {
    color: #666;
    font-weight: bold;
}

/* =====================================================
   CARRITO NUEVO (MODERNO Y FLOTANTE)
   — Compatible con tu diseño viejo
===================================================== */

.carrito {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.btn-carrito {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ff99cc;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.3);
    transition: 0.3s;
}

.btn-carrito:hover {
    background: #ff66aa;
}

.contenido-carrito {
    display: none;
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 300px;
    max-height: 400px;
    overflow-y: auto;
    background: #92f5f8;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.3);
}

.contenido-carrito.abierto {
    display: block;
}

.contenido-carrito ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nombre-producto {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.eliminar-btn {
    background-color: #ff66aa;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 50%;
    font-size: 0.8rem;
}

.eliminar-btn:hover {
    background-color: #ff3388;
}

.precio-item {
    color: #000;
    font-weight: bold;
}

#totalCarrito {
    font-weight: bold;
    font-size: 1.2rem;
    color: #444;
    margin-top: 10px;
}

.enviar-btn {
    background: #ff3388;
    border: none;
    color: white;
    padding: 10px;
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 16px;
}

.enviar-btn:hover {
    background: #ff1a75;
}

