/* ============================================================
   TUKTU JAMPI — Hoja de estilos principal
   Paleta: miel, cera, madera, tierra, verde natural, blanco
   ============================================================ */

:root {
    --color-miel: #d9922a;
    --color-miel-dark: #b5731b;
    --color-cera: #f0d9a8;
    --color-madera: #6b4a30;
    --color-tierra: #8a5a34;
    --color-verde: #4c6a45;
    --color-verde-dark: #35492f;
    --color-blanco: #fffaf2;
    --color-texto: #2b2420;
    --color-texto-suave: #5c5248;

    --font-heading: 'Fraunces', Georgia, serif;
    --font-body: 'Nunito Sans', 'Segoe UI', sans-serif;

    --radius-base: 14px;
    --radius-lg: 26px;
    --shadow-soft: 0 8px 24px rgba(107, 74, 48, 0.12);
    --shadow-lift: 0 24px 48px rgba(53, 40, 20, 0.16);
}

/* Red de seguridad contra desbordes horizontales en móvil: cualquier
   elemento que se pase del ancho de pantalla (imágenes, filas de Bootstrap
   con gutters grandes, etc.) queda recortado en vez de generar scroll
   horizontal y una sensación de sitio "roto" o desordenado. */
html {
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--color-texto);
    background-color: var(--color-blanco);
    line-height: 1.7;
    overflow-x: hidden;
    max-width: 100vw;
}

img, svg, video, iframe {
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-madera);
    font-weight: 600;
    hyphens: none;
    -webkit-hyphens: none;
}

/* Texto de párrafo prolijo: justificado, sin cortes de palabra feos por
   guionado automático del navegador (evita el "guion al final de línea"). */
p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: none;
    -webkit-hyphens: none;
    -ms-hyphens: none;
}
p.lead,
.card p,
.navbar p,
.hero-badge-float p,
.footer-tuktu p,
.estado-vacio p,
.breadcrumb p {
    text-align: left;
}

/* Etiqueta pequeña tipo editorial, arriba de un título de sección */
.eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-verde-dark);
    background: var(--color-cera);
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    margin-bottom: 0.9rem;
}

a {
    color: var(--color-verde-dark);
    text-decoration: none;
}
a:hover, a:focus {
    color: var(--color-miel-dark);
}

/* Foco visible accesible en toda la interfaz */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--color-miel);
    outline-offset: 2px;
}

.btn-miel {
    background-color: var(--color-miel);
    border-color: var(--color-miel-dark);
    color: #fff;
    font-weight: 600;
}
.btn-miel:hover, .btn-miel:focus {
    background-color: var(--color-miel-dark);
    border-color: var(--color-miel-dark);
    color: #fff;
}

.btn-verde {
    background-color: var(--color-verde);
    border-color: var(--color-verde-dark);
    color: #fff;
    font-weight: 600;
}
.btn-verde:hover, .btn-verde:focus {
    background-color: var(--color-verde-dark);
    border-color: var(--color-verde-dark);
    color: #fff;
}

/* ---------- Navbar ---------- */
.navbar-tuktu {
    background-color: var(--color-blanco);
    box-shadow: var(--shadow-soft);
}
.navbar-tuktu .navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-madera);
    font-size: 1.35rem;
}
.navbar-tuktu .navbar-brand small {
    display: block;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    color: var(--color-verde);
    font-weight: 600;
    text-transform: uppercase;
}
.navbar-tuktu .nav-link {
    color: var(--color-texto);
    font-weight: 600;
}
.navbar-tuktu .nav-link.active,
.navbar-tuktu .nav-link:hover {
    color: var(--color-miel-dark);
}

/* ---------- Selector de idioma ---------- */
.selector-idioma .nav-link {
    border: 1px solid rgba(107, 74, 48, 0.2);
    border-radius: 999px;
    padding: 0.3rem 0.9rem !important;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}
.selector-idioma .nav-link::after {
    margin-left: 0.4rem;
}
.selector-idioma .dropdown-menu {
    min-width: 8rem;
}
.selector-idioma .dropdown-item[aria-current="true"] {
    color: var(--color-miel-dark);
    font-weight: 700;
}
@media (max-width: 991.98px) {
    .selector-idioma {
        margin: 0.5rem 0;
    }
    .selector-idioma .dropdown-menu {
        position: static !important;
        border: none;
        box-shadow: none;
        padding-left: 0.5rem;
    }
}

/* ---------- Hero ---------- */
.hero-tuktu {
    background: linear-gradient(135deg, var(--color-cera) 0%, var(--color-blanco) 65%);
    padding: 5.5rem 0 8rem;
    position: relative;
    overflow: hidden;
}
.hero-tuktu::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../images/brand/hexagon-pattern.svg');
    background-repeat: repeat;
    opacity: 0.06;
    pointer-events: none;
}
.hero-tuktu .lead {
    color: var(--color-texto-suave);
    font-size: 1.15rem;
}
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}
.hero-blob--1 { width: 140px; height: 140px; background: var(--color-miel); opacity: 0.18; top: -30px; right: 8%; }
.hero-blob--2 { width: 90px; height: 90px; background: var(--color-verde); opacity: 0.14; bottom: 40px; left: 4%; }
.hero-badge-float {
    position: absolute;
    z-index: 5;
    background: #fff;
    border-radius: 999px;
    padding: 0.5rem 1.1rem;
    box-shadow: var(--shadow-soft);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-verde-dark);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.hero-badge-float span.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-miel); display: inline-block; }
.hero-badge-float--1 { top: 12%; right: 6%; }
.hero-badge-float--2 { bottom: 10%; right: 20%; }
@media (max-width: 991.98px) {
    .hero-badge-float { display: none; }
}

/* ---------- Carrusel de inicio ---------- */
#carruselTuktu .carousel-item img {
    aspect-ratio: 5 / 2;
    object-fit: cover;
    width: 100%;
}
#carruselTuktu .carousel-caption {
    background: linear-gradient(0deg, rgba(53,45,35,0.75) 0%, rgba(53,45,35,0) 100%);
    border-radius: 0 0 var(--radius-tuktu, 16px) var(--radius-tuktu, 16px);
    padding-top: 2.5rem;
}
#carruselTuktu .carousel-indicators [data-bs-target] {
    background-color: var(--color-miel);
}
@media (max-width: 575.98px) {
    #carruselTuktu .carousel-item img { aspect-ratio: 4 / 3; }
}

/* Divisor angular entre secciones (recurso de composición, uso moderado) */
.divider-angular {
    position: relative;
    height: 64px;
    margin-top: -64px;
    background: var(--color-blanco);
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.divider-angular--bg-cera {
    background: var(--color-cera);
    clip-path: polygon(0 0, 100% 100%, 0 100%);
}

/* ---------- Tarjetas de producto ---------- */
.card-producto {
    border: none;
    border-radius: var(--radius-base);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
    position: relative;
}
.card-producto::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-miel), var(--color-verde));
    opacity: 0;
    transition: opacity 0.25s ease;
}
.card-producto:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(107, 74, 48, 0.2);
}
.card-producto:hover::before {
    opacity: 1;
}
.card-producto .card-img-top {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background-color: var(--color-cera);
}
.badge-demo {
    background-color: #b3261e;
    color: #fff;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
}
.badge-categoria {
    background-color: var(--color-verde);
    color: #fff;
}
.precio-consultar {
    color: var(--color-verde-dark);
    font-weight: 700;
}

/* ---------- Sección Apiterapia ---------- */
.seccion-apiterapia {
    background-color: #f7f1e4;
    padding: 4rem 0;
}
.disclaimer-salud {
    background-color: #fff6e0;
    border-left: 4px solid var(--color-miel);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    font-size: 0.95rem;
    color: var(--color-texto-suave);
}

/* ---------- Elementos de la colmena — cuadrícula tipo panal ---------- */
.panal-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 0.75rem;
}
.panal-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 168px;
}
.panal-col--offset {
    margin-top: 3rem;
}
@media (max-width: 767.98px) {
    .panal-col--offset { margin-top: 0; }
    .panal-col { width: 46%; }
}
.colmena-item {
    text-align: center;
    text-decoration: none;
    display: block;
}
.colmena-item .icono-wrap {
    width: 100px;
    height: 100px;
    margin: 0 auto 0.65rem;
    transition: transform 0.25s ease;
    filter: drop-shadow(0 6px 10px rgba(107, 74, 48, 0.15));
}
.colmena-item:hover .icono-wrap,
.colmena-item:focus-visible .icono-wrap {
    transform: translateY(-6px) scale(1.04);
}
.colmena-item img { width: 100%; height: 100%; }
.colmena-item h3 {
    font-size: 0.85rem;
    color: var(--color-madera);
    margin-bottom: 0;
}

/* ---------- WhatsApp flotante ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 1050;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #25d366;
    color: #fff;
    padding: 14px;
    border-radius: 50px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    animation: wa-pulse 2.4s ease-in-out infinite;
    text-decoration: none;
}
.whatsapp-float svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}
.whatsapp-float .wa-label {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}
.whatsapp-float:hover .wa-label,
.whatsapp-float:focus .wa-label {
    max-width: 180px;
    margin-right: 4px;
}
.whatsapp-float:hover,
.whatsapp-float:focus {
    color: #fff;
}
@keyframes wa-pulse {
    0%, 100% { box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35); }
    50% { box-shadow: 0 6px 26px rgba(37, 211, 102, 0.6); }
}
@media (prefers-reduced-motion: reduce) {
    .whatsapp-float { animation: none; }
}
/* En celulares el botón se reduce y su brillo se suaviza para que no
   se vea desproporcionado ni tape el contenido de las tarjetas. */
@media (max-width: 576px) {
    .whatsapp-float {
        bottom: 14px;
        right: 14px;
        padding: 10px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        animation: wa-pulse-sm 2.4s ease-in-out infinite;
    }
    .whatsapp-float svg {
        width: 22px;
        height: 22px;
    }
    .whatsapp-float .wa-label {
        display: none;
    }
    /* Deja espacio al final de la página para que el botón flotante
       no quede encima de la última tarjeta o botón visible. */
    body {
        padding-bottom: 56px;
    }
}
@keyframes wa-pulse-sm {
    0%, 100% { box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3); }
    50% { box-shadow: 0 4px 14px rgba(37, 211, 102, 0.5); }
}

/* ---------- Footer ---------- */
.footer-tuktu {
    background-color: var(--color-verde-dark);
    color: #eef0e8;
    padding: 3.5rem 0 1.5rem;
}
.footer-tuktu a {
    color: #d8e3d2;
}
.footer-tuktu a:hover {
    color: var(--color-miel);
}
.footer-tuktu h5 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem;
}
.footer-tuktu hr {
    border-color: rgba(255,255,255,0.15);
}
.footer-bottom {
    font-size: 0.82rem;
    color: #b9c4b3;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumb-tuktu {
    background: transparent;
    padding: 1rem 0 0;
    font-size: 0.9rem;
}

/* ---------- Estados vacíos y 404 ---------- */
.estado-vacio {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--color-texto-suave);
}

/* ---------- Imágenes de producto: siempre cuadradas/proporcionadas,
   nunca se desbordan del contenedor ni deforman el layout ---------- */
.producto-imagen-principal {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    background-color: var(--color-cera);
}
.producto-galeria-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-base);
    background-color: var(--color-cera);
}

/* Vista previa de imagen actual en el formulario de administración */
.imagen-preview-actual img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: var(--radius-base);
    box-shadow: var(--shadow-soft);
    display: block;
}

/* ---------- Utilidades ---------- */
.section-padding { padding: 4rem 0; }
.text-miel { color: var(--color-miel-dark); }
.text-verde { color: var(--color-verde-dark); }
.bg-cera { background-color: var(--color-cera); }
.rounded-tuktu { border-radius: var(--radius-base); }

/* ---------- Franja de valores (Nosotros / Home) ---------- */
.valor-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.valor-item .valor-icono {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--color-cera);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--color-madera);
}

/* ---------- Tarjetas de contacto ---------- */
.tarjeta-contacto {
    background: #fff;
    border-radius: var(--radius-base);
    box-shadow: var(--shadow-soft);
    padding: 1.75rem 1.25rem;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tarjeta-contacto:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
}
.tarjeta-contacto-icono {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.9rem;
    border-radius: 50%;
    background: var(--color-cera);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.tarjeta-contacto h2 {
    color: var(--color-madera);
    margin-bottom: 0.4rem;
}
.tarjeta-contacto a {
    color: var(--color-verde-dark);
    font-weight: 700;
}
.tarjeta-contacto a:hover,
.tarjeta-contacto a:focus {
    color: var(--color-miel-dark);
}

/* Sombra suave reutilizable (mapas, imágenes destacadas) */
.shadow-soft-tuktu {
    box-shadow: var(--shadow-soft);
}

/* ---------- Panel de formulario en pausa ---------- */
.panel-pausa {
    background: var(--color-cera);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
}
.panel-pausa h2 {
    color: var(--color-madera);
}

/* Skip link accesible */
.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    background: var(--color-miel);
    color: #fff;
    padding: 10px 18px;
    z-index: 2000;
    border-radius: 0 0 8px 0;
}
.skip-link:focus {
    left: 0;
    top: 0;
}
