

/* ===================================
   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;
}




/* ===== Slider de Ofertas ======== */
#ofertas {
    padding: 30px 20px;
    background-color: #f8f8f8;
    text-align: center;
}

#ofertas h2 {
    font-size: 2em;
    margin-bottom: 25px;
    color: #333;
}

/* Contenedor del carrusel */
.slider-ofertas {
    overflow-x: auto; /* permite swipe en móvil */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    position: relative;
    width: 100%;
}

.slider-ofertas:active {
    cursor: grabbing;
}

/* Pista que se mueve */
.slide-track {
    display: flex;
    gap: 15px;
    width: max-content;
    animation: scroll 40s linear infinite;
}

/* Animación de scroll */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Cada oferta */
.slide {
    flex: 0 0 auto;
    width: 180px; /* ancho uniforme */
    scroll-snap-align: center;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s;
}

.slide:hover {
    transform: scale(1.05);
}

.slide img {
    width: 100%;
    height: 120px;       /* altura uniforme */
    object-fit: contain;  /* no recorta la imagen */
    border-radius: 8px;
    background: #fff;
    display: block;
}

.slide h3 {
    margin: 10px 0 15px;
    font-size: 1.1em;
    color: #333;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .slide {
        width: 150px;
    }

    .slide img {
        height: 100px;
    }
}



/* Responsive */
@media screen and (max-width: 768px) {
    .productos {
        gap: 15px;
    }
    .producto {
        width: 45%;
    }
}

@media screen and (max-width: 480px) {
    .producto {
        width: 90%;
    }
}


/* ===================================
   Secciones de contacto y ubicación
=================================== */
section {
    padding: 40px 20px;
}

h2 {
    text-align: center;
    color: #ff99cc;
    font-size: 40px;
    margin-bottom: 20px;
}

.contacto {
    text-align: center;
    margin-top: 20px;
    font-size: 20px;
    line-height: 1.6;
}

.contacto a {
    color: #66ccff;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.contacto a:hover {
    text-decoration: underline;
    color: #55b0e0;
}

.redes-sociales {
  display: flex;
  justify-content: center; /* Centra horizontalmente */
  gap: 25px; /* Espacio entre iconos */
  margin-top: 15px;
}

.redes-sociales a {
  font-size: 32px; /* Tamaño de los iconos */
  color: #333;
  transition: transform 0.2s ease, color 0.3s ease;
}

.redes-sociales a:hover {
  color: #e60073; /* Color al pasar el mouse */
  transform: scale(1.2);
}


.mapa iframe {
    border: 0;
    width: 100%;
    height: 400px;
    border-radius: 10px;
}

/* ===================================
   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); /* sombra para resaltar el texto */
    position: relative; /* para que no se quede flotando arriba */
    bottom: 0;
    width: 100%;
}

#footer-text {
    margin: 0;
}


/* ===================================
   Responsive: tablets y celulares
=================================== */
@media(max-width:1024px){
    .inicio {
        gap: 30px;
    }

    .main-btn {
        font-size: 1.8rem;
        padding: 30px 50px;
    }
}

@media(max-width:768px){
    .inicio {
        flex-direction: column;
        gap: 20px;
        margin: 40px 10px;
    }

    .main-btn {
        font-size: 1.5rem;
        padding: 25px 40px;
    }
}

@media(max-width:480px){
    header h1 {
        font-size: 1.5rem;
    }

    nav {
        flex-direction: column;
        gap: 10px;
        align-items: center; /* centra los enlaces */
    }

    nav a {
        display: block;
        text-align: center;
        width: 100%;
        max-width: 300px;
        margin: 5px 0;
    }

    /* Ocultar Contacto y Ubicación solo en móviles */
    nav a[href="#contacto"],
    nav a[href="#ubicacion"] {
        display: none;
    }

    .main-btn {
        font-size: 1.2rem;
        padding: 20px 30px;
    }
}
