/* =========================
   RESET GENERAL
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================
   FONDO GALERÍA (IMÁGENES)
========================= */
.fondo-galeria {
    position: fixed;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 1.2s ease-in-out;
}

/* Capa para mejorar legibilidad */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.582);
    z-index: -1;
}

/* =========================
   BASE GENERAL
========================= */
body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    min-height: 100vh;
}

/* =========================
   TIPOGRAFÍA
========================= */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    text-shadow: 0 2px 4px rgba(162, 0, 255, 0.6);
}

/* =========================
   HEADER
========================= */
header {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(6px);
}

header h1 {
    font-size: 2.6rem;
}

header p {
    margin-top: 0.5rem;
    font-size: 1.0rem;
    font-weight: bold;

}

/* =========================
   NAVEGACIÓN
========================= */
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    
}

nav a {
    text-decoration: none;
    color: #000000;
    font-weight: 500;
    position: relative;
    font-weight: bold;
    font-size: 15px;

}


nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #000000;
    transition: 0.3s;
    transform: translateX(-50%);
}

nav a:hover::after {
    width: 70%;
}

/* =========================
   MAIN
========================= */
main {
    max-width: 1200px;
    margin: auto;
    padding: 3.5rem 1.5rem;
    text-align: center;
}

section {
    margin-bottom: 4rem;
}

/* =========================
   CATÁLOGO
========================= */
#catalogo h2 {
    font-size: 2.4rem;
}

/* =========================
   FILTROS
========================= */
.filtros ul {
    list-style: none;
    margin: 1.5rem 0 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.filtros li {
    cursor: pointer;
    position: relative;
    padding-bottom: 6px;
    font-weight: 500;
    color: #000000;
    font-size: 20px;
}

.filtros li::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #0a9396;
    transition: 0.3s;
    transform: translateX(-50%);
}

.filtros li:hover::after {
    width: 70%;
}

/* =========================
   GRID DE PRODUCTOS
========================= */
.productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.8rem;
    justify-items: center;
}

.productos h3 {
    grid-column: 1 / -1;
    font-size: 2rem;
    margin-bottom: 3rem;
}

/* =========================
   TARJETAS DE PRODUCTO
========================= */
article {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 22px;
    width: 100%;
    max-width: 320px;
    overflow: hidden;
    padding-bottom: 1.8rem;
    position: relative;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

article:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
}

/* =========================
   IMAGEN DEL PRODUCTO
========================= */
.img-producto,
.img-Melodia,
.img-Tesoro,
.img-Euforia,
.img-Palmera,
.img-Africa,
.img-Raices,
.img-Corazon,
.img-Girasol, 
.img-Guajira  {
    width: 100%;
    height: 500px;
    overflow: hidden;
    position: relative;
}

.img-producto img,
.img-Melodia img,
.img-Tesoro img,
.img-Euforia img, 
.img-Palmera img,
.img-Africa img,
.img-Raices img,
.img-Corazon img,
.img-Girasol img, 
.img-Guajira img  {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.45s ease;
}

/* =========================
   EFECTOS SOLO EN DESKTOP
========================= */
@media (hover: hover) and (pointer: fine) {

    article:hover img {
        transform: scale(1.12);
        filter: blur(2px);
    }

}

/* HOVER SOLO ZOOM (SIN BLUR NI TRANSPARENCIA) */
article:hover img {
    transform: scale(1.12);
}

/* =========================
   TEXTO TARJETA
========================= */
article h4 {
    margin-top: 1.5rem;
    color: #005f73;
}

article p {
    margin: 0.4rem 1.4rem;
    line-height: 1.6;
}

/* =========================
   CONTACTO
========================= */
#contacto h2 {
    font-size: 35px;
}
#contacto ul {
    list-style: none;
    margin-top: 1rem;
}

#contacto li {
    margin: 0.5rem 0;
    position: relative;
    cursor: pointer;
    font-weight: bold;
}

#contacto a {
    text-decoration: none;
    color: inherit;
    font-weight: bold;
}

#contacto li::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: #0a9396;
    transition: 0.3s;
    transform: translateX(-50%);
}

#contacto li:hover::after {
    width: 60%;
}
/*sobre nosotros*/
#sobre-nosotros h2 {
   font-size: 35px;
}

#sobre-nosotros p {
   font-weight: bold;
   font-size: 20px;
}

/* =========================
   FOOTER
========================= */
footer {
    background: rgba(255, 255, 255, 0.65);
    padding: 1.8rem;
    font-size: 0.9rem;
    text-align: center;
    font-weight: bold;
}

/* =========================
   RESPONSIVE
========================= */
@media (min-width: 768px) {
    header h1 {
        font-size: 2.9rem;
    }
}
/* =========================
   MODAL GALERÍA
========================= */

.modal-galeria{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
}

.modal-galeria.activo{
    display: flex;
}

.imagen-grande{
    max-width: 80%;
    max-height: 60vh;
    border-radius: 10px;
}

.miniaturas{
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.miniaturas img{
    width: 70px;
    height: 70px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 6px;
    transition: transform .2s;
}

.miniaturas img:hover{
    transform: scale(1.1);
}

.cerrar{
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}
/* =========================
   DROPDOWN BATOLAS
========================= */

.dropdown {
    position: relative;
    width: 100%;
    max-width: 260px;
    margin: 1.5rem auto;
}

.dropdown-btn {
    width: 100%;
    padding: 12px 16px;
    font-size: 18px;
    font-weight: bold;
    background: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.dropdown-lista {
    list-style: none;
    margin-top: 10px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    display: none;
    overflow: hidden;
}

.dropdown-lista li {
    padding: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.dropdown-lista li:hover {
    background: #f0f0f0;
}
.producto-destacado {
    outline: 3px solid #ff7a00;
    outline-offset: 6px;
}
/* =========================
   LOGO HEADER
========================= */

.logo {
    display: flex;
    justify-content: center;
    margin-bottom: 0.8rem;
}

.logo img {
    height: 85px;
    width: auto;
}
@media (max-width: 768px) {
    .logo img {
        height: 65px;
    }
}
/* =========================
   BOTÓN FLOTANTE WHATSAPP
========================= */

.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    z-index: 2000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float img {
    width: 32px;
    height: 32px;
}

/* Hover SOLO en PC */
@media (hover: hover) and (pointer: fine) {
    .whatsapp-float:hover {
        transform: scale(1.12);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    }
}
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float img {
        width: 28px;
        height: 28px;
    }
}
@keyframes latido {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.whatsapp-float {
    animation: latido 2.2s infinite;
}