/*
 * Tamáka Kids
 * Estilos generales del sitio.
 *
 * Los estilos se irán trasladando aquí
 * de forma gradual desde Elementor.
 */

/* =====================================================
   TÍTULO DEL ANIMAL
===================================================== */

.animal-title-wrapper{
    position:relative;

    width:max-content;
    max-width:90%;

    margin:0 auto 22px;

    padding:8px 38px 12px;

    display:flex;

    align-items:center;
    justify-content:center;

    background:
        linear-gradient(
            180deg,
            rgba(255,249,228,.96),
            rgba(246,226,181,.94)
        );

    border:2px solid rgba(255,255,255,.9);

    border-radius:28px;

    box-shadow:
        0 5px 0 rgba(96,61,30,.20),
        0 8px 18px rgba(70,45,20,.12);

    z-index:10;
}


/* =====================================================
   TÍTULO
===================================================== */

.animal-title{
    position:relative;

    margin:0 !important;
    padding:0 !important;

    display:flex !important;

    align-items:baseline;
    justify-content:center;

    gap:8px;

    font-family:inherit;

    font-size:52px;

    font-weight:900 !important;

    line-height:1;

    letter-spacing:-1px;

    white-space:nowrap;

    color:#4A2819 !important;

    opacity:1 !important;

    visibility:visible !important;
}


/* =====================================================
   LUNA
===================================================== */

.title-name{

    display:inline-block !important;

    color:#EA9B1A !important;

    font-weight:900 !important;

    opacity:1 !important;

    visibility:visible !important;

    -webkit-text-stroke:2px #4A2819;

    text-shadow:
        0 3px 0 rgba(74,40,25,.22);
}


/* =====================================================
   "LA"
===================================================== */

.title-connector{

    display:inline-block !important;

    font-size:.90em;

    font-weight:800 !important;

    color:#EA9B1A !important;

    opacity:1 !important;

    visibility:visible !important;

    -webkit-text-stroke:1.5px #4A2819;

    text-shadow:
        0 2px 0 rgba(74,40,25,.20);
}


/* =====================================================
   JAGUAR
===================================================== */

.title-animal{

    display:inline-block !important;

    color:#EA9B1A !important;

    font-weight:900 !important;

    opacity:1 !important;

    visibility:visible !important;

    -webkit-text-stroke:2px #4A2819;

    text-shadow:
        0 3px 0 rgba(74,40,25,.25);
}


/* =====================================================
   DECORACIONES
===================================================== */

.title-decoration{

    position:absolute;

    font-size:50px;

    opacity:.85;

    pointer-events:none;
}


.title-leaf-left{

    left:-25px;

    top:50%;

    transform:
        translateY(-50%)
        rotate(-20deg);
}


.title-leaf-right{

    right:-25px;

    top:50%;

    transform:
        translateY(-50%)
        rotate(20deg)
        scaleX(-1);
}


/* =====================================================
   HUELLA
===================================================== */

.title-paw{

    position:absolute;

    right:-13px;

    top:-15px;

    font-size:20px;

    transform:rotate(15deg);

    opacity:.85;
}



/* =====================================================
   VARIABLES GENERALES
===================================================== */

.animal-hero{
    --texto:#28322b;
    --crema:#fff8e8;
}


/* =====================================================
   CONTENEDOR
===================================================== */

.animal-hero{
    position:relative;
    min-height:520px;
    overflow:hidden;
    border-radius: 0 0 28px 28px;

    background-image:url("https://kids.tamaka.com.co/wp-content/uploads/2026/05/Selva-Colombiana.png") !important;

    background-repeat:no-repeat !important;

    background-size:cover !important;

    background-position:center bottom !important;
}


/* ====================================
   Animal
===================================================== */

.animal-character{
    position:absolute;

    width:480px;

    right:10%;
    bottom:0;

    z-index:2;
}


.animal-character img{
    display:block;

    width:100%;
    height:auto;
    margin-bottom: -2px;

    max-width:100%;
}




.animal-dialogue{
    position:absolute;
    top:80px;
    left:45% !important;

    width:370px !important;

    padding:30px;

    box-sizing:border-box;

    background:var(--crema);

    border:3px solid black;

    border-radius:45px;

    box-shadow:
        0 8px 0 rgba(90,65,30,.15);

    z-index:3;
}


.animal-dialogue p{
    margin:0;

    font-size:24px;

    line-height:1.5;

    color:var(--texto);

    text-align:center;
}


/* =====================================================
   PUNTA DE LA BURBUJA
===================================================== */

.animal-dialogue::after{
    content:"";

    position:absolute;

    right:-17px;
    bottom:25px;

    width:35px;
    height:35px;

    background:var(--crema);

    border-right:3px solid black;
    border-bottom:3px solid black;

    transform:rotate(-38deg);
}

/* ==========================================
   TAMÁKA KIDS — EXPLORA MI CUERPO
========================================== */

.explora-cuerpo {
    --explora-verde: #28583e;
    --explora-crema: #fff8e8;
    --explora-naranja: #dc792e;
    --explora-azul: #299bd1;

    position: relative;
    isolation: isolate;
    width: 100%;
    box-sizing: border-box;
    padding: 45px 5% 50px;
    margin: 0;
    overflow: hidden;

  }

/* Contenido principal */

.explora-cuerpo .explora-inner {
    position: relative;
    z-index: 1;
    max-width: 1450px;
    margin: 0 auto;
}

/* Encabezado */

.explora-cuerpo .explora-titulo {
    color: var(--explora-verde);
    background: rgba(255, 255, 255, 0.80);
    border: 3px solid #ffffff;
    border-radius: 25px;
    box-shadow: 0 5px 0 rgba(80, 65, 35, 0.13);
    font-size: clamp(27px, 3vw, 43px);
    font-weight: 800;
    line-height: 1.2;
}

.explora-cuerpo .explora-titulo span {
    color: var(--explora-naranja);
}

.explora-cuerpo .explora-descripcion {
    margin: 0 auto;
    max-width: 760px;

    color: #283b2d;
    font-size: 17px;
    line-height: 1.6;
}

/* Tres tarjetas */

.explora-cuerpo .explora-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

/* Tarjeta general */

.explora-cuerpo .explora-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 22px;
    box-sizing: border-box;

    border: 3px solid rgba(255, 255, 255, 0.95);
    border-radius: 28px;
    box-shadow: 0 7px 0 rgba(70, 55, 30, 0.12);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.explora-cuerpo .explora-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(50, 50, 30, 0.14);
}

.explora-cuerpo .explora-huella {
    background: linear-gradient(145deg, #fff0d0, #ffdda0);
}

.explora-cuerpo .explora-esqueleto {
    background: linear-gradient(145deg, #edf5dc, #d1e5b7);
}

.explora-cuerpo .explora-tamano {
    background: linear-gradient(145deg, #e2f4fb, #bde5f5);
}

/* Cabecera de tarjeta */

.explora-cuerpo .explora-card-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.explora-cuerpo .explora-icono {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.88);
    border-radius: 50%;
    box-shadow: 0 4px 0 rgba(60, 50, 30, 0.10);

    font-size: 31px;
}

.explora-cuerpo .explora-card h3 {
    margin: 0 0 5px;
    font-size: clamp(21px, 1.7vw, 28px);
    font-weight: 800;
    line-height: 1.2;
}

.explora-cuerpo .explora-huella h3 {
    color: #b75b1c;
}

.explora-cuerpo .explora-esqueleto h3 {
    color: #35613a;
}

.explora-cuerpo .explora-tamano h3 {
    color: #1678a9;
}

.explora-cuerpo .explora-card-intro {
    margin: 0;
    color: #303a30;
    font-size: 15px;
    line-height: 1.5;
}

/* Zona ilustrada */

.explora-cuerpo .explora-ilustracion {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 195px;
    margin: 8px 0 15px;
    padding: 8px;

    background: rgba(255, 255, 255, 0.38);
    border-radius: 20px;
    box-sizing: border-box;
}

.explora-cuerpo .explora-ilustracion img {
    display: block;
    width: 100%;
    max-width: 280px;
    max-height: 205px;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
}

/* Texto breve inferior */

.explora-cuerpo .explora-dato {
    margin: 0 0 17px;
    color: #303a30;
    font-size: 14px;
    line-height: 1.55;
}

/* Botones */

.explora-cuerpo .explora-boton {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 100%;
    min-height: 46px;
    margin-top: auto;
    padding: 12px 16px;

    border: 0;
    border-radius: 30px;

    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;

    cursor: pointer;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.explora-cuerpo .explora-boton:hover {
    filter: brightness(1.08);
    transform: scale(1.015);
}

.explora-cuerpo .explora-huella .explora-boton {
    background: #c96724;
}

.explora-cuerpo .explora-esqueleto .explora-boton {
    background: #326344;
}

.explora-cuerpo .explora-tamano .explora-boton {
    background: #167eaf;
}

/* Información desplegable */

.explora-cuerpo .explora-detalle {
    display: none;
    margin-top: 14px;
    padding: 15px;

    background: rgba(255, 255, 255, 0.78);
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 16px;

    color: #303a30;
    font-size: 14px;
    line-height: 1.6;
}

.explora-cuerpo .explora-detalle.abierto {
    display: block;
    animation: exploraEntrada 0.25s ease;
}

.explora-cuerpo .explora-detalle p {
    margin: 0 0 8px;
}

.explora-cuerpo .explora-detalle p:last-child {
    margin-bottom: 0;
}

@keyframes exploraEntrada {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Decoraciones de huellas */

.explora-cuerpo .explora-huella::after {
    content: "🐾";
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 25px;
    opacity: 0.28;
    pointer-events: none;
}

.explora-cuerpo .explora-esqueleto::after {
    content: "🌿";
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 23px;
    opacity: 0.65;
    pointer-events: none;
}

/* Accesibilidad: respetar preferencias de movimiento */

@media (prefers-reduced-motion: reduce) {

    .explora-cuerpo *,
    .explora-cuerpo *::before,
    .explora-cuerpo *::after {
        animation: none !important;
        transition: none !important;
    }
}
/* =====================================================
   VARIABLES
===================================================== */

:root{
    --verde:#39713d;
    --verde-claro:#8ab84a;
    --naranja:#f39b17;
    --rojo:#df6049;
    --morado:#7b62b4;
    --azul:#4e94b5;

    --texto:#28322b;
}


/* =====================================================
   CONTENEDOR GENERAL DE TARJETAS
===================================================== */

.animal-content{
    position:relative;

    width:100%;
    max-width:1150px;


    padding:45px 4% 70px;

    box-sizing:border-box;

    background-image:
        url("");

    background-size:cover;

    background-repeat:no-repeat;

    background-position:center 80%;
}


/* =====================================================
   DIETA Y SUPERPODER
===================================================== */

.animal-fun-facts{
    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:28px;

    margin:0 auto 30px;
}


/* =====================================================
   TARJETAS DIETA Y SUPERPODER
===================================================== */

.fun-card{
    position:relative;

    display:flex;

    align-items:center;

    gap:22px;

    padding:28px;

    overflow:hidden;

    border-radius:28px;

    border:3px solid rgba(255,255,255,.8);

    box-shadow:
        0 10px 0 rgba(0,0,0,.08),
        0 18px 35px rgba(0,0,0,.12);

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}


.fun-card:hover{
    transform:
        translateY(-8px)
        rotate(-1deg);

    box-shadow:
        0 15px 0 rgba(0,0,0,.08),
        0 25px 40px rgba(0,0,0,.16);
}


/* =====================================================
   DIETA
===================================================== */

.diet-card{
    background:
        radial-gradient(
            circle at top right,
            rgba(255,255,255,.7),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #ffe38a,
            #ffc95c
        );
}


/* =====================================================
   SUPERPODER
===================================================== */

.power-card{
    background:
        radial-gradient(
            circle at top left,
            rgba(255,255,255,.6),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #a9dcff,
            #6db6ef
        );
}


/* =====================================================
   ICONO PRINCIPAL
===================================================== */

.fun-icon{
    min-width:95px;

    width:95px;
    height:95px;

    display:flex;

    align-items:center;
    justify-content:center;

    font-size:48px;

    background:white;

    border-radius:50%;

    border:4px solid rgba(255,255,255,.8);

    box-shadow:
        0 7px 0 rgba(0,0,0,.08),
        inset 0 -5px 0 rgba(0,0,0,.05);

    transform:rotate(-6deg);

    z-index:2;
}


/* =====================================================
   CONTENIDO DIETA Y SUPERPODER
===================================================== */

.fun-content{
    position:relative;

    z-index:2;
}


.fun-label{
    display:inline-block;

    margin-bottom:5px;

    padding:6px 13px;

    border-radius:20px;

    background:rgba(255,255,255,.55);

    font-size:11px;

    font-weight:800;

    letter-spacing:1px;
}


.fun-content h2{
    margin:0 0 8px;

    font-size:30px;

    font-weight:800;

    color:#27332e;
}


.fun-content p{
    margin:0;

    font-size:16px;

    line-height:1.5;

    color:#3f4642;
}


/* =====================================================
   ALIMENTOS
===================================================== */

.food-items{
    display:flex;

    flex-wrap:wrap;

    gap:8px;

    margin-top:15px;
}


.food-item{
    width:42px;
    height:42px;

    display:flex;

    align-items:center;
    justify-content:center;

    font-size:23px;

    background:rgba(255,255,255,.7);

    border-radius:50%;

    box-shadow:
        0 4px 0 rgba(0,0,0,.08);

    transition:transform .25s ease;
}


.food-item:hover{
    transform:
        translateY(-5px)
        rotate(12deg)
        scale(1.15);
}


/* =====================================================
   BADGE SUPERPODER
===================================================== */

.power-badge{
    display:inline-flex;

    align-items:center;

    gap:8px;

    margin-top:15px;

    padding:10px 16px;

    background:#ffffff;

    border-radius:30px;

    font-weight:800;

    color:#41647b;

    box-shadow:
        0 5px 0 rgba(0,0,0,.08);
}


/* =====================================================
   DECORACIONES
===================================================== */

.fun-decoration{
    position:absolute;

    z-index:1;

    opacity:.5;

    pointer-events:none;
}


.decoration-leaf{
    right:20px;
    top:10px;

    font-size:55px;

    transform:rotate(25deg);
}


.decoration-fruit{
    right:35px;
    bottom:15px;

    font-size:40px;
}


.decoration-star{
    right:25px;
    top:15px;

    font-size:50px;

    animation:starFloat 2.5s ease-in-out infinite;
}


.decoration-lightning{
    right:30px;
    bottom:15px;

    font-size:45px;

    animation:lightningJump 2s ease-in-out infinite;
}


@keyframes starFloat{

    0%,
    100%{
        transform:
            translateY(0)
            rotate(0deg);
    }

    50%{
        transform:
            translateY(-10px)
            rotate(12deg);
    }

}


@keyframes lightningJump{

    0%,
    100%{
        transform:
            translateY(0)
            rotate(-10deg);
    }

    50%{
        transform:
            translateY(-8px)
            rotate(10deg);
    }

}


/* =====================================================
   GRID HÃBITAT + AMENAZAS
===================================================== */

.info-grid{
    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:28px;

    margin:0 auto 28px;
}


/* =====================================================
   TARJETAS GENERALES
===================================================== */

.kid-card{
    position:relative;

    overflow:hidden;

    padding:28px;

    box-sizing:border-box;

    border-radius:32px;

    border:3px solid rgba(255,255,255,.85);

    box-shadow:
        0 10px 0 rgba(0,0,0,.07),
        0 18px 35px rgba(0,0,0,.12);

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}


.kid-card:hover{
    transform:
        translateY(-7px)
        rotate(-1deg);
}


/* =====================================================
   DECORACIÃ“N GENERAL
===================================================== */

.kid-card::before,
.conservation-card::before{
    content:"";

    position:absolute;

    width:180px;
    height:180px;

    top:-90px;
    right:-60px;

    border-radius:50%;

    background:rgba(255,255,255,.22);

    pointer-events:none;
}


/* =====================================================
   TÃTULOS
===================================================== */

.card-title{
    position:relative;

    z-index:2;

    display:flex;

    align-items:center;

    gap:15px;

    margin-bottom:22px;
}


.card-title h2{
    margin:0;

    flex:1;

    padding:13px 24px;

    border-radius:28px;

    font-size:27px;

    font-weight:800;
}


.title-icon{
    min-width:70px;

    width:70px;
    height:70px;

    display:flex;

    align-items:center;
    justify-content:center;

    font-size:34px;

    background:rgba(255,255,255,.88);

    border-radius:50%;

    box-shadow:
        0 7px 0 rgba(0,0,0,.07),
        inset 0 -5px 0 rgba(0,0,0,.04);

    transform:rotate(-5deg);
}


/* =====================================================
   HÃBITAT
===================================================== */

.habitat-card{
    background:
        linear-gradient(
            135deg,
            #e4f1cf,
            #b9d69a
        );
}


.habitat-title h2{
    background:
        linear-gradient(
            135deg,
            #e4efbd,
            #91ae64
        );

    color:#29452e;
}


.habitat-content{
    position:relative;

    z-index:2;

    display:flex;

    align-items:center;

    gap:25px;
}


.habitat-image{
    flex:0 0 190px;

    background:rgba(255,255,255,.55);

    padding:10px;

    border-radius:25px;
}


.habitat-image img{
    width:100%;

    display:block;

    border-radius:18px;
}


.habitat-text{
    flex:1;
}


.habitat-text p{
    margin:0;

    font-size:19px;

    line-height:1.5;

    background:rgba(255,255,255,.45);

    padding:12px 16px;

    border-radius:18px;

    font-weight:600;
}


/* =====================================================
   BOTONES DE ECOSISTEMAS
===================================================== */

.region-buttons{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:20px;
}

.region-buttons button{
    border:2px solid rgba(255,255,255,.75);
    padding:12px 18px;
    border-radius:25px;
    background:linear-gradient(135deg,#1f594c,#367c62);
    color:#fff;
    font:inherit;
    font-size:14px;
    font-weight:800;
    cursor:pointer;
    transition:transform .2s ease, box-shadow .2s ease;
}

.region-buttons button:hover{
    transform:translateY(-2px);
    box-shadow:0 5px 0 rgba(0,0,0,.08);
}

.region-buttons button:focus-visible,
.habitat-modal button:focus-visible{
    outline:3px solid #f39b17;
    outline-offset:3px;
}

.habitat-modal[hidden]{display:none !important;}

.habitat-modal{
    position:fixed;
    inset:0;
    z-index:1000001;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
    box-sizing:border-box;
    background:rgba(24,45,35,.72);
}

.habitat-modal-content{
    position:relative;
    width:100%;
    max-width:520px;
    max-height:85vh;
    overflow-y:auto;
    padding:30px;
    box-sizing:border-box;
    text-align:center;
    background:linear-gradient(135deg,#e4f1cf,#fff);
    border:4px solid #fff;
    border-radius:28px;
    box-shadow:0 15px 40px rgba(0,0,0,.25);
    animation:habitatModalAppear .25s ease-out;
}

.habitat-modal-close{
    position:absolute;
    top:10px;
    right:12px;
    width:40px;
    height:40px;
    border:0;
    border-radius:50%;
    background:#fff;
    color:#28322b;
    font-size:28px;
    cursor:pointer;
}

.habitat-modal-icon{font-size:48px;margin-bottom:8px;}
.habitat-modal-content h2{margin:8px 32px 14px;color:#28523d;font-size:26px;line-height:1.25;}
.habitat-modal-content p{margin:0 0 14px;color:#28322b;font-size:16px;line-height:1.6;}
.habitat-modal-fact{margin:16px 0;padding:14px;background:#fff;border-radius:18px;color:#416047;line-height:1.5;font-weight:700;}
.habitat-modal-regions{padding:12px;background:rgba(255,255,255,.6);border-radius:16px;color:#29452e;font-size:14px;line-height:1.5;}
.habitat-modal-ok{margin-top:16px;padding:12px 22px;border:0;border-radius:25px;background:#39713d;color:#fff;font:inherit;font-weight:800;cursor:pointer;}
@keyframes habitatModalAppear{
    from{opacity:0;transform:translateY(12px) scale(.96);}
    to{opacity:1;transform:translateY(0) scale(1);}
}


/* =====================================================
   AMENAZAS
===================================================== */



/* Botones de ecosistemas y ventana emergente */
.region-buttons button{font-size:14px;font-weight:800;transition:transform .2s ease,box-shadow .2s ease;}
.region-buttons button:hover{transform:translateY(-2px);box-shadow:0 5px 0 rgba(0,0,0,.08);}
.region-buttons button:focus-visible,.habitat-modal button:focus-visible{outline:3px solid #f39b17;outline-offset:3px;}
.habitat-note{margin-top:12px!important;background:transparent!important;padding:0!important;font-size:12px!important;font-weight:500!important;line-height:1.4!important;color:#426349!important;}
.habitat-modal[hidden]{display:none!important;}
.habitat-modal{position:fixed;inset:0;z-index:1000001;display:flex;align-items:center;justify-content:center;padding:20px;box-sizing:border-box;background:rgba(24,45,35,.72);}
.habitat-modal-content{position:relative;width:100%;max-width:520px;max-height:85vh;overflow-y:auto;padding:30px;box-sizing:border-box;text-align:center;background:linear-gradient(135deg,#e4f1cf,#fff);border:4px solid #fff;border-radius:28px;box-shadow:0 15px 40px rgba(0,0,0,.25);animation:habitatModalAppear .25s ease-out;}
.habitat-modal-close{position:absolute;top:10px;right:12px;width:40px;height:40px;border:0;border-radius:50%;background:#fff;color:#28322b;font-size:28px;cursor:pointer;}
.habitat-modal-icon{font-size:48px;margin-bottom:8px;}
.habitat-modal-content h2{margin:8px 32px 14px;color:#28523d;font-size:26px;line-height:1.25;}
.habitat-modal-content p{margin:0 0 14px;color:#28322b;font-size:16px;line-height:1.6;}
.habitat-modal-fact{margin:16px 0;padding:14px;background:#fff;border-radius:18px;color:#416047;line-height:1.5;font-weight:700;}
.habitat-modal-regions{padding:12px;background:rgba(255,255,255,.6);border-radius:16px;color:#29452e;font-size:14px;line-height:1.5;}
.habitat-modal-ok{margin-top:16px;padding:12px 22px;border:0;border-radius:25px;background:#39713d;color:#fff;font:inherit;font-weight:800;cursor:pointer;}
@keyframes habitatModalAppear{from{opacity:0;transform:translateY(12px) scale(.96);}to{opacity:1;transform:translateY(0) scale(1);}}

.danger-card{
    background:
        linear-gradient(
            135deg,
            #ffe4d7,
            #f3ae94
        );
}


.danger-title h2{
    background:
        linear-gradient(
            135deg,
            #f8c8bb,
            #df7966
        );

    color:#59271f;
}


.danger-list{
    position:relative;

    z-index:2;

    display:grid;

    gap:10px;

    margin:0;

    padding:0;

    list-style:none;
}


.danger-list li{
    display:flex;

    align-items:center;

    gap:15px;

    padding:12px 15px;

    background:rgba(255,255,255,.40);

    border-radius:20px;
}


.danger-list span{
    min-width:55px;

    width:55px;
    height:55px;

    display:flex;

    align-items:center;
    justify-content:center;

    font-size:28px;

    background:rgba(255,255,255,.75);

    border-radius:50%;
}


.danger-list p{
    margin:0;

    font-size:17px;

    font-weight:600;
}


/* ==========================================
   ESTADO DE CONSERVACIÃ“N
   Mostrar Ãºnicamente la categorÃ­a del animal
========================================== */

.conservation-scale {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    max-width: 420px;
    margin: 25px auto;
}

/* Ocultar todas las categorÃ­as por defecto */

.conservation-scale .status {
    display: none;
    width: 100%;
    box-sizing: border-box;
}

/* Mostrar solo la categorÃ­a activa */

.conservation-scale .status.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: default;
    transform: none;
}

/* Evitar efectos de interacciÃ³n en la categorÃ­a informativa */

.conservation-scale .status.active:hover {
    transform: none;
}


/* =====================================================
   ESCALA DE CONSERVACIÃ“N
===================================================== */

.conservation-scale{
    display:grid;

    grid-template-columns:repeat(5, 1fr);

    gap:12px;

    margin-bottom:18px;
}


.status{

    position:relative;

    min-height:125px;

    padding:15px 10px;

    border:3px solid transparent;

    border-radius:22px;

    background:#ffffff;

    font-family:inherit;

    cursor:default;

    user-select:none;

    pointer-events:none;

    transition:none;
}
.status:hover{

    transform:none;

}



.status span{

    display:block;

    margin-bottom:10px;

    font-size:38px;

    line-height:1;
}


.status small{

    display:block;

    font-size:13px;

    font-weight:800;

    line-height:1.2;
    color:black;
}


.status.active{
    background:
        linear-gradient(
            135deg,
            #ffd85e,
            #f5a623
        );

    transform:
        translateY(-6px)
        scale(1.05);
}
/* =====================================================
   COLORES DE LOS ESTADOS
===================================================== */

.safe{

    background:#B0DE8A;
}



.almost-safe{

    background:#C0D17D;
}


.risk{

    background:#F0CE69;
}


.danger{

    background:#E08865;
}


.critical{

    background:#DE6F6F;
}

/* =====================================================
   ESTADO ACTIVO
===================================================== */

.status.active{

    border-color:#f39b17;

    transform:translateY(-6px);

    box-shadow:
        0 8px 0 rgba(90,65,30,.18);

    z-index:2;
}
.status.active::after{

    content:"";

    position:absolute;

    left:50%;

    bottom:-18px;

    width:0;

    height:0;

    transform:translateX(-50%);

    border-left:10px solid transparent;

    border-right:10px solid transparent;

    border-top:12px solid #f39b17;
}
.status.safe.active {
    border-color:#6FAE3A;
    background:#8EDB48;
}

.status.almost-safe.active {
    border-color:#89A82D;
    background:#A8C94A;
}

.status.risk.active {
    border-color:#CF9F17;
    background: #F7C125;
}

.status.danger.active {
    border-color:#CC5023;
    background:#ED6B3C ;
}

.status.critical.active {
    border-color:#D9534F;
    background:#D04444;
}
/* =====================================================
   BARRA DE CONSERVACIÃ“N
===================================================== */

.conservation-bar{

    display:grid;

    grid-template-columns:repeat(5, 1fr);

    gap:8px;

    margin-bottom:25px;
}


.conservation-bar > div{

    height:14px;

    border-radius:10px;
}

.bar-safe{

    background:#61b500;
}


.bar-almost{

    background:#a8d13c;
}


.bar-risk{

    background:#f5b400;
}


.bar-danger{

    background:#ed6b3c;
}


.bar-critical{

    background:#d04444;
}



/* =====================================================
   MENSAJE DEL ESTADO
===================================================== */

.status-message{

    padding:20px 25px;

    text-align:center;

    border-radius:20px;

    transition:
        background .3s ease,
        border-color .3s ease;

    border:3px solid transparent;
}


.status-message h3{

    margin:0 0 8px;

    font-size:23px;

    color:#28322b;
}


.status-message p{

    margin:0;

    font-size:16px;

    line-height:1.5;

    color:#28322b;
}

/* =====================================================
   CÃ“MO PUEDO AYUDAR
===================================================== */

.help-section{
    position:relative;

    overflow:hidden;

    margin:0 auto 30px;

    background:
        linear-gradient(
            135deg,
            #28523d,
            #183326
        );

    border-radius:30px;

    padding:30px;

    color:white;
}


.help-heading{
    display:flex;

    align-items:center;

    justify-content:center;

    gap:15px;

    margin-bottom:25px;
}


.help-heading h2{
    margin:0;

    font-size:32px;

    text-align:center;
}


.help-heading span{
    font-size:32px;
}


.help-grid{
    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:20px;
}


.help-card{
    position:relative;

    min-height:240px;

    padding:20px;

    display:flex;

    flex-direction:column;

    align-items:center;
    justify-content:center;

    text-align:center;

    overflow:hidden;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.18),
            rgba(255,255,255,.08)
        );

    border:3px solid rgba(255,255,255,.18);

    border-radius:25px;
}


/* =====================================================
   NÃšMERO
===================================================== */

.number{
    position:absolute;

    top:14px;
    left:14px;

    width:48px;
    height:48px;

    border-radius:50%;

    background:
        linear-gradient(
            135deg,
            #d4ff2f,
            #91cf00
        );

    color:#173221;

    display:flex;

    align-items:center;
    justify-content:center;

    font-weight:bold;
}


/* =====================================================
   IMAGEN DE AYUDA
===================================================== */

.help-image{
    width:100px;
    height:100px;

    display:flex;

    align-items:center;
    justify-content:center;

    padding:10px;

    margin-bottom:15px;

    background:rgba(255,255,255,.15);

    border-radius:50%;
}


.help-image img{
    max-width:100%;
    max-height:100%;

    object-fit:contain;
}


.help-card p{
    margin:0;

    padding:12px;

    border-radius:18px;

    background:rgba(0,0,0,.10);

    line-height:1.5;

    font-size:16px;

    font-weight:600;
}


/* =====================================================
   BOTONES FINALES
===================================================== */

.animal-actions{
    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:20px;
}


.action-button{
    display:flex;

    justify-content:center;
    align-items:center;

    gap:12px;

    min-height:75px;

    padding:15px 25px;

    border-radius:25px;

    text-decoration:none;

    font-size:18px;

    font-weight:bold;

    color:var(--texto);

    border:3px solid rgba(255,255,255,.85);
}


.videos{
    background:
        linear-gradient(
            135deg,
            #ffe487,
            #ffc75a
        );
}


.stories{
    background:
        linear-gradient(
            135deg,
            #bce3ff,
            #79bce9
        );
}


.action-icon{
    width:48px;
    height:48px;

    display:flex;

    align-items:center;
    justify-content:center;

    font-size:25px;

    background:rgba(255,255,255,.75);

    border-radius:50%;
}

/* ==========================================
   MODAL DEL SUPERPODER
========================================== */

.power-modal[hidden] {
    display: none !important;
}

.power-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(24, 45, 35, 0.72);
    box-sizing: border-box;
}

.power-modal-content {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 30px;
    box-sizing: border-box;
    text-align: center;
    background: linear-gradient(135deg, #e1f3ff, #ffffff);
    border: 4px solid #6c9d4c;
    border-radius: 28px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    animation: powerModalAppear 0.25s ease-out;
}

.power-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #ffffff;
    color: #28322b;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.power-modal-icon {
    margin-bottom: 12px;
    font-size: 55px;
}

.power-modal-content h2 {
    margin: 0 35px 15px;
    color: #28523d;
    font-size: 27px;
    line-height: 1.25;
}

.power-modal-content p {
    margin: 0 0 18px;
    color: #28322b;
    font-size: 17px;
    line-height: 1.6;
}

.power-modal-fact {
    margin: 18px 0;
    padding: 15px;
    background: #ffffff;
    border-radius: 18px;
    color: #41647b;
    font-weight: 700;
    line-height: 1.5;
}

.power-modal-ok {
    display: inline-block;
    margin-top: 8px;
    padding: 13px 22px;
    border: none;
    border-radius: 25px;
    background: #39713d;
    color: #ffffff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.power-modal-ok:hover {
    background: #28523d;
}

.power-badge {
    cursor: pointer;
    border: none;
    font: inherit;
}

.power-badge:focus-visible,
.power-modal button:focus-visible {
    outline: 3px solid #f39b17;
    outline-offset: 4px;
}

@keyframes powerModalAppear {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
/* ==========================================
   BOTÓN DE MI MENÚ FAVORITO
========================================== */

.menu-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    padding: 11px 17px;
    background: #fff;
    border: 2px solid rgba(255,255,255,.8);
    border-radius: 30px;
    color: #76531b;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 5px 0 rgba(0,0,0,.08);
    transition: transform .2s ease, box-shadow .2s ease;
}

.menu-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 0 rgba(0,0,0,.08);
}

.menu-badge:focus-visible,
.menu-modal button:focus-visible {
    outline: 3px solid #39713d;
    outline-offset: 4px;
}

/* ==========================================
   MODAL DEL MENÚ FAVORITO
========================================== */

.menu-modal[hidden] {
    display: none !important;
}

.menu-modal {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(45, 48, 25, .72);
}

.menu-modal-content {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 30px;
    box-sizing: border-box;
    text-align: center;
    background: linear-gradient(135deg, #fff0b8, #fffdf2);
    border: 4px solid #6c9d4c;
    border-radius: 28px;
    box-shadow: 0 15px 40px rgba(0,0,0,.25);
    animation: menuModalAppear .25s ease-out;
}

.menu-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #28322b;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.menu-modal-icon {
    margin-bottom: 12px;
    font-size: 55px;
}

.menu-modal-content h2 {
    margin: 10px 30px 15px;
    color: #76531b;
    font-size: 27px;
    line-height: 1.25;
}

.menu-modal-content p {
    margin: 0 0 18px;
    color: #3f4642;
    font-size: 16px;
    line-height: 1.6;
}

/* Alimentos dentro de la ventana */

.menu-modal-foods {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.menu-food-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    padding: 14px 8px;
    background: rgba(255,255,255,.85);
    border-radius: 18px;
    color: #4b4a32;
    font-size: 12px;
    line-height: 1.35;
}

.menu-food-item span {
    font-size: 32px;
}

/* Dato curioso */

.menu-modal-fact {
    margin: 18px 0;
    padding: 15px;
    background: #fff;
    border-radius: 18px;
    color: #5e652e;
    font-size: 14px;
    line-height: 1.6;
}

/* Botón de cierre */

.menu-modal-ok {
    display: inline-block;
    margin-top: 8px;
    padding: 13px 22px;
    border: none;
    border-radius: 25px;
    background: #39713d;
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.menu-modal-ok:hover {
    background: #28523d;
}

@keyframes menuModalAppear {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}



/* =====================================================
   ORGANIZACIÃ“N RESPONSIVE - TAMÃKA KIDS
===================================================== */

/* El contenido debe aprovechar el ancho disponible */
.animal-content {
    width: 100%;
    max-width: 1150px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* AlimentaciÃ³n y superpoder: dos columnas cuando estÃ¡n
   dentro del mismo .animal-fun-facts */
.animal-fun-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
}

.animal-fun-facts > .fun-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 100%;
    box-sizing: border-box;
}

/* Si el superpoder sigue en su propio bloque, no lo estires
   ni lo comprimas: ocupa el ancho de su contenedor. Para que
   quede junto a alimentaciÃ³n, ambas tarjetas deben compartir
   el mismo .animal-fun-facts en el HTML. */
.animal-fun-facts.power-only {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    margin: 0 0 28px;
}

.animal-fun-facts.power-only .power-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* HÃ¡bitat/conservaciÃ³n y amenazas/ayuda: dos columnas si
   las tarjetas estÃ¡n agrupadas en el mismo .info-grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
}

.info-grid > * {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.habitat-only-grid,
.threats-only-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    margin: 0 0 28px;
    box-sizing: border-box;
}

.habitat-only-grid .habitat-card,
.threats-only-grid .danger-card,
.conservation-card,
.help-section {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* Estado de conservaciÃ³n: mostrar solo el estado activo */
.conservation-scale {
    display: flex !important;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    margin: 20px 0;
}

.conservation-scale .status {
    display: none !important;
}

.conservation-scale .status.active {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 320px;
    min-height: 130px;
    padding: 20px;
    box-sizing: border-box;
    cursor: default;
}

.conservation-card .conservation-bar {
    display: none !important;
}

.conservation-card .status-message {
    margin-top: 15px;
}

/* MÃ³viles: una columna y contenido legible */
@media screen and (max-width: 760px) {
    .animal-fun-facts,
    .info-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .animal-fun-facts.power-only,
    .habitat-only-grid,
    .threats-only-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .conservation-scale .status.active {
        max-width: 100%;
    }

    .animal-fun-facts.power-only .fun-card {
        flex-direction: row;
        align-items: center;
    }
}

/* Tablets verticales: conservar dos columnas desde 761px */
@media screen
and (min-width: 761px)
and (max-width: 1200px)
and (orientation: portrait) {
    .animal-fun-facts,
    .info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ===== DISTRIBUCIÓN EN DOS COLUMNAS ===== */

.animal-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 24px;
}

.animal-content > .content-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch;
    gap: 24px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
}

.animal-content > .content-row > section,
.animal-content > .content-row > article,
.animal-content > .content-row > .info-grid {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    box-sizing: border-box;
}

.animal-content .info-grid.habitat-only-grid,
.animal-content .info-grid.threats-only-grid {
    grid-template-columns: minmax(0, 1fr);
}

.animal-content .fun-card,
.animal-content .kid-card,
.animal-content .help-section {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
}

.animal-content .fun-content,
.animal-content .habitat-content,
.animal-content .habitat-text,
.animal-content .card-title {
    min-width: 0;
    max-width: 100%;
}

.animal-content img {
    max-width: 100%;
    height: auto;
}

/* Móvil: una columna para conservar la legibilidad */
@media screen and (max-width: 760px) {
    .animal-content > .content-row {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .power-modal-content {
        animation: none;
    }
}

/* ==========================================
   TAMÁKA KIDS — BOTONES DE HABILIDAD Y MENÚ
========================================== */

.animal-content .power-badge,
.animal-content .menu-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;

    width: auto !important;
    min-height: 0 !important;
    margin-top: 15px !important;
    padding: 11px 18px !important;

    background: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.85) !important;
    border-radius: 30px !important;

    color: #28322b !important;
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: none !important;

    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.08) !important;
    cursor: pointer !important;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease !important;
}

.animal-content .power-badge:hover,
.animal-content .menu-badge:hover {
    background: #ffffff !important;
    color: #28322b !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.08) !important;
}

.animal-content .power-badge:focus-visible,
.animal-content .menu-badge:focus-visible {
    outline: 3px solid #39713d;
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .animal-content .power-badge,
    .animal-content .menu-badge {
        transition: none !important;
    }
}
/* =====================================================
   TAMA FOOTER
===================================================== */

.tama-footer{

    position:relative;

    width:100%;
    max-width:1150px;

    min-height:190px;

    margin:30px auto 0;

    padding:30px 35px 25px 270px;

    box-sizing:border-box;

    display:flex;

    align-items:center;

    justify-content:flex-start;

    gap:25px;

    background:
        linear-gradient(
            180deg,
            rgba(255,248,225,.88),
            rgba(244,218,169,.92)
        );

    border-radius:30px 30px 0 0;

    border:3px solid rgba(255,255,255,.9);

    box-shadow:
        0 -5px 0 rgba(95,65,35,.10);

    overflow:visible;

    z-index:5;
}


/* =====================================================
   TAMA
===================================================== */

.tama-character{

    position:absolute;

    left:15px;

    bottom:0;

    width:235px;

    z-index:4;

    pointer-events:none;
}


.tama-character img{

    display:block;

    width:100%;

    height:auto;

    max-width:100%;
    margin-bottom: -3px;
}


/* =====================================================
   BURBUJA
===================================================== */

.tama-dialogue{

    position:relative;

    flex-shrink:0;

    width:300px;

    min-height:75px;

    padding:16px 25px;

    box-sizing:border-box;

    display:flex;

    align-items:center;

    justify-content:center;

    background:#fff9eb;

    border:3px solid black;

    border-radius:28px;

    box-shadow:
        0 6px 0 rgba(74,40,25,.15);

    z-index:6;
}


.tama-dialogue p{

    margin:0;

    color:#28322b;

    font-size:20px;

    font-weight:700;

    line-height:1.35;

    text-align:center;
}


/* =====================================================
   PUNTA DE LA BURBUJA
   APUNTA HACIA TAMA
===================================================== */

.tama-dialogue::after{

    content:"";

    position:absolute;

    left:-17px;

    top:50%;

    width:28px;

    height:28px;

    background:#fff9eb;

    border-left:3px solid black;

    border-bottom:3px solid black;

    transform:
        translateY(-50%)
        rotate(45deg);

    z-index:-1;
}


/* =====================================================
   CONTENEDOR DE BOTONES
===================================================== */

.tama-actions{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:15px;

    flex:1;

    min-width:0;
}


/* =====================================================
   BOTÓN GENERAL
===================================================== */

.tama-button{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:12px;

    min-width:175px;

    padding:13px 18px;

    box-sizing:border-box;

    text-decoration:none;

    color:#28322b;

    font-size:16px;

    font-weight:800;

    line-height:1.25;

    background:#fff8e8;

    border:3px solid white;

    border-radius:28px;

    box-shadow:
        0 5px 0 rgba(80,55,25,.16);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}


/* =====================================================
   HOVER
===================================================== */

.tama-button:hover{

    transform:translateY(-5px);

    box-shadow:
        0 9px 0 rgba(80,55,25,.14);
}


/* =====================================================
   BOTÓN VIDEOS
===================================================== */

.tama-video{

    background:
        linear-gradient(
            135deg,
            #FFE58B,
            #FFD064
        );
}


/* =====================================================
   BOTÓN HISTORIAS
===================================================== */

.tama-story{

    background:
        linear-gradient(
            135deg,
            #B9E2FA,
            #8CC9EF
        );
}


/* =====================================================
   ICONOS
===================================================== */

.tama-button-icon{

    display:flex;

    align-items:center;

    justify-content:center;

    width:42px;
    height:42px;

    flex-shrink:0;

    background:#fff;

    border-radius:50%;

    font-size:22px;

    box-shadow:
        0 3px 0 rgba(80,55,25,.10);
}
/* Evitar que el contenido interno ensanche el componente */
.tamaka-habitat,
.tamaka-habitat *,
.th-modal,
.th-modal * {
  box-sizing: border-box;
}

.tamaka-habitat .th-explorer {
  width: 100%;
  min-width: 0;
}

.tamaka-habitat .th-map-area,
.tamaka-habitat .th-ecosystem-area {
  min-width: 0;
  max-width: 100%;
}

/* Los botones deben respetar el ancho de su columna */
.tamaka-habitat .th-ecosystem-list {
  width: 100%;
  min-width: 0;
}

.tamaka-habitat .th-ecosystem-button,
.tamaka-habitat .th-region-button {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  
}

/* Mapa y pines */
.tamaka-habitat .th-map-canvas {
  width: 100%;
  max-width: 340px;
}

.tamaka-habitat .th-map-canvas .th-colombia-map {
  width: 100%;
  height: auto;
}

/* =====================================================
   CELULARES VERTICAL
   HASTA 599px
===================================================== */

@media screen
and (max-width:599px)
and (orientation:portrait){

    

    .animal-character{
        width:290px;

        right:50%;

        bottom:0;

        transform:translateX(50%);
    }
.explora-cuerpo {
        padding: 28px 16px 35px;
    }

    .explora-cuerpo .explora-header {
        margin-bottom: 22px;
    }

    .explora-cuerpo .explora-titulo {
        padding: 10px 16px;
        font-size: 28px;
        border-radius: 20px;
    }

    .explora-cuerpo .explora-descripcion {
        font-size: 15px;
        line-height: 1.55;
    }

    .explora-cuerpo .explora-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .explora-cuerpo .explora-card {
        padding: 18px;
        border-radius: 23px;
    }

    .explora-cuerpo .explora-card h3 {
        font-size: 24px;
    }

    .explora-cuerpo .explora-ilustracion {
        min-height: 175px;
    }

    .explora-cuerpo .explora-ilustracion img {
        max-height: 190px;
    }

    .explora-cuerpo .explora-boton {
        min-height: 48px;
    }
    .animal-content{
        padding:25px 15px 50px;
    }

    .animal-fun-facts{
        grid-template-columns:1fr;

        gap:20px;
    }

    .fun-card{
        gap:15px;

        padding:18px;

        border-radius:24px;
    }

    .fun-icon{
        min-width:65px;

        width:65px;
        height:65px;

        font-size:32px;
    }

    .fun-content h2{
        font-size:22px;
    }

    .fun-content p{
        font-size:13px;
    }

    .food-item{
        width:34px;
        height:34px;

        font-size:18px;
    }

    .info-grid{
        grid-template-columns:1fr;

        gap:20px;
    }

    .kid-card{
        padding:18px;
    }

    .card-title{
        gap:10px;
    }

    .card-title h2{
        padding:10px 15px;

        font-size:19px;
    }

    .title-icon{
        min-width:45px;

        width:45px;
        height:45px;

        font-size:22px;
    }

    .habitat-content{
        flex-direction:column;

        align-items:flex-start;
    }

    .habitat-image{
        flex:none;

        width:100%;

        box-sizing:border-box;
    }

    .habitat-text p,
    .danger-list p{
        font-size:16px;
    }

    .danger-list li{
        padding:10px;

        gap:10px;
    }

    .danger-list span{
        min-width:45px;

        width:45px;
        height:45px;

        font-size:24px;
    }

    .conservation-scale{
        grid-template-columns:1fr;

        gap:10px;
    }

    .help-section{
        padding:20px;
    }

    .help-heading h2{
        font-size:24px;
    }

    .help-grid{
        grid-template-columns:1fr;
    }

    .help-card{
        min-height:200px;
    }

    .animal-actions{
        grid-template-columns:1fr;
    }
.power-modal-content {
        padding: 25px 20px;
    }

    .power-modal-content h2 {
        font-size: 23px;
    }

    .power-modal-content p {
        font-size: 15px;
    }
     .menu-modal-content {
        padding: 25px 18px;
    }
    .habitat-modal-content{padding:25px 18px;}
    .habitat-modal-content h2{font-size:22px;}
    .habitat-modal-content p{font-size:15px;}


    .menu-modal-content h2 {
        font-size: 23px;
    }

    .menu-modal-content p {
        font-size: 15px;
    }

    .menu-modal-foods {
        gap: 7px;
    }

    .menu-food-item {
        padding: 12px 5px;
        font-size: 11px;
    }

    .menu-food-item span {
        font-size: 27px;
    }
    .tama-footer{

        min-height:390px;

        margin-top:25px;

        padding:
            25px
            18px
            25px;

        flex-direction:column;

        align-items:center;

        justify-content:flex-end;

        gap:15px;

        border-radius:28px 28px 0 0;
    }


    /* Tama arriba */

    .tama-character{

        left:50%;

        bottom:auto;

        top:58px;

        width:155px;

        transform:translateX(-50%);
    }


    /* Burbuja debajo de Tama */

    .tama-dialogue{

        width:85%;

        max-width:300px;

        margin-top:-10px;

        min-height:65px;

        padding:12px 18px;

        border-radius:24px;
    }


    .tama-dialogue p{

        font-size:16px;
    }


    /* Punta hacia abajo */

    .tama-dialogue::after{

        left:50%;

        top:auto;

        bottom:-15px;

        transform:
            translateX(-50%)
            rotate(-45deg);
    }


    /* Botones */

    .tama-actions{

        width:100%;

        flex-direction:row;

        gap:12px;
        margin-top:150px;
    }


    .tama-button{

        width:90%;

        min-width:0;

        padding:12px 20px;

        font-size:16px;
    }


    .tama-button-icon{

        width:35px;

        height:35px;

        font-size:18px;
    }
 .tamaka-habitat .th-explorer {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 12px;
  }

  .th-map-canvas {
    max-width: min(100%, 300px);
  }

  .th-map-canvas .th-colombia-map {
    max-height: 350px;
  }

  .th-map-pin {
    min-width: 43px;
    padding: 4px 5px;
    border-radius: 9px;
  }

  .th-map-pin span { font-size: 15px; }
  .th-map-pin small { font-size: 8px; }

  .th-region-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .th-region-button,
  .th-ecosystem-button {
    min-height: 43px;
    padding: 9px 7px;
    font-size: 12px;
    gap: 5px;
    border-radius: 11px;
  }

  .th-ecosystem-area h3 { font-size: 20px; }

  .th-ecosystem-intro,
  .th-ecosystem-note {
    font-size: 13px;
    line-height: 1.5;
  }

  .th-ecosystem-list {
    gap: 8px;
    margin: 12px 0;
  }

  .th-modal { padding: 8px; }

  .th-modal-card {
    width: 100%;
    max-height: 92dvh;
    padding: 22px 16px;
    border-radius: 19px;
  }

  .th-modal-close {
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    font-size: 25px;
  }

  .th-modal-card h2 {
    margin: 0 22px 12px;
    font-size: 23px;
  }

  .th-modal-card > p {
    font-size: 14px;
    line-height: 1.6;
  }

  .th-modal-fact {
    margin: 14px 0;
    padding: 13px;
  }

  .th-modal-illustration {
    width: 145px !important;
    height: 145px !important;
    min-height: 145px !important;
    margin: 4px auto 12px;
  }

  .th-modal-ok {
    padding: 12px 14px;
  }
   .tamaka-habitat .th-explorer {
    gap: 20px;
    padding-top: 12px;
  }

  .tamaka-habitat .th-map-canvas {
    max-width: 300px;
  }

  .tamaka-habitat .th-map-pin {
    min-width: 0;
    max-width: 82px;
    padding: 4px 6px;
    border-radius: 10px;
  }

  .tamaka-habitat .th-map-pin span {
    font-size: 16px;
  }

  .tamaka-habitat .th-map-pin small {
    font-size: 9px;
    white-space: normal;
    text-align: center;
  }

  .tamaka-habitat .th-ecosystem-area h3 {
    font-size: 21px;
  }

  .tamaka-habitat .th-ecosystem-intro {
    font-size: 14px;
    line-height: 1.6;
  }

  .tamaka-habitat .th-ecosystem-button {
    width: 100%;
    justify-content: flex-start;
    min-height: 46px;
    padding: 11px 12px;
    font-size: 14px;
  }

  .tamaka-habitat .th-region-button {
    padding: 9px 7px;
    font-size: 13px;
  }

  .th-modal {
    padding: 12px;
  }

  .th-modal-card {
    width: 100%;
    max-height: 90dvh;
    padding: 24px 18px;
    border-radius: 22px;
  }}


/* =====================================================
   CELULARES HORIZONTAL
   HASTA 899px
===================================================== */

@media screen
and (max-width:899px)
and (orientation:landscape){


   
      .explora-cuerpo {
        padding: 24px 4%;
    }

    .explora-cuerpo .explora-header {
        margin-bottom: 20px;
    }

    .explora-cuerpo .explora-titulo {
        padding: 9px 18px;
        font-size: clamp(25px, 4vw, 32px);
    }

    .explora-cuerpo .explora-descripcion {
        font-size: 15px;
    }

    .explora-cuerpo .explora-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .explora-cuerpo .explora-tamano {
        grid-column: 1 / -1;
    }

    .explora-cuerpo .explora-card {
        padding: 17px;
        border-radius: 22px;
    }

    .explora-cuerpo .explora-card h3 {
        font-size: 22px;
    }

    .explora-cuerpo .explora-icono {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
        font-size: 26px;
    }

    .explora-cuerpo .explora-ilustracion {
        min-height: 135px;
    }

    .explora-cuerpo .explora-ilustracion img {
        max-height: 150px;
    }
    .animal-content{
        padding:30px 3% 45px;
    }

    .animal-fun-facts{
        gap:18px;
    }

    .fun-card{
        padding:18px;

        gap:14px;
    }

    .fun-icon{
        min-width:60px;

        width:60px;
        height:60px;

        font-size:30px;
    }

    .fun-content h2{
        font-size:21px;
    }

    .fun-content p{
        font-size:13px;
    }

    .food-item{
        width:32px;
        height:32px;

        font-size:17px;
    }

    .info-grid{
        gap:18px;
    }

    .kid-card{
        padding:20px;
    }

    .card-title h2{
        font-size:21px;
    }

    .title-icon{
        min-width:50px;

        width:50px;
        height:50px;

        font-size:25px;
    }

    .habitat-image{
        flex-basis:130px;
    }

    .conservation-scale{
        grid-template-columns:repeat(5,1fr);

        gap:8px;
    }

    .status{
        padding:10px 5px;
    }

    .status span{
        font-size:22px;
    }

    .status small{
        font-size:10px;
    }

    .help-section{
        padding:20px;
    }

    .help-card{
        min-height:180px;

        padding:15px;
    }

    .help-image{
        width:70px;
        height:70px;
    }
    .tama-footer{

        min-height:190px;

        padding:
            25px
            20px
            25px
            205px;

        gap:12px;
    }


    .tama-character{

        left:8px;

        width:180px;
    }


    .tama-dialogue{

        width:230px;

        min-height:65px;

        padding:12px 16px;
    }


    .tama-dialogue p{

        font-size:15px;
    }
    .tama-dialogue::after{

    content:"";

    position:absolute;

    left:-12px;

    top:50%;

    width:28px;

    height:28px;

    background:#fff9eb;

    border-left:3px solid black;

    border-bottom:3px solid black;

    transform:
        translateY(-50%)
        rotate(45deg);

    z-index:-1;
}


    .tama-button{

        min-width:140px;

        padding:10px 12px;

        font-size:14px;
    }


    .tama-button-icon{

        width:32px;

        height:32px;

        font-size:17px;
    }
.tamaka-habitat .th-explorer {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    padding-top: 12px;
  }

  .th-map-canvas { max-width: 230px; }

  .th-map-canvas .th-colombia-map {
    max-height: 270px;
  }

  .th-map-pin {
    min-width: 39px;
    padding: 3px 4px;
    border-radius: 8px;
  }

  .th-map-pin span { font-size: 14px; }
  .th-map-pin small { font-size: 7px; }

  .th-region-list { gap: 6px; }

  .th-region-button,
  .th-ecosystem-button {
    min-height: 38px;
    padding: 7px 6px;
    font-size: 11px;
    gap: 4px;
    border-radius: 10px;
  }

  .th-ecosystem-area h3 { font-size: 18px; }

  .th-ecosystem-intro {
    font-size: 12px;
    line-height: 1.45;
  }

  .th-ecosystem-list {
    gap: 7px;
    margin: 10px 0;
  }

  .th-modal { padding: 8px; }

  .th-modal-card {
    width: min(100%, 470px);
    max-height: 94vh;
    padding: 18px 16px;
    border-radius: 18px;
  }

  .th-modal-card h2 { font-size: 22px; }

  .th-modal-card > p {
    font-size: 13px;
    line-height: 1.5;
  }

  .th-modal-illustration {
    width: 125px !important;
    height: 125px !important;
    min-height: 125px !important;
    margin-bottom: 10px;
  }
}


/* =====================================================
   TABLETAS VERTICAL
   600px - 1200px
===================================================== */

@media screen
and (min-width:600px)
and (max-width:1200px)
and (orientation:portrait){
  
    .explora-cuerpo {
        padding: 35px 4%;
    }

    .explora-cuerpo .explora-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .explora-cuerpo .explora-tamano {
        grid-column: 1 / -1;
    }

    .explora-cuerpo .explora-tamano .explora-ilustracion img {
        max-width: 380px;
    }

    .explora-cuerpo .explora-card {
        padding: 20px;
    }

    .explora-cuerpo .explora-ilustracion {
        min-height: 170px;
    }
    
    .animal-content{
        padding:40px 4% 60px;
    }

    .fun-card{
        padding:22px;

        gap:16px;
    }

    .fun-icon{
        min-width:75px;
        width:75px;
        height:75px;
        font-size:38px;
        margin-left:-15px;
    }

    .fun-content h2{
        font-size:23px;
        margin-left:-10px;
    }
    .fun-content p{
        margin-left:-10px;
    }
.fun-label{
    width:200px !important;
    margin-left:-60px;
}
    .info-grid{
        grid-template-columns:1fr;
    }

    .habitat-content{
        flex-direction:row;
    }

    .conservation-scale{
        grid-template-columns:repeat(3,1fr);
    }

    .help-grid{
        grid-template-columns:repeat(3,1fr);

        gap:15px;
    }

    .help-card{
        min-height:210px;
    }
    .number{
        margin-left:-9px;
        margin-top:-10px;
    }
    .tama-footer{

        min-height:230px;

        padding:
            30px
            30px
            30px
            245px;

        gap:18px;
    }


    .tama-character{

        left:10px;

        width:205px;
    }


    .tama-dialogue{

        width:260px;

        min-height:75px;
        margin-top:-80px;
       margin-left:-20px;
    }


    .tama-dialogue p{

        font-size:17px;
    }


    /* Botones */

    .tama-actions{

        width:100%;

        flex-direction:row;
        margin-left:-280px;

        gap:12px;
        margin-top:150px;
    }


    .tama-button{

        width:90%;

        min-width:0;

        padding:12px 20px;

        font-size:16px;
    }


    .tama-button-icon{

        width:35px;

        height:35px;

        font-size:18px;
    }
.tamaka-habitat .th-explorer {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .th-map-canvas { max-width: 350px; }

  .th-map-canvas .th-colombia-map {
    max-height: 430px;
  }

  .th-map-pin {
    min-width: 51px;
    padding: 5px 6px;
    border-radius: 11px;
  }

  .th-map-pin span { font-size: 18px; }
  .th-map-pin small { font-size: 9px; }

  .th-region-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .th-region-button,
  .th-ecosystem-button {
    min-height: 46px;
    padding: 10px 12px;
    font-size: 14px;
  }

  .th-ecosystem-area h3 { font-size: 23px; }

  .th-modal { padding: 16px; }

  .th-modal-card {
    width: min(100%, 520px);
    max-height: 90vh;
    padding: 26px 24px;
  }

  .th-modal-illustration {
    width: 170px !important;
    height: 170px !important;
    min-height: 170px !important;
  }
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .tamaka-habitat .th-map-area,
  .tamaka-habitat .th-ecosystem-area {
    width: 100%;
  }

  .tamaka-habitat .th-map-canvas {
    max-width: 360px;
    margin-right: auto;
    margin-left: auto;
  }

  .tamaka-habitat .th-colombia-map {
    max-width: 100%;
  }

  .tamaka-habitat .th-region-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tamaka-habitat .th-ecosystem-area h3 {
    font-size: 22px;
  }
}


/* =====================================================
   TABLETAS HORIZONTAL
   900px - 1200px
===================================================== */

@media screen
and (min-width:900px)
and (max-width:1200px)
and (orientation:landscape){
 

    .explora-cuerpo {
        padding: 32px 3%;
    }

    .explora-cuerpo .explora-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .explora-cuerpo .explora-card {
        padding: 17px;
        border-radius: 23px;
    }

    .explora-cuerpo .explora-card-heading {
        gap: 10px;
    }

    .explora-cuerpo .explora-icono {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
        font-size: 26px;
    }

    .explora-cuerpo .explora-card h3 {
        font-size: 21px;
    }

    .explora-cuerpo .explora-card-intro {
        font-size: 14px;
    }

    .explora-cuerpo .explora-ilustracion {
        min-height: 150px;
    }

    .explora-cuerpo .explora-ilustracion img {
        max-height: 165px;
    }
      .animal-content{
        padding:35px 3% 55px;
    }

    .fun-card{
        padding:22px;

        gap:15px;
    }

    .fun-icon{
        min-width:75px;

        width:75px;
        height:75px;

        font-size:38px;
    }

    .fun-content h2{
        font-size:25px;
    }

    .fun-content p{
        font-size:14px;
    }

    .habitat-content{
        flex-direction:column;

        align-items:flex-start;
    }

    .habitat-image{
        flex:none;

        width:60%;
    }

    .help-grid{
        gap:15px;
    }
    .tama-footer{

        min-height:195px;

        padding:
            30px
            25px
            25px
            235px;

        gap:15px;
    }


    .tama-character{

        left:10px;

        width:200px;
    }


    .tama-dialogue{

        width:245px;

        min-height:70px;

        padding:13px 17px;
    }


    .tama-dialogue p{

        font-size:16px;
    }


    .tama-actions{

        gap:10px;
    }


    .tama-button{

        min-width:145px;

        padding:11px 13px;

        font-size:14px;
    }


    .tama-button-icon{

        width:34px;

        height:34px;

        font-size:18px;
    }
.tamaka-habitat .th-explorer {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
  }

  .th-map-canvas { max-width: 290px; }

  .th-map-canvas .th-colombia-map {
    max-height: 350px;
  }

  .th-map-pin {
    min-width: 45px;
    padding: 4px 5px;
    border-width: 2px;
    border-radius: 9px;
  }

  .th-map-pin span { font-size: 16px; }
  .th-map-pin small { font-size: 8px; }

  .th-region-list { gap: 7px; }

  .th-region-button,
  .th-ecosystem-button {
    min-height: 42px;
    padding: 9px 8px;
    font-size: 12px;
    gap: 5px;
  }

  .th-ecosystem-area h3 { font-size: 21px; }

  .th-modal { padding: 14px; }

  .th-modal-card {
    width: min(100%, 470px);
    max-height: 86vh;
    padding: 24px 20px;
  }

  .th-modal-illustration {
    width: 155px !important;
    height: 155px !important;
    min-height: 155px !important;
  }
}


/* =====================================================
   PORTÁTILES
   1280px - 1599px
===================================================== */

@media screen
and (min-width:1280px)
and (max-width:1599px)
and (orientation:landscape){
  .animal-title{

        font-size:60px;
    }
     .animal-hero{
        min-height:500px;

        background-position:center bottom !important;
    }

    .animal-character{
        width:550px;

        right:9%;

        bottom:0;
    }

    .animal-dialogue{
    position:absolute;
    top:80px;
    left:20% !important;

    width:370px !important;

    padding:30px;

    box-sizing:border-box;

    background:var(--crema);

    border:3px solid black;

    border-radius:45px;

    box-shadow:
        0 8px 0 rgba(90,65,30,.15);

    z-index:3;
}

 
    .animal-dialogue p{
        font-size:22px;
    }
     .explora-cuerpo {
        padding: 45px 5% 50px;
    }

    .explora-cuerpo .explora-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px;
    }

    .explora-cuerpo .explora-card {
        padding: 22px;
    }

    .explora-cuerpo .explora-ilustracion {
        min-height: 195px;
    }

    .explora-cuerpo .explora-ilustracion img {
        max-width: 280px;
        max-height: 205px;
    }
    .animal-content{
        padding:42px 4% 65px;
    }

    .fun-card{
        padding:26px;
    }
    .tama-footer{

        min-height:190px;

        padding-left:270px;

        gap:20px;
    }


    .tama-character{

        width:220px;

        left:15px;
    }


    .tama-dialogue{

        width:285px;
    }


    .tama-actions{

        gap:12px;
    }


    .tama-button{

        min-width:165px;

        font-size:15px;
    }
.tamaka-habitat .th-explorer {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
  }

  .th-map-canvas { max-width: 370px; }

  .th-map-canvas .th-colombia-map {
    max-height: 450px;
  }

  .th-map-pin {
    min-width: 58px;
    padding: 6px 8px;
  }

  .th-map-pin span { font-size: 20px; }

  .th-modal-card {
    width: min(100%, 540px);
    padding: 28px;
  }

  .th-modal-illustration {
    width: 175px !important;
    height: 175px !important;
    min-height: 175px !important;
  }
}


/* =====================================================
   COMPUTADOR DE ESCRITORIO
   DESDE 1600px
===================================================== */

@media screen
and (min-width:1600px){
  .animal-title{

        font-size:65px;
    }
    .animal-hero{
        min-height:520px;

        background-position:center bottom !important;
    }

    .animal-character{
        width:580px;

        right:10%;

        bottom:0;
    }

    .animal-dialogue{
        width:370px;

        top:80px;
        left:35%!important;

      
    }
    .explora-cuerpo {
        padding: 55px 5% 60px;
    }

    .explora-cuerpo .explora-inner {
        max-width: 1650px;
    }

    .explora-cuerpo .explora-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 28px;
    }

    .explora-cuerpo .explora-card {
        padding: 28px;
    }

    .explora-cuerpo .explora-card h3 {
        font-size: 29px;
    }

    .explora-cuerpo .explora-card-intro {
        font-size: 17px;
    }

    .explora-cuerpo .explora-ilustracion {
        min-height: 225px;
    }

    .explora-cuerpo .explora-ilustracion img {
        max-width: 330px;
        max-height: 235px;
    }

    .explora-cuerpo .explora-dato {
        font-size: 16px;
    }

    .explora-cuerpo .explora-boton {
        min-height: 52px;
        font-size: 16px;
    }
    
    .animal-content{
        padding:45px 4% 70px;
    }

    .tama-footer{

        min-height:200px;

        padding-left:285px;

        gap:25px;
    }


    .tama-character{

        width:235px;

        left:15px;
    }


    .tama-dialogue{

        width:300px;

        min-height:78px;
    }


    .tama-dialogue p{

        font-size:20px;
    }


    .tama-button{

        min-width:175px;

        font-size:16px;
    }
    .tamaka-habitat .th-explorer {
    gap: 36px;
    padding-top: 24px;
  }

  .th-map-canvas {
    max-width: 430px;
  }

  .th-map-canvas .th-colombia-map {
    max-height: 520px;
  }

  .th-map-pin {
    min-width: 64px;
    padding: 7px 9px;
    border-radius: 15px;
  }

  .th-map-pin span { font-size: 22px; }
  .th-map-pin small { font-size: 11px; }

  .th-ecosystem-area h3 { font-size: 27px; }

  .th-ecosystem-intro,
  .th-ecosystem-note {
    font-size: 16px;
  }

  .th-region-button,
  .th-ecosystem-button {
    min-height: 50px;
    font-size: 16px;
    padding: 12px 14px;
  }

  .th-modal-card {
    width: min(100%, 600px);
    max-height: 88vh;
    padding: 32px;
  }

  .th-modal-illustration {
    width: 190px !important;
    height: 190px !important;
    min-height: 190px !important;
  }

}
/* =====================================================
   ACCESIBILIDAD: REDUCIR ANIMACIONES
===================================================== */

@media (prefers-reduced-motion: reduce) {
  .th-region-button,
  .th-ecosystem-button,
  .th-map-pin {
    transition: none;
  }

  .th-modal-card {
    animation: none;
  }
}



/* =====================================================
   TAMÁKA KIDS — EXPLORADOR DE HÁBITATS
===================================================== */

.tamaka-habitat {
  --th-green: #287747;
  --th-green-dark: #1c5b36;
  --th-green-soft: #e8f5e9;
  --th-cream: #fffdf4;
  --th-text: #294537;
  --th-muted: #64766b;
  overflow: hidden;
}

.tamaka-habitat .th-explorer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0 4px;
  width: 100%;
  min-width: 0;
}

.th-map-area,
.th-ecosystem-area {
  min-width: 0;
}

.th-colombia-map {
  display: block;
  width: 100%;
  max-width: 340px;
  max-height: 370px;
  object-fit: contain;
  margin: 0 auto 12px;
}

.th-map-help {
  text-align: center;
  color: var(--th-muted);
  font-size: 14px;
  margin: 8px 0 14px;
}

.th-region-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.th-region-button,
.th-ecosystem-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 2px solid #d6e7d8 !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: var(--th-text);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease,
              transform .2s ease, opacity .2s ease;
}

.th-region-button:hover,
.th-ecosystem-button:hover {
  border-color: var(--th-green);
  background: var(--th-green-soft);
  transform: translateY(-2px);
  color:var(--th-text)!important;
}

.th-region-button:focus-visible,
.th-ecosystem-button:focus-visible,
.th-modal-close:focus-visible,
.th-modal-ok:focus-visible {
  outline: 3px solid #f0b83b;
  outline-offset: 3px;
}

.th-region-button.is-active {
  background: var(--th-green);
  border-color: var(--th-green);
  color: #fff;
}

.th-region-button.is-inactive {
  opacity: .55;
}

.th-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--th-green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.4;
}

.th-ecosystem-area h3 {
  margin: 0 0 10px;
  color: var(--th-text);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.25;
}

.th-ecosystem-intro,
.th-ecosystem-note {
  color: var(--th-muted);
  font-size: 14px;
  line-height: 1.6;
}

.th-ecosystem-list {
  display: grid;
  gap: 9px;
  margin: 16px 0;
}

.th-ecosystem-button {
  justify-content: flex-start;
  text-align: left;
}

.th-ecosystem-note {
  margin: 12px 0 0;
  font-size: 12px;
}
/* Mapa: pines circulares sin nombres */
.tamaka-habitat .th-map-pin {
  width: 48px;
  height: 48px;
  min-width: 48px;
  padding: 0;
  border: 3px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  transform: translate(-50%, -50%);
}

.tamaka-habitat .th-map-pin span {
  display: block;
  font-size: 22px;
  line-height: 1;
}

.tamaka-habitat .th-map-pin small {
  display: none !important;
}

.tamaka-habitat .th-map-pin:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.tamaka-habitat .th-map-pin.is-inactive:hover {
  transform: translate(-50%, -50%);
}

/* Mapa centrado */
.tamaka-habitat .th-map-canvas {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}
/* Contenido de ecosistemas debajo del mapa */
.tamaka-habitat .th-ecosystem-area {
  width: 100%;
  min-width: 0;
}

.tamaka-habitat .th-ecosystem-area h3 {
  margin: 0 0 10px;
}

.tamaka-habitat .th-ecosystem-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  min-width: 0;
  margin: 16px 0;
}

.tamaka-habitat .th-ecosystem-button {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  justify-content: flex-start;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* =====================================================
   MODAL
===================================================== */

.th-modal[hidden] {
  display: none !important;
}

.th-modal {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(17, 38, 25, .76);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.th-modal-backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.th-modal-card {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: min(100%, 510px);
  max-height: 88vh;
  overflow-y: auto;
  padding: 28px;
  border: 3px solid #d6e7d8;
  border-radius: 26px;
  background: #fffdf4 !important;
  color: #294537 !important;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .25);
  animation: th-modal-appear .22s ease-out;
}

.th-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #e8f5e9;
  color: var(--th-green-dark);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.th-modal-illustration {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 180px;
  height: 180px;
  min-height: 180px;
  margin: 4px auto 18px;
  border-radius: 24px;
  background: var(--th-green-soft);
  font-size: 40px;
}

.th-modal-card .th-eyebrow {
  display: block;
  text-align: center;
}

.th-modal-card h2 {
  margin: 0 28px 14px;
  color: var(--th-green-dark);
  font-size: clamp(24px, 5vw, 30px);
  line-height: 1.2;
  text-align: center;
}

.th-modal-card h2,
.th-modal-card p,
.th-modal-card strong,
.th-modal-card .th-eyebrow {
  opacity: 1;
}

.th-modal-card > p {
  font-size: 15px;
  line-height: 1.7;
}

.th-modal-fact {
  margin: 18px 0;
  padding: 16px;
  border-radius: 17px;
  background: #eaf5e7;
  color: #294537;
  line-height: 1.6;
}

.th-modal-fact p {
  margin: 8px 0 0;
  font-size: 14px;
}

.th-modal-animal {
  margin: 14px 0;
  font-size: 14px;
  line-height: 1.7;
}

.th-modal-ecosystems {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 20px;
}

.th-modal-ecosystems:empty {
  display: none;
}

.th-modal-chip {
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d6e7d8;
  color: #294537;
  font-size: 12px;
  font-weight: 700;
}

.th-modal-ok {
  display: block;
  width: 100%;
  padding: 13px 18px!important;
  border: 0;
  border-radius: 14px!important;
  background: #cf2e63 !important;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  color:white!important;
}

.th-map-credit {
  margin: 16px 0 0;
  color: var(--th-muted);
  font-size: 10px !important;
  line-height: 1.5 !important;
  text-align: center;
}

.th-map-credit a {
  color: var(--th-green-dark);
  text-decoration: underline;
}

body.th-modal-open {
  overflow: hidden;
}

/* =====================================================
   ANIMACIÓN
===================================================== */

@keyframes th-modal-appear {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* =====================================================
   MAPA Y PINES INTERACTIVOS
===================================================== */

.th-map-canvas {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  isolation: isolate;
}

.th-map-canvas .th-colombia-map {
  display: block;
  width: 100%;
  max-width: none;
  max-height: 430px;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

.th-map-pin {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 55px;
  padding: 5px 7px;
  border: 2px solid #8EC284!important;
  border-radius: 13px;
  background: #fff!important;
  box-shadow: 0 3px 10px rgba(24, 65, 38, .25);
  font: inherit;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform .2s ease, opacity .2s ease,
              background .2s ease;
}


.th-map-pin small {
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

.th-map-pin:hover {
  z-index: 5;
  transform: translate(-50%, -50%) scale(1.08);
}

.th-map-pin:focus-visible {
  outline: 3px solid #98FF82;
  outline-offset: 3px;
}

.th-map-pin.is-active {
  background: #287747;
  border-color: #f7d46a;
  box-shadow: 0 0 0 3px rgba(247, 212, 106, .45),
              0 4px 12px rgba(24, 65, 38, .25);
}

.th-map-pin.is-inactive {
  background: #82958a;
  border-color: #e0e6e1;
  color: #fff;
  opacity: .65;
  filter: grayscale(.65);
}

.th-map-pin.is-inactive:hover {
  transform: translate(-50%, -50%);
}

.th-map-pin.is-message-active {
  border-color: #f0b83b;
  box-shadow: 0 0 0 3px rgba(240, 184, 59, .35);
}

/* Posiciones aproximadas sobre el mapa */

.th-pin-caribe {
  left: 59%;
  top: 16%;
}

.th-pin-insular {
  left: 13%;
  top: 24%;
}

.th-pin-andina {
  left: 49%;
  top: 43%;
}

.th-pin-pacifica {
  left: 29%;
  top: 47%;
}

.th-pin-orinoquia {
  left: 72%;
  top: 48%;
}

.th-pin-amazonia {
  left: 61%;
  top: 70%;
}

/* =====================================================
   AVISO DE REGIÓN SIN PRESENCIA DEL ANIMAL
===================================================== */

.th-habitat-notice {
  margin: 14px auto;
  padding: 14px 18px;
  border: 2px dashed #d7b65c;
  border-radius: 16px;
  background: #fff6d9;
  color: #294537;
  line-height: 1.5;
}

.th-habitat-notice strong {
  display: block;
  margin-bottom: 5px;
  color: #805c13;
}

.th-habitat-notice p {
  margin: 0;
  font-size: 14px;
}
