/* lo puse para que se rellene todo de la pagina */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 2;
    color: #fff;
    background-color: #f8f9fa;
}

/* Header */
header {
    background-color: #004d66;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
	padding: 10px 240px;
}

.logoInicio {
    display: flex;
    align-items: center;
}

.logo {
    width: 100px;
    height: auto;
    margin-right: 50px;
}

.Menu {
    display: flex;
    list-style: none;
}

.Menu li {
    margin: 0 10px;
}

.Menu a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease; 
}

.Menu a:hover {
    color: #7b8cb5; 
}


.Busqueda {
    display: flex;
    align-items: center;
    margin-top: 10px;
    max-width: 600px; 

}

.busquedatexto {
    padding: 10px 40px 10px 10px; 
    border: none; 
    border-radius: 3px;
    font-size: 18px;
}

.busquedatexto::placeholder {
    color: #aaa; 
    font-style: italic;
}

.btn-buscar {
    padding: 10px 20px;
    background-color: #8c97a3;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 18px;
	font-weight: bold;
    transition: background-color 0.3s ease; 
}

.btn-buscar:hover {
    background-color: #7b8cb5; 

}

/*Ventana emergente*/
.popup {
  
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto; 
    height: auto; 
    justify-content: center;
    z-index: 1000; 
    background-image: url('Anuncio.jpg'); 
    background-position: center; 
    display: flex; 
    border-radius: 20px; 
    padding: 20px; 
}

/* Contenido del pop-up */
.popup-content {
    padding: 20px;
    border-radius: 10px;
    width: 240px; 
    text-align: center;
	color: #232930;
}

/* Título dentro del pop-up */
.popup h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

/* Párrafo dentro del pop-up */
.popup p {
    margin: 0 0 10px;
	font-weight: bold;
}

/* Botón dentro del pop-up */
.popup button {
    background-color: #4CAF50;
    color: white;
	font-weight: bold;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.popup button:hover {
    background-color: #45a049;
}

/* Botón de cerrar */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    color: #fff;
    padding: 5px;
    border-radius: 50%;
}

/* Carrito */
.carrito {
    position: relative;
}

.carrito-icono {
    width: 35px;
    height: auto;
}

.cantidad-carrito {
    position: absolute;
    top: 5px;
    right: -20px;
    font-weight: bold;
    color: #fff;
    border-radius: 50%;
    padding: 5px;
    font-size: 14px;
}

/* Iniciar sesión */
.logeo a {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    margin-left: 20px;
    font-size: 18px;
    transition: color 0.3s ease;
}

.logeo a:hover {
    color: #7b8cb5;
}


/* Tabla */
.Precios{
	margin-bottom: 20px;
    color: #004d66;
	font-weight: bold;
	padding: 10px 20px;
}
.tablita {
	border-collapse: collapse;
	margin: auto;
	font-family: sans-serif Arial;
	overflow: auto;
	min-width: 400px;
	width: 100%;
}
.tablita thead tr {
	background-color: #004d66;
	color: #fff;
	text-align: center;
}
.tablita th, td {
	padding: 12px 15px;
	text-align: center;
}
.tablita tbody tr td {
	color: #004d66;
	font-weight: bold;
	
}
.tablita tbody tr {
	border-bottom: 1px solid #004d66;
}
.tablita tbody tr:nth-of-type(even) {
	background-color: #b1b7bd;
}


/* Categorías */
.categorias {
    background-color: #e0f2f1;
	font-size: 25px;
    padding: 70px;
    text-align: center;
}

.categorias h2 {
    margin-bottom: 50px;
    color: #004d66;
}

.categoria-lista {
    display: flex;
    justify-content: center;
    gap: 90px;
    flex-wrap: wrap;
}

.categoria-lista button {
    background-color: #004d66;
    color: #fff;
    border: none;
    padding: 30px 60px;
    border-radius: 5px;
    cursor: pointer;
	font-weight: bold; 
	font-size: 25px;
	transition: background-color 0.3s ease;
}
.categoria-lista button:hover {
    background-color: #7b8cb5; 
}

/* Productos Destacados */
.productos-destacados {
    padding: 20px;
	color: #004d66;
}

.productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.producto {
    background: #fff;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
}

.producto img {
    width: 100%; 
    height: 550px; 
    object-fit: cover; 
    border-radius: 5px;
    margin-bottom: 10px;
}

.producto h3 {
    margin-bottom: 10px;
    color: #004d66;
}

.producto button {
    background-color: #004d66;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 3px;
    cursor: pointer;
	font-size: 18px;
	
}

.producto p.precio {
    font-size: 1.2rem;
    font-weight: bold;
    color: #004d66;
    margin-bottom: 10px;
}
/* Ubicacion*/
.ubicacion {
    text-align: center;
    padding: 50px;
    background-color: #f0f0f0;
    margin-top: 50px;
}

.ubicacion h2 {
    color: #004d66;
    font-size: 40px;
    margin-bottom: 20px;
}

.mapa iframe {
    border-radius: 20px;
}


/* Footer */
footer {
    background-color: #004d66;
    color: #fff;
    text-align: center;
    padding: 20px;
	font-size: 20px;
}

footer nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center; 
	
}

footer nav ul li {
    margin-right: 30px;
    display: flex;
    justify-content: center;
}

footer nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: bold; 
    transition: color 0.3s ease; 
	padding: 20px;
	font-size: 18px;
}

footer nav ul li a:hover {
    color: #7b8cb5;
}

/* Contacto */
.contacto {
    background-color: #f1f1f1;
    padding: 50px 20px;
    text-align: center;
    color: #004d66;
}

.contacto h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #004d66;
}

.contacto p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #555;
}

.informacion-contacto {
    display: flex;
    justify-content: space-around;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.datos,
.faq {
    width: 45%;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.datos h3,
.faq h3 {
    color: #004d66;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.datos p,
.faq p {
    font-size: 1rem;
    color: #555;
}

.datos a {
    color: #004d66;
    text-decoration: none;
    font-weight: bold;
}

.datos a:hover {
    color: #7b8cb5;
}

.formulario-contacto {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.formulario-contacto label {
    font-size: 1.2rem;
    color: #004d66;
    display: block;
    margin: 10px 0 5px;
}

.formulario-contacto input,
.formulario-contacto textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.formulario-contacto input[type="text"],
.formulario-contacto input[type="email"] {
    background-color: #f9f9f9;
}

.formulario-contacto textarea {
    background-color: #f9f9f9;
    resize: vertical;
}

.formulario-contacto button {
    background-color: #004d66;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.formulario-contacto button:hover {
    background-color: #7b8cb5;
}

/*  pagina de iniciar sesion */
.iniciar-sesion {
    padding: 20px;
    max-width: 400px;
    margin: 70px auto;
    background-color: #f9f9f9;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    margin-top: 50px;
}

.iniciar-sesion h2 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
	color: #004d66;
}

.formulario-login label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
	color: #004d66;
}

.formulario-login input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.formulario-login button {
    width: 100%;
    padding: 12px;
    background-color: #004d66;
    color: white;
	font-weight: bold;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.formulario-login button:hover {
    background-color: #00334d;
}

.registrar {
    text-align: center;
    margin-top: 15px;
}

.registrar{
	color: #004d66;
}

.registrar a {
    color: #004d66;
    text-decoration: none;
    font-weight: bold;
}

.registrar a:hover {
    color: #00334d;
}

/* Hmtl del registrarse*/
.registro {
    padding: 20px;
    max-width: 400px;
    margin: 33px auto;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    margin-top: 50px;
}

.registro h2 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
	color: #004d66;
}

.formulario-registro label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
	color: #004d66;
}

.formulario-registro input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.formulario-registro button {
    width: 100%;
    padding: 12px;
    background-color: #004d66;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
	
}

.formulario-registro button:hover {
    background-color: #00334d;
}

.login {
    text-align: center;
    margin-top: 15px;
	color: #004d66;
}

.login a {
    color: #004d66;
    text-decoration: none;
    font-weight: bold;
	
}

.login a:hover {
    color: #00334d;
}

/*Html para comprar*/
.carrito-contenido {
    max-width: 900px;
    margin: 30px auto;
    background-color: #fff;
	color: #004d66;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
}

.reducir, .eliminar {
    background-color: #ff6347; 
    color: white;
    border: none;
    border-radius: 3px;
}

.reducir:hover, .eliminar:hover {
    background-color: #ff4500; 
}
.producto-carrito button {
    padding: 5px 10px;
    margin-left: 10px;
    cursor: pointer;
}

#carrito-lista {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#carrito-lista li {
    background-color: #f1f1f1;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}


/* Total del carrito */
#total-carrito {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e74c3c;
}

/* Botón de realizar compra */
#realizar-compra {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #27ae60;
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

#realizar-compra:hover {
    background-color: #2ecc71;
}

/* pago */
#formulario-dinamico {
  max-width: 600px;
  margin: 40px auto;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

#formulario-dinamico h3 {
  font-size: 1.8rem;
  font-weight: bold;
  color: #333;
  text-align: center;
  margin-bottom: 20px;
}

#formulario-dinamico label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #555;
}

#formulario-dinamico input[type="text"],
#formulario-dinamico input[type="email"],
#formulario-dinamico input[type="password"] {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 2px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background-color: #fff;
  transition: border 0.3s ease;
}

#formulario-dinamico input[type="text"]:focus,
#formulario-dinamico input[type="email"]:focus,
#formulario-dinamico input[type="password"]:focus {
  border-color: #007bff;
  outline: none;
}

#formulario-dinamico input[readonly] {
  background-color: #e9ecef;
  color: #6c757d;
}

#formulario-dinamico .metodo-pago {
  margin: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#formulario-dinamico .metodo-pago label {
  font-size: 1rem;
  font-weight: normal;
  color: #333;
}

#formulario-dinamico .metodo-pago input {
  transform: scale(1.3);
}

#formulario-dinamico .detalle-pago {
  margin-top: 30px;
}

#formulario-dinamico button {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 1.1rem;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease;
}

#formulario-dinamico button:hover {
  background-color: #218838;
}

#formulario-dinamico h4 {
  font-size: 1.5rem;
  text-align: center;
  color: #333;
  margin: 20px 0;
}

#formulario-dinamico p {
  font-size: 1rem;
  color: #555;
  text-align: center;
  margin-bottom: 20px;
}

#formulario-dinamico img {
  display: block;
  margin: 20px auto;
  max-width: 180px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#formulario-dinamico input[type="radio"] {
  margin-right: 12px;
}

#formulario-dinamico input[type="radio"]:checked {
  background-color: #28a745;
}

/*formulario de Yape */
#formulario-dinamico .yape {
  text-align: center;
  margin-top: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

#formulario-dinamico .yape img {
  max-width: 200px;
  margin-top: 10px;
}

#productos-busqueda {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

#productos-busqueda p {
    text-align: center;
    width: 100%;
    font-size: 1.2em;
    color: #666;
}


/* Pantallas pequeñas */
@media (max-width: 868px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    .Menu {
        flex-direction: column;
        align-items: center;
        margin-top: 10px;
    }

    .Menu li {
        margin: 5px 0;
    }

    .productos {
        flex-direction: column;
        align-items: center;
    }

    .producto {
        flex: 1 1 100%;
        margin-bottom: 20px;
    }

    .producto img {
        max-width: 200px;
    }
	
	.ubicacion .mapa iframe {
        width: 100%;
		height: 250px; 
    }
}

/* Pantallas para tablets y computadoras portátiles */
@media (min-width: 868px) and (max-width: 1616px) {
    header {
        padding: 20px 50px;  
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: #004d66;
    }

    .carrito {
        position: relative;
        padding: 10px;
    }

    .cantidad-carrito {
        position: absolute;
        top: -5px;
        right: -5px;
        color: white;
        border-radius: 50%;
        padding: 4px 8px;
        font-size: 12px;  /* Ajustar tamaño de fuente */
    }

    .logeo a {
        font-size: 14px;
        color: white;
        text-decoration: none;
        margin-left: 20px;
    }

    .logeo a:hover {
        color: #ffcc00;
    }

    .logeo #logout-link {
        display: none;
    }
	
	.ubicacion .mapa iframe {
        width: 100%;
		height: 250px; 
    }
}


/* Pantallas para computadoras de escritorio */
@media (min-width: 1616px) {
    header {
        justify-content: space-between;
        text-align: left;
    }

    .Menu li {
        font-size: 18px;
    }

    .productos {
        justify-content: space-between;
    }

    .producto {
        flex: 1 1 22%;  /* 4 por fila */
        margin: 10px;  
    }

    .producto img {
        max-width: 240px;
    }

    .btn-comprar {
        padding: 15px;
    }

    footer nav ul li {
        margin: 0 20px;
    }
}
