/** ------------------------------------------------------------------------------------------------------------ **/

@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Calistoga&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Quicksand:wght@300..700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Mono:wght@100..900&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@200..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&family=Unbounded:wght@200..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Baloo+Da+2:wght@400..800&display=swap');


/**TODO - VARIBLES **/

/* NOTE - ROOT **/

:root {

    /** TOKEINZAR
  --bg: #fff;
  --bg-CTA-reverse: #111;
  --text-secondary: #666;
  --text: #111;
  --text-reverse: #f0f0f0;
  --accent-color: #5512D4;
  --bg-CTA: #f0f0f0;
  --card-bg: #fff;
  --border: #e5e5e5;
  --shadow: rgba(0, 0, 0, 0.05);
  --shadow-navbar: rgba(0, 0, 0, 0.05);
  --radius-image: 16px;
  --radius-card: 24px;
  --radius-btn: 40px;
  --space: 1.5rem;
  --space-y: 0 0 2rem
  **/


    /* Colors */
    --color-primary: #406042;
    --color-secondary: #507552;
    /*--color-secondary: #6c5ce7;*/
    --color-accent: #f72585;
    --color-bg: #f6f6f6;
    --color-text: #222222;
    --color-muted: #5e5e5e;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 5rem;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;

    /* Fonts */
    --primary-font: 'Inter', sans-serif;
    --secondary-font: "Manrope", sans-serif;
    --fs-xsm: 0.675rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-md: 1.25rem;
    --fs-lg: 1.5rem;
    --fs-xl: 2rem;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);

    /* Tipografía */
    --font-base: 'Inter', sans-serif;
    --font-size-base: 1rem;
    --font-size-sm: 0.875rem;
    --font-size-lg: 1.25rem;

    /* Espaciados */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;

    /* Bordes */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
}

.dark-mode {
  --bg: #1a1a1a;
  --bg-CTA: #111;
  --bg-CTA-reverse: #f0f0f0;
  --text: #f0f0f0;
  --text-reverse: #111;
  --accent-color: #B6DA23;
  --text-secondary: #bbb;
  --card-bg: #2b2b2b;
  --border: #444;
  --shadow: rgba(0, 0, 0, 0.4);
  --shadow-navbar: rgba(150, 150, 150, 0.05)
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: var(--font-base);
    font-size: var(--font-size-base);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    overflow-y: scroll; 
    overflow-x: hidden;
}


.h1,
h1 {
    font-size: 2rem;
    color: #1E1E1E;
    font-weight: 700;
    font-family: var(--ki-primary-font);
}

.h2,
h2 {
    
    font-size: 2rem;
    color: var(--color-text);
    font-weight: 700;
    font-family: var(--ki-primary-font);
}

.h3,
h3 {
    font-size: 1.6rem;
    color: #1E1E1E;
    font-weight: 700;
    margin: 0 0 1rem 0;
    font-family: var(--ki-primary-font);
}

.KIREI__primary-font {
    font-family: 'Calistoga', sans-serif;
    font-style: normal;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

figcaption {
    font-size: var(--fs-sm);
    color: var(--color-muted);
    text-align: center;
    margin-top: var(--spacing-xs);
}

blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: var(--spacing-sm);
    color: var(--color-muted);
    font-style: italic;
    margin: var(--spacing-md) 0;
}

a {
    color: inherit;
    text-decoration: none;
    width: fit-content;
}

button {
    border: none;
    cursor: pointer;
    font: inherit;
    background: var(--color-primary);
    color: #ffffff;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    transition: background 0.3s ease;
}

button:hover {
    background: var(--color-secondary);
}

main {
    width: 90%;
    flex-grow: 1;
    margin: 0 auto;
}

/** HASTA ACÁ ESTILOS GLOBALES **/

/* -------------------------------------- */
/* 🛍️ SECCIONES DE PRODUCTOS (MAIN SHOP)  */
/* -------------------------------------- */

.page-header {
    text-align: center;
    margin: 4rem 0 2rem 0;
}

.category-section {
    padding: 4rem 0 0 0;
    margin: 4rem 0 0 0;
}

.category-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-left: 0.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .category-section h2 {
        text-align: left;
        padding-left: 3rem;
    }
}


.products-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    position: relative;
    margin: 0 0 7rem 0;
}

/* CARD BASE */
.product-card {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 10px;
    padding: 1rem;
    width: 240px;
    min-height: 330px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 12px rgb(0 0 0 / 10%);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.product-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.price {
    color: #222;
    font-weight: bold;
    font-size: 1.1rem;
    margin: 0.5rem 0 1rem 0;
}

.card-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.btn {
    padding: 0.8rem;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.view-btn {
    width: auto;
    background: #3483fa;
    color: white;
}

.cart-btn {
    background: #00a650;
    color: white;
}

/* -------------------------------------- */
/* 🍔 NAV BAR: MOBILE-FIRST (Menú Vertical) */
/* -------------------------------------- */

.page-content {
    margin: 0 auto;
    padding: 2rem 0;
    width: 90%;
    max-width: 1200px;
}

header.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    margin: 0 0 3rem 0;
}

nav {
    background-color: #333;
    padding: 10px 20px;
    display: flex;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    margin: -24px -8px 0 0;
}

.logo-navbar-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-header {
    display: flex;
}

.header-logo-svg {
    height: 30px;
    width: auto;
    margin: 0;
    flex-shrink: 0;
}

#theme-toggle {
  position: relative;
  right: 0;
  top: 4px;
  border: none;
  background: 0 0;
  font-size: 1.2rem;
  cursor: pointer
}

/* ☰ BOTÓN DE HAMBURGUESA */
.menu-toggle {
    display: block;
    /* Visible en móvil */
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    order: -1;
    /* Asegura que va primero */
}

/* 🛠️ LISTA DE NAVEGACIÓN PRINCIPAL */
#main-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    /* Ocupa todo el ancho en móvil */

    display: none;
    /* 🔥 Oculto por defecto en móvil */
    flex-direction: column;
    gap: 5px;
}

/* Estado VISIBLE que el JS alterna */
#main-nav-list.is-visible {
    display: flex !important;
    /* Muestra verticalmente */
}

/* Estilos de los ítems de lista y enlaces */
nav li {
    text-align: left;
    position: relative;
    /* Contenedor para el dropdown */
}

nav a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    display: block;
    border-radius: 4px;
    transition: background-color 0.2s;
}

nav a:hover {
    background-color: #555;
}

nav a.logo-navbar-link:hover {
    background-color: transparent;
}

.nav-sections {
    width: -webkit-fill-available;
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-around;
}   

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

/* -------------------------------------- */
/* 🛒 PSEUDO MEGAMENÚ (SHOP DROPDOWN)    */
/* -------------------------------------- */

/* Propiedades físicas y ocultamiento por defecto */
#shop-megamenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 300px;
    background: #ffffff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
}

/* Mostrar el menú al hacer HOVER (La regla que funciona) */
.nav-dropdown-parent:hover>#shop-megamenu {
    display: flex !important;
    flex-direction: column;
    /* 🔥 Columna para Categorías encima de Destacados */
    gap: 15px;
}

/* H3 Títulos */
#shop-megamenu h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 700;
}

/* -------------------------------------- */
/* 🌐 SECCIÓN CATEGORÍAS (HORIZONTAL WRAP) */
/* -------------------------------------- */

.menu-categories {
    width: 100%;
    padding-bottom: 10px;
    margin-bottom: 5px;
    border-bottom: 1px solid #eee;
    /* Separador */
}

#menu-category-list {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    flex-wrap: wrap;
    /* 🔥 Permite que salten de línea si no caben */
    gap: 15px;
}

#menu-category-list li {
    text-align: center;
    white-space: nowrap;
}

/* Estilos de los enlaces de categoría (Sobrescribe Nav) */
#menu-category-list a {
    color: #007bff;
    text-decoration: none;
    padding: .4rem .8rem;
    display: block;
    font-size: 0.95rem;
    background-color: #d7d7d7;
}

#menu-category-list a:hover {
    color: #0056b3;
    background-color: #ffaa00;
    text-decoration: none;
}

/* Separador visual para las categorías (ej: "jabones | sales") */
#menu-category-list li:not(:last-child) a::after {
    /*content: " | ";*/
    color: #aaa;
    margin-left: 10px;
}


/* -------------------------------------- */
/* ⭐ SECCIÓN DESTACADOS (MOBILE vs DESKTOP) */
/* -------------------------------------- */

.menu-featured {
    width: 100%;
}

#menu-featured-grid {
    display: flex;
    /* 🔥 Mobile/Tablet: Columna */
    flex-direction: column;
    gap: 10px;
}

/* -------------------------------------- */
/* 💻 DESKTOP: AJUSTES FINALES (> 768px) */
/* -------------------------------------- */
@media (min-width: 768px) {

    /* ⭐ DESTACADOS: CAMBIO A FILA EN DESKTOP */
    #menu-featured-grid {
        flex-direction: row;
        /* 🔥 Desktop: Fila */
        justify-content: space-between;
    }

    /* Responsive Grid de Productos (Ya estaba OK) */
    .products-grid {
        justify-content: flex-start;
    }

    .product-card {
        width: 230px;
    }

    /* NAV BAR HORIZONTAL (Ya estaba OK) */



    .menu-toggle {
        display: none;
    }

    #main-nav-list {
        display: flex !important;
        flex-direction: row;
        justify-content: flex-start;
        gap: 20px;
        width: auto;
    }

    #shop-megamenu {
        width: 600px;
    }
}

/* DESKTOP XL */
@media (min-width: 992px) {
    .product-card {
        width: 220px;
    }
}

footer {
    background-color: #333;
    color: #f6f6f6;
    padding: 30px 20px 10px;
    font-family: system-ui, sans-serif;
    border-top: 5px solid #555;
    line-height: 1.6;
    margin: 3rem -8px 0 0;
}

footer h4 {
    color: #fff;
    margin-bottom: 15px;
    border-bottom: 1px solid #555;
    padding-bottom: 5px;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fff;
}

.footer-section {
    margin-bottom: 25px;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #555;
    margin: 20px auto;
    padding-top: 15px;
    text-align: center;
    font-size: 0.9em;
}

.footer-bottom p {
    margin: 16px 0;
}

@media (min-width: 768px) {
    .footer-bottom {
    margin: 0;
    }
}

.social-links a {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background-color: #555;
    margin-right: 10px;
    border-radius: 4px;
    font-weight: bold;
    color: #fff;
}

.social-links a:hover {
    background-color: #777;
}

@media (min-width: 768px) {
    .footer-bottom {
        max-width: 1200px;
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        margin: auto;
    }
    .footer-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .footer-section {
        margin-bottom: 0;
    }
}


.item-container {
    min-width: 300px;
    width: 300px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    background-color: #f8f8f8;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.item-data {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.item-name {
    font-size: var(--fs-md);
    font-weight: bold;
    line-height: 1.5rem;
    margin: 1.3rem 0 .4rem 0;
}

.item-count {
    font-weight: bold;
    margin: 24px 0 0 0;
}

.item-desc {
    font-size: var(--fs-sm);
    color: var(--color-muted);
}

.item-price {
    font-size: var(--fs-md);
    color: var(--color-primary);
    font-weight: bold;
}

.item-price-no-taxes {
    font-size: var(--fs-xsm);
    line-height: 8px;
    color: #777;
}

.item-price-no-taxes span {
    font-weight: 600;
}

.item-unit-info {
    color: var(--color-muted);
    font-size: var(--fs-xsm);
    line-height: 8px;
}

.add-item-to-cart {
    display: flex;
    gap: var(--space-xs);
}

.add-item-to-cart button {
    flex: 1;
    padding: var(--space-xs);
    border: none;
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0 0 0;
    gap: 8px;
}

@media (min-width: 768px) {

    .item-container {
        width: calc(50% - var(--spacing-md));
    }
}

@media (min-width: 1024px) {
    .item-container {
        width: calc(25% - var(--spacing-md));
    }
}

#carritoItems {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 428px;
    padding: 0 16px 0 0;
    scrollbar-width: thin;
    scrollbar-color: #00b894 #e0e0e0;
    /* TODO -- tokenizar: scrollbar-color: var(--color-scroll-frente) var(--color-scroll-fondo); */
}

#carritoItems::-webkit-scrollbar:horizontal {
    display: none;
}

#carritoItems::-webkit-scrollbar {
    width: 8px;
}

#carritoItems::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 4px;
}

#carritoItems::-webkit-scrollbar-thumb {
    background: #00b894;
    border-radius: 4px;
}

#carritoItems::-webkit-scrollbar-thumb:hover {
    background: #019875;
}

.carrito-thumb img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    position: relative;
}


.card {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* Por defecto, cuadrado */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    /*background-color: #ddd;*/
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-estado {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #000;
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    text-transform: uppercase;
}


/* Agotado / NO */
.agotado {
    background: #ffe5e5;
    color: #b80000;
    border: 1px solid #ffb3b3;
}

/* Próximamente */
.proximamente {
    background: #f7eaff;
    color: #7a3db8;
    border: 1px solid #ddb7ff;
}

.btn-details {
    width: auto;
    background: #406042;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease;
}

/** FAB CARRITO **/

.cart-indicator {
    color: #ffffff;
    margin: 0 0 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 999;
}

#carritoContenedor {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 50%;
    min-width: 350px;
    max-width: 500px;
    /*max-height: 632px;*/
    padding: 1rem;
    border-radius: var(--radius-md);
    background-color: var(--color-bg);
    color: #ffffff;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: background-color 0.3s ease;
}

#vaciarCarritoBtn {
    background-color: #dc3545;
    color: #ffffff;
    border-color: #dc3545;
    font-size: 16px;
}

#vaciarCarritoBtn:hover {
    background-color: #c82333;
    border-color: #c82333;
}



#finalizarCompraBtn {
    background: #25D366 !important;
    font-size: 16px;
}

#finalizarCompraBtn:hover {
    background: #075E54 !important;
}



.carrito-item {
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0 0 0;
    border-top: 1px solid;
    flex-wrap: wrap;
    gap: 13px;
}

/*
.carrito-item img {
  width: 10px;
  margin-right: 0.5rem;
  position: absolute;
  bottom: 4px;
  right: 3px;
}
*/

.carrito-item-nombre {
    width: -webkit-fill-available;
}

.carrito-item-cantidad {
    font-size: 12px;
    font-weight: 900;
}


.carrito-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.carrito-item-nombre {
    width: 212px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    text-align: start;
}

.carrito-item-precio {
    font-size: 14px;
    color: #666;
}

.carrito-info {
    text-align: end;
}

.controles {
    display: flex;
    align-items: center;
    gap: 16px;
}

.controles button {
    /*
  margin: 0 1px;
  width: 30px;
  height: 20px;
  position: relative;
  top: -4px;
  */
    background: #099e4c;
    transition: background 0.3s ease;
}

.controles button:hover {
    background: #00614E !important;
}

.controles button:last-child {
    background: #dc3545;
    color: #ffffff;
    font-weight: bold;
    border-radius: 4px;
}

.controles button:last-child:hover {
    background: #c82333 !important;
}

.controles span {
    font-size: 20px;
    position: relative;
    bottom: 6px;
    left: -2px;
}

.carrito-right {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

/* 1. Aplicar Flexbox al botón contenedor */
.btn-decr,
.btn-incr,
.btn-remove {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.btn-decr img,
.btn-incr img,
.btn-remove img {
    height: 12px;
    flex-shrink: 0;
}

#totalCarrito {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 24px 0 16px;
}

/* Estilos para el carrito lateral 
#carritoContenedor {
}
*/
.carrito-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#cerrarCarritoBtn {
    background: #727272;
    border: none;
    cursor: pointer;
    padding: 5px;
}

#cerrarCarritoBtn img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.add-item-to-cart-single {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    gap: 8px;
    white-space: nowrap;
    /* evita saltos */
}


/** SITE & BLOG STYLES **/


/* ======================================= */
/* 0. UTILITIES y CLASES COMPARTIDAS (DRY) */
/* ======================================= */

:root {
    /* Variables de Color Usadas */
    --ki-green-dark: #2E5148;
    --ki-green-light: #F2F5F2;
    --ki-text-dark: #333;
    --ki-accent: #8D4B39;
    --ki-color-text: #444;
    --ki-color-dark: #5E8A61;
    --ki-color-footer: #222;
    /* Usado en .ki-hero-content .ki-hero-subtitle */

    /* Variables de Espaciado/Diseño Usadas */
    --ki-padding-mobile: 20px;
    --ki-radius: 8px;
    --ki-primary-font: 'Baloo Da 2', cursive;
}


/* Contenedor central (Modular) */
.ki-container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--ki-padding-mobile);
    padding-right: var(--ki-padding-mobile);
}

/* Bloques de sección (Modular) */
.ki-block-padding {
    padding-top: 50px;
    padding-bottom: 50px;
}


/* Títulos y Espaciado */
.ki-section-title {
    font-size: 1.6rem;
    margin-bottom: 30px;
    font-weight: bold;
}

/* Backgrounds y Texto */
.ki-bg-dark {
    background-color: var(--ki-color-dark);
}

.ki-text-center {
    text-align: center;
}

/* Imágenes (Modular) */
.ki-header-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.ki-img-responsive {
    max-width: 100%;
    height: auto;
    display: block;
}

.ki-rounded {
    border-radius: var(--ki-radius);
}

/* Botones (Modular) */
.ki-btn {
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    text-align: center;
    border: 1px solid transparent;
    transition: background-color 0.3s;
}

.ki-btn-primary {
    background-color: var(--ki-green-dark);
    color: white;
}

.ki-btn-primary:hover {
    background-color: #244136;
}

/* ======================================= */
/* ESTRUCTURA HERO */
/* ======================================= */
.ki-hero-section {
    color: white;
    /* Usado en la segunda sección .ki-bg-dark */
    text-align: center;
    overflow: hidden;
}

.ki-hero-section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    box-sizing: border-box;
}

/* ======================================= */
/* 1. HERO - Wrapper */
/* ======================================= */
.ki-hero-wrapper {
    background-color: var(--ki-green-light);
    position: relative;
    padding: 0 0 2rem 0;
    overflow: hidden;
}

/* Contenido Principal (Texto) */
.ki-hero-content {
    position: relative;
    z-index: 5;
    width: 100%;
}

.ki-hero-subtitle {
    font-family: var(--ki-primary-font);
    font-size: 1.6rem;
    color: var(--ki-green-light);
    /* Esto no se ve, se sobreescribe abajo */
    margin-bottom: -30px;
    text-transform: uppercase;
    font-weight: 700;
}

.ki-hero-content .ki-hero-subtitle {
    font-family: var(--ki-primary-font);
    font-size: 1.6rem;
    color: var(--ki-color-footer);
    /* Color para la primera sección */
    margin-bottom: -30px;
    text-transform: uppercase;
    font-weight: 700;

}

.ki-hero-title {
    font-size: 2rem;
    font-weight: 900;
    margin: 3rem 0 1rem;
    line-height: 1.2;
}

.ki-hero-desc {
    max-width: 90%;
    margin: 3rem 0 1rem;
}

/* Imagen de Producto */
.ki-hero-image {
    position: relative;
    z-index: 3;
    width: 100%;
    margin-top: 40px;
}

.ki-hero-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    border-radius: var(--ki-radius);
    overflow: visible;
}

/* ======================================= */
/* SECCIÓN 2: STORY BLOCK */
/* ======================================= */
.ki-story-block {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* ======================================= */
/* SECCIÓN 4: CTA FERIA */
/* ======================================= */
.ki-cta-guide-section {
    margin: 0 0 3rem 0;
}

.ki-flex {
    display: flex;
}

.ki-flex-column {
    flex-direction: column;
}

.ki-gap-md {
    gap: 20px;
}

.ki-align-center {
    align-items: center;
}

.ki-img-float {
    max-width: 320px;
    margin: 0;
}


/* ======================================= */
/* MEDIA QUERIES (Desktop) */
/* ======================================= */

@media (min-width: 768px) {

    /* Re-habilitación de estilos desktop genéricos */
    .ki-hero-section .ki-container {
        display: grid;
        grid-template-columns: 1.5fr 1fr;
        gap: 30px;
        align-items: center;
        text-align: left;
    }
}

@media (min-width: 992px) {

    /* HERO - WRAPPER */
    .ki-hero-wrapper {
        padding-bottom: 100px;
        overflow: visible;
    }

    .ki-hero-wrapper .ki-container {
        display: flex;
        flex-wrap: nowrap;
        gap: 50px;
        align-items: center;
    }

    .ki-hero-content {
        width: 90%;
        padding-top: 0;
    }

    .ki-hero-image {
        width: 50%;
        margin-top: 0;
    }

    .ki-hero-image img {
        height: 550px;
        width: 100%;
        aspect-ratio: auto;
    }

    .ki-hero-title {
        font-size: 2.8rem;
    }

    .ki-hero-desc {
        max-width: 90%;
    }
}

/** MODAL **/

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-contenido {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 400px;
    text-align: center;
}

/** MAS VENDIDOS CARROUSEL **/

.featured-carousel-wrapper {

    scrollbar-width: thin;
    scrollbar-color: #333 #ccc;

    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
}

/* Estilos para las tarjetas dentro del carrusel */


.featured-card {
    display: flex;
    flex-direction: column;
    /* La card es fila para la imagen y el texto */
    align-items: center;
    text-align: left;
    text-decoration: none;
    color: #333;
    width: 25%;
    gap: 10px;
    padding: 5px 0;

    flex-shrink: 0;
    scroll-snap-align: start;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.featured-card img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 0;
}

.featured-card .price {
    font-weight: bold;
    color: #00a650;
}

/* --- RESPONSIVE BREAKPOINTS --- */

@media (max-width: 767px) {

    .featured-card img {
        height: 80px;
        width: 100%;
        margin: 0 auto 5px;
    }

    .featured-card .price {
        margin-left: 0;
        /* Centra el precio */
    }

    .featured-card {
        /*
        width: calc(100% - 33%);
        */
        width: 30%;
    }
}

@media (min-width: 768px) {
    .featured-card {
        width: calc((100% / 3) - 8%);
    }
}

.carousel-dots-container {
    text-align: center;
    margin-top: 15px;
}

.carousel-dot {
    display: hidden;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-dot.active {
    background-color: #333;
}

.carousel-dot {
    cursor: pointer;
}

.featured-carousel-wrapper {
    overflow-x: scroll;

    scrollbar-width: auto;
    scrollbar-color: #333 #ccc;
}

.featured-carousel-wrapper::-webkit-scrollbar {
    height: 8px;
}

.featured-carousel-wrapper::-webkit-scrollbar-thumb {
    background-color: #333;
    border-radius: 4px;
    border: 2px solid #fff;
}

.featured-carousel-wrapper::-webkit-scrollbar-track {
    background-color: #ccc;
    border-radius: 4px;
}

/* Estilo para todas las estrellas SVG */
.product-rating-svg .star-icon {
    width: 20px;
    /* Tamaño del icono */
    height: 20px;
}

/* Opcional: ajustar el contenedor de texto/span */
.product-rating-svg {
    white-space: nowrap;
    /* Evita que las estrellas se rompan en varias líneas */
    display: flex;
    font-size: 0;
    /* Para eliminar el espacio en blanco extra entre los iconos si lo hay */
}

.star-filled-svg {
    display: flex;
}

.star-empty-svg {
    display: flex;
}

/** ESTILOS SINGLE_PRODUCT_PAGES **/

/* Base de la página */
#single-product-container {
    margin: 2rem auto;
    max-width: 1200px;
    padding: 0 1rem;
}

/* Contenedor principal de la galería e info */
.product-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: auto;
}

/* --- GALERÍA --- */
.product-gallery {
    flex: 1 1 350px;
}

.main-image-wrapper {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    max-height: 400px;
    /* Limitar altura para mantener proporción */
}

.main-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

.thumbnail-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    /* Espacio para scrollbar si aparece */
}

.thumbnail {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.thumbnail.active,
.thumbnail:hover {
    border-color: #ff69b4;
}

/* --- INFO Y CTA --- */
.product-info {
    flex: 1 1 450px;
}

.product-info h1 {
    font-size: 2rem;
    margin-bottom: .5rem;
}

.product-info .short-desc {
    color: #666;
    margin-bottom: 1.5rem;
}

.price-block {
    margin-bottom: 1.5rem;
    padding: 10px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.main-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #444;
    display: block;
}

.small-info {
    font-size: 0.9rem;
    color: #999;
    display: block;
}

/* Botón de Carrito */
.cta-primary {
    padding: 1rem 2rem;
    background: #ff69b4;
    color: white;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    display: block;
    width: 100%;
    transition: background 0.3s;
}

.cta-primary:disabled {
    background-color: #ccc;
    cursor: default;
}

/* --- TABS --- */
.product-tabs-wrapper {
    max-width: 900px;
    margin: 3rem auto;
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}

.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #eee;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    /* Compensar el borde inferior */
    transition: color 0.2s, border-color 0.2s;
}

.tab-btn.active {
    color: #ff69b4;
    border-bottom-color: #ff69b4;
}

.tab-content {
    display: none;
    line-height: 1.6;
}

.tab-content.active {
    display: block;
}

/* --- RELACIONADOS --- */
.related-container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.related-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.related-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.related-card {
    width: 80%;
    display: flex;
    flex-direction: column;
    background: white;
    padding: 1rem;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

@media (min-width: 768px) {
    .related-card {
        min-width: 300px;
        width: 25%;
    }
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.related-card img {
    height: 200px;
    /* Altura fija para imagen */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: .5rem;
}

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

.related-card p {
    font-weight: 700;
    color: #ff69b4;
    margin: 5px 0 0;
}

/* Media Queries */
@media (min-width: 768px) {
    .product-wrapper {
        flex-direction: row;
    }

    .main-image-wrapper {
        max-height: 500px;
    }

    .related-grid {
        justify-content: flex-start;
    }
}


.tab-section {
    margin: 0 0 40px 0;
}


/** ======================================= **/



.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  margin: 3rem 0 1rem
}

.social-icon-wrapper .bg {
  fill: #ffffff;
  transition: fill .3s ease
}

.social-icon-wrapper .icon {
  fill: #000000;
  transition: fill .3s ease
}

.social-icon-wrapper:hover .bg {
  fill: #000000
}

.social-icon-wrapper:hover .icon {
  fill: #ffffff
}

.link-featured {
  width: fit-content !important;
  padding: 0 24px
}

.social-links a {
  width: 50px;
  height: 50px;
  color: #000000;
  font-size: 1.1rem;
  background-color: var(--bg-CTA);
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center
}

.social-links a:hover {
  color: #ffffff;
  background-color: var(--bg-CTA-reverse)
}


/* NOTE - SCROLL TO TOP BUTTON */

.scroll-top-btn {
  position: fixed;
  bottom: 7rem;
  right: 1rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transform: translateY(20px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    background-color 0.3s ease;
  z-index: 99; /* más alto que navbar o modales */
}

.scroll-top-btn:hover,
.scroll-top-btn:focus-visible {
  background-color: var(--color-secondary);
  outline: none;
  transform: scale(1.05);
}

/** CONTACT PAGE STYLES **/

.contact-container {
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
}
.contact-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 600px) {
  .contact-row {
    gap: 3rem;
  }
}
.contact-col {
    width: 90%;
    margin: auto;
}
.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.contact-form-group .user {
    width: 100%;
}

@media (min-width: 1000px) {
  .contact-container {
    padding: 0rem;
  }
  .contact-row {
      flex-direction: row;
  }
  .contact-col {
    width: 80%;
    margin: auto;
  }
}

.contact-card {
  width: -webkit-fill-available;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
}
.contact-card-inner {
  padding: 1rem;
}
.contact-box {
  display: flex;
  align-items: center;
}
.contact-flex {
  display: flex;
  align-items: center;
}
.contact-img-lg {
  max-height: 60px;
  margin-right: 20px;
  border-radius: 8px;
}
.contact-img-sm {
  max-height: 34px;
  margin: 16px 32px 16px 16px; 
}
.contact-title {
  font-size: 1.2rem;
  font-weight: 600;
}
.contact-text {
  margin: 0.25rem 0 0;
}
.contact-heading {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.contact-description {
  margin-bottom: 2rem;
}
.contact-form-group {
  margin-bottom: 1.5rem;
  width: 100%;
}
.contact-form-group .user {
    width: 50%;
}

.contact-form-group input,
.contact-form-group select,
.contact-form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}
.contact-error {
  color: red;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}
.contact-btn {
  width: 100%;
  background: #28a745;
  color: white;
  font-weight: 600;
  border: none;
  padding: 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.contact-btn:hover {
  background: #218838;
}
.contact-note {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
}
.contact-map iframe {
  border-radius: 8px;
  width: 100%;
  height: 345px;
}
