* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Aplicar al contenedor principal de la página */
body {
    margin: 0;
}

.item img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background-color: #ffffff;
    padding: 2px auto;
}


/* HEADER */
header {
    position: relative;
    background: #0d536e;
    color: white;
    padding: 30px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-container img {
    width: 80px;
    height: auto;
    display: block;
}

header h1 {
    font-size: 50px;
    margin: 50px;
    line-height: 1;
    white-space: nowrap;
    text-align: left;
    font-family: var(--font-titulo);
}
 

/*nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}


nav ul li {
    margin-left: 20px;
}*/

/* GRID PRODUCTOS */
.productos {
    padding: 30px;
    text-align: center;
}

.grid-productos {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 10px auto;
}

.item {
    background: rgb(252, 244, 244);
    border-radius: 6px;
    padding: 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.item p {
    margin-top: 6px;
    font-weight: bold;
}

/* =========================
   CARRUSEL SIMPLE Y ROBUSTO
========================= */

.carrusel-container {
    position: relative;
    width: 100%;
    margin: 40px 0;
    padding: 20px 0;
    background-color: #f0f0f0;
}

.carrusel-viewport {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.carrusel-track {
    display: flex;
    gap: 15px;
}

.carrusel-item {
    flex: 0 0 260px; /* ancho fijo */
    height: 180px;
    scroll-snap-align: center;
}

.carrusel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* BOTONES */
.carrusel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: #0d536e;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

/* =========================
   MÓVIL (Moto G15 incluido)
========================= */

@media (max-width: 768px) {
    .carrusel-item {
        flex: 0 0 140px;
        height: 140px;
    }
}


.carrusel-btn.prev { left: 10px; }
.carrusel-btn.next { right: 10px; }

.carrusel-btn:hover { background: #1993c7; }

/* --- MODAL (Visor de fotos ampliado) --- */
.modal {
    display: none; 
    position: fixed;
    z-index: 2000; /* Por encima de todo */
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-contenido {
    margin: auto;
    display: block;
    max-width: 85%;
    max-height: 80vh;
    border-radius: 10px;
    animation: zoom 0.3s;
}

.cerrar-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* --- ESTILO EXTRA PARA EL CARRUSEL --- */
.ampliable {
    cursor: pointer;
    transition: 0.3s;
}

.ampliable:hover {
    opacity: 0.8;
}

/* INFO */
.info {
    padding: 40px;
    background: #fae8e8;
    margin-top: 20px;
    text-align: center;
    line-height: 1.6;
}
h2 {
    text-align: center;
    background: #fae8e8;
}

/* REDES */
.social-links,
.legal-links {
    margin:0 0 8px;
    color:var(--accent)
}
.social-links a{
    
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:60px;
    height:60px;
    margin-right:6px;
    border-radius:50%;
    background:#04f37f;
    color: blue;
    box-shadow:0 6px 8px rgba(0,0,0,.15)
}
.social-links a:hover{
    background: rgb(150, 242, 213);
}
.social-links{
    justify-self: anchor-center;
    align-self:start;
}

/* WHATSAPP FLOTANTE */
.whatsapp-float {
  position: fixed;
  bottom: 35px;
  right: 35px;
  background-color: #25D366;
  color: white;
  font-size: 28px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, background-color 0.3s;
  z-index: 1000;
}

.whatsapp-float:hover {
  background-color: #1ebc59;
  transform: scale(1.15);
}

/* FOOTER */
footer {
    background: #1993c7;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 20px;
}

/* RESPONSIVE */
@keyframes zoom {
    from {transform: scale(0.7)} 
    to {transform: scale(1)}
}
@keyframes flotar {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

/* Para Tablets (900px) */
@media (max-width: 900px) {
    .grid-productos {
        grid-template-columns: repeat(2, 1fr);
    }
    header h1 {
        font-size: 35px; /* Reducimos un poco el tamaño en tablets */
    }
}

/* Para Celulares (768px o menos) */
@media (max-width: 768px) {
    header {
        flex-direction: column; /* Apila Logo, Título y Nav verticalmente */
        gap: 20px;
        padding: 20px 10px;
    }

    header h1 {
        position: static; /* Anula el position absolute */
        transform: none;  /* Quita el desplazamiento del 50% */
        left: 0;
        font-size: 28px;  /* Tamaño adecuado para celulares */
        pointer-events: auto;
    }

    .logo-container img {
        width: 150px; /* Logo más pequeño en móvil */
    }

    nav ul {
        padding: 0;
        flex-wrap: wrap; /* Si los links son largos, saltan de línea */
        justify-content: center;
    }

    nav ul li {
        margin: 5px 10px; /* Espaciado más equilibrado */
    }
}
/* Responsive: 2 fotos en móvil */
@media (max-width: 600px) {
    
    .carrusel-item img {
        height: 120px; /* Reducimos la altura para que mantenga mejor la proporción */
    }
}

/* Para Celulares muy pequeños (500px) */
@media (max-width: 500px) {
    .grid-productos {
        grid-template-columns: 1fr;
    }
    header h1 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column; /* En celular se pone uno arriba del otro */
        gap: 15px;              /* Menos espacio en móvil */
        padding: 20px;
    }
    
    header h1 {
        font-size: 32px;        /* Texto más pequeño para que entre en la pantalla */
        text-align: center;
    }
    
    .logo-container img {
        width: 100px;           /* Logo un poco más pequeño en móvil */
    }
}

