:root {
    --gap: 1rem;
    --max-width: 1200px;
    --accent: #ff6b6b;
    --bg: #f7f7f8;
    --card-bg: #fff;
    --footer-bg: #000;
    --text: #222;
}

/* Reset básico */
* {
    box-sizing: border-box;
}

body {
    /*height: 100%;*/
    line-height: 1.3;
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Contenedor principal */
.container {
    /*max-width:1200px;
  margin:0 auto;
  padding:1rem;
  display:grid;
  grid-template-columns: 1fr; /* móvil: una columna */
    gap: var(--gap);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--gap);
}

.menucontainer {
    background: var(--card-bg);
    padding: 0.8rem 1rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    background-color: rgb(235, 206, 167);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #1684c4;
    font-weight: bold;
}

/* --------- CARRUSEL (banner) --------- */
/* Estructura: .carousel -> .carousel-track -> .slide* */
.carousel {
    position: relative;
    overflow: hidden;
    /*border-radius: 8px;*/
    background: #000;
    /*margin-bottom: var(--gap);*/
    /*display: grid;
    grid-auto-flow: column;*/
    grid-template-columns: repeat(3, 1fr);
    /* Ajusta para 3 imágenes */
    scroll-snap-type: x mandatory;
    /* Define el tipo de desplazamiento */
}

.carousel .slides {
    display: flex;
    width: 100%;
    /* 3 slides + duplicate of first for seamless loop */
    animation: slide 30s infinite;
    /* Asegura que cada imagen ocupe su propio espacio */
    scroll-snap-align: start;
}

.carousel .slide {
    flex: 1 0 100%;
    min-height: 320px;
    position: relative;
}

.carousel img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    /*vertical-align: middle;*/
    object-fit: cover;
    /* Para que la imagen cubra el área sin deformarse */
}

/* small caption overlay */
.carousel .caption {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    font-size: 0.95rem;
}

.carousel-title {
    font-size: 59px;
    font-family: "Ubuntu", Helvetica, Arial, sans-serif;
    letter-spacing: -.025em;
    font-weight: 700;
    color: #ecc99b;
    line-height: 1.1
}

@keyframes slide {
    0% {
        transform: translateX(0%);
    }

    20% {
        transform: translateX(0%);
    }

    25% {
        transform: translateX(-100%);
    }

    45% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(-200%);
    }

    70% {
        transform: translateX(-200%);
    }

    75% {
        transform: translateX(-300%);
    }

    95% {
        transform: translateX(-300%);
    }

    100% {
        transform: translateX(0%);
    }

    /* loop to start */
}

/* --------- LAYOUT PRINCIPAL: Main + Sidebar --------- */
.layout {
    display: grid;
    grid-template-columns: 1fr;
    /* móvil: contenido principal arriba, sidebar abajo */
    gap: var(--gap);
}

/* Contenido principal (productos + tiktok) */
.main {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

/* Sidebar/publicidad única */
.sidebar {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    font-weight: 600;
    color: var(--muted);
}

/* ========== PRODUCTOS 3x3 ========== */
.products {
    margin: var(--gap) 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

.product-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}

.product-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.product-card .info {
    padding: 0.6rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card h4 {
    margin: 0 0 0.4rem 0;
    font-size: 1rem
}

.product-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #555
}

/* ========== PUBLICIDAD 1x1 ========== */
.ad-single {
    margin: var(--gap) 0;
    display: block;
    background: linear-gradient(90deg, #ffe6e6, #fff6f6);
    border-radius: 8px;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    font-weight: 700;
    color: var(--accent);
    font-size: 1.1rem;
}

/* ========== PUBLICIDAD TIKTOK 3x3 ========== */
.tiktok-ads {
    margin: var(--gap) 0 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap);    
}

.tiktok-card a {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0rem;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.tiktok-card img {
    width: 70%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.6rem;
}

.tiktok-card .tag {
    font-size: 0.95rem;
    color: #333;
    font-weight: 600;
}

/* ========== FOOTER 4 COLUMNAS (negro) ========== */
footer.site-footer {
    background: var(--footer-bg);
    background-color: #000;
    color: #fff;
    padding: 2rem var(--gap);
}

.footer-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--gap);
}

.footer-col h5 {
    margin: 0 0 0.6rem 0;
    font-size: 1rem
}

.footer-col p,
.footer-col a {
    color: #ddd;
    font-size: 0.95rem;
    text-decoration: none
}

.footer-col a:hover {
    color: #fff
}

.footer-derechos {
    display: grid;
    background-color: #1e88e5;
    text-align: center;
    color: #fff;
    font-size: 1rem;
}

.imagen-fluid {
    max-width: 100%;
    height: auto;
}

/* ========== RESPONSIVE ========== */
@media (max-width:1000px) {

    .products,
    .tiktok-ads {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .carousel .slide {
        min-height: 260px;
    }

    .carousel img {
        height: 260PX;
    }
}

@media (max-width:640px) {

    .products,
    .tiktok-ads {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .carousel .slide {
        min-height: 180px;
    }

    .product-card img,
    .tiktok-card img {
        height: 180px;
    }

    .carousel img {
        height: 220px;
    }
    
    .container {
        width: 540px;
        max-width: 100%
    }
}
@media (min-width:576px) {
    .container {
        width: 540px;
        max-width: 100%
    }
}

/* small utility */
.section-title {
    font-weight: 700;
    margin: 0 0 0.6rem 0
}

.flex-row {
    display: flex;
    gap: var(--gap);
    align-items: center
}
/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-float img {
  margin: 0;
  width: 100%; /* Asegura que la imagen ocupe el ancho del botón */
  height: 100%; /* Asegura que la imagen ocupe la altura del botón */
  object-fit: contain; /* Mantiene la proporción de la imagen */
}

.whatsapp-float:hover {
  background-color: #128c7e;
}
a
{
    text-decoration: none;
    align-items: center;
}