/* estilos.css */

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    font-size: 16px;
}

h1, h2, h3 {
    text-align: center;
    color: #2c3e50;
}

/* Formularios */
.formulario {
    max-width: 400px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    box-sizing: border-box;
    width: 90%;
}

.formulario input,
.formulario textarea,
.formulario select {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

.formulario button,
.formulario .boton-volver {
    width: 100%;
    padding: 12px;
    background: #00b894;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

.formulario button:hover,
.formulario .boton-volver:hover {
    background: #019170;
}

/* Tablas */
table {
    width: 95%;
    margin: 20px auto;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

thead {
    background-color: #00b894;
    color: white;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    font-size: 15px;
}

tr:hover {
    background-color: #f1f1f1;
}

/* Botones */
.boton {
    display: inline-block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #0984e3;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    text-align: center;
}

.boton:hover {
    background-color: #065ab5;
}

.logout {
    float: right;
    margin-right: 20px;
    text-decoration: none;
    color: #e74c3c;
    font-weight: bold;
}

.error {
    color: red;
    text-align: center;
    font-weight: bold;
}

/* Contenedor de productos */
.contenedor {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 900px;
}

.producto {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    text-align: center;
}

.producto:hover {
    transform: scale(1.02);
}

.producto img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.producto h3 {
    font-size: 18px;
    margin: 10px 0 5px;
}

.producto p {
    font-size: 14px;
    color: #555;
}

.producto strong {
    color: #da1717;
    font-size: 20px;
    display: block;
    margin-top: 10px;
}
.etiqueta-nuevo {
    display: inline-block;
    background-color: #e74c3c;
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.filtro-categorias {
    text-align: center;
    margin: 20px auto;
    padding: 10px;
}

.filtro-categorias label {
    font-weight: bold;
    margin-right: 10px;
    font-size: 16px;
}

.filtro-categorias select {
    padding: 10px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
    min-width: 220px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#btnWhatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    display: inline-block;
    width: 60px;
    height: 60px;
  }
  
  #btnWhatsapp img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
  }
  
  #btnWhatsapp img:hover {
    transform: scale(1.1);
  }
  

  @media screen and (max-width: 600px) {
    #btnWhatsapp {
      width: 50px;
      height: 50px;
      bottom: 15px;
      right: 15px;
    }
  
    #btnWhatsapp img {
      width: 100%;
      height: 100%;
    }
  }

  
  .whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    width: 60px;
    height: 60px;
  }
  
  .whatsapp-float img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
  }
  
  .whatsapp-float img:hover {
    transform: scale(1.1);
  }
  
  /* Ajustes para móviles */
  @media screen and (max-width: 600px) {
    .whatsapp-float {
      width: 50px;
      height: 50px;
      bottom: 15px;
      right: 15px;
    }
  }
  



.boton-volver {
    display: inline-block;
    padding: 12px 20px;
    background-color: #000000;
    color: white;
    border-radius: 6px;
    font-size: 16px;
    text-decoration: none;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.boton-volver:hover {
    background-color: #4c5055;
}

.header-logo {
    text-align: center;
    padding: 20px 0;
}

.navbar {
    background-color: #000;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 10px 0;
    text-align: center;
}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar li {
    display: inline-block;
    margin: 0 15px;
}

.navbar a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #da1717;
}

@media screen and (max-width: 600px) {
    .navbar li {
        display: inline-block;
        margin: 10px 8px;
    }
}



.section { padding: 2rem; max-width: 900px; margin: auto; }

@media screen and (max-width: 600px) {
    .section {
        max-width: 100%;
    }
}


.footer {
    background-color: #000000;
    color: #ecf0f1;
    text-align: center;
    padding: 30px 20px;
    font-size: 14px;
}

.footer a {
    color: #1abc9c;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.social-icons {
    margin: 15px 0;
}

.social-icons a {
    margin: 0 10px;
    color: #ecf0f1;
    font-size: 20px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #1abc9c;
}

#btnSubir {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px; /* ← Mueve el botón a la izquierda */
    z-index: 999;
    font-size: 20px;
    background-color: #0984e3;
    color: white;
    border: none;
    border-radius: 50%;
    padding: 10px 15px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease;
}

#btnSubir:hover {
    background-color: #065ab5;
}


.header-logo img {
    max-width: 220px;
    height: auto;
    display: inline-block;
}

@media screen and (max-width: 600px) {
    .header-logo img {
        max-width: 100%;
    }
}


/* Responsive */
@media screen and (max-width: 600px) {
    body {
        font-size: 18px;
    }

    .formulario {
        margin: 20px;
        padding: 15px;
    }

    th, td {
        font-size: 16px;
    }

    .producto img {
        height: 230px;
    }

    .logout {
        float: none;
        display: block;
        text-align: right;
        margin-top: 10px;
    }

    .boton {
        display: block;
        width: 90%;
        margin: 20px auto;
    }
}
