/* ==========================================================================
   VOCES DEL AGUA Y DEL MONTE — contenido: comunidad, documental, podcast, galería y fichas por especie
   Mismo lenguaje que voces_style.css (superficies Liquid Kelp / Deep, tipografía ligera, acento teal).
   ========================================================================== */

.voces .vc-ancha { max-width: 980px; }

/* ---------- Botón ---------- */
.vc-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 6px;
    background: linear-gradient(90deg, rgb(0, 130, 124) 0%, rgb(203, 255, 252) 100%);
    color: #012624;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
}
.vc-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.vc-btn:active { transform: scale(0.97); }
.vc-btn:focus-visible { outline: 2px solid #cbfffc; outline-offset: 3px; }


/* ---------- Documental y podcast ---------- */
.vc-medio { display: flex; flex-direction: column; gap: 18px; }
.vc-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; background: #011d1c; }
.vc-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vc-embed--audio { aspect-ratio: auto; height: 232px; }
.vc-video { display: block; width: 100%; border-radius: 16px; background: #000; max-height: 560px; }
.vc-audio { width: 100%; }
.vc-medio__info h3 { margin: 0 0 6px; font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; color: #edfffe; }
.vc-medio__info p { margin: 0; max-width: 70ch; font-size: 1rem; line-height: 1.6; color: #bbc7c6; }

/* ---------- Galería ---------- */
.vc-galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.vc-foto { margin: 0; }
.vc-foto__enlace { display: block; overflow: hidden; border-radius: 16px; background: #011d1c; cursor: zoom-in; }
.vc-foto img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
@media (hover: hover) { .vc-foto__enlace:hover img { transform: scale(1.05); } }
.vc-foto figcaption, .vce-figura figcaption { margin-top: 10px; font-size: 0.875rem; line-height: 1.5; color: #9fb0ae; }

/* ---------- Visor de fotos ---------- */
body.vc-sin-scroll { overflow: hidden; }
.vc-visor { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 28px; background: rgba(1, 20, 19, 0.94); }
.vc-visor[hidden] { display: none; }
.vc-visor figure { margin: 0; max-width: min(1100px, 100%); text-align: center; }
.vc-visor img { max-width: 100%; max-height: 80vh; border-radius: 12px; }
.vc-visor figcaption { margin-top: 14px; font-size: 0.95rem; color: #d1e3e1; }
.vc-visor figcaption[hidden] { display: none; }
.vc-visor__cerrar { position: absolute; top: 18px; right: 22px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.vc-visor__cerrar:hover { background: rgba(255, 255, 255, 0.22); }

/* ---------- Tarjetas de especies ---------- */
.vc-especies { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.vc-especie {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 16px;
    background: #003734;
    text-decoration: none;
    color: inherit;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
}
@media (hover: hover) { .vc-especie:hover { transform: translateY(-6px); background: #004a46; } }
.vc-especie:focus-visible { outline: 2px solid #cbfffc; outline-offset: 4px; }
.vc-especie__img { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; overflow: hidden; background: #011d1c; color: #4ee0d4; font-size: 40px; }
.vc-especie__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
@media (hover: hover) { .vc-especie:hover .vc-especie__img img { transform: scale(1.06); } }
.vc-especie__txt { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px 8px; }
.vc-especie__txt strong { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; color: #fff; }
.vc-especie__txt em { font-size: 0.9rem; color: #9fe9e3; }
.vc-especie__txt small { margin-top: 6px; font-size: 0.9rem; line-height: 1.5; color: #bbc7c6; }
.vc-especie__go { margin-top: auto; padding: 8px 22px 20px; font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: #cbfffc; }
.vc-especie__go i { margin-left: 6px; transition: transform 0.3s ease; }
.vc-especie:hover .vc-especie__go i { transform: translateX(4px); }
.vc-especies--compacto { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.vc-especies--compacto .vc-especie__txt { padding: 14px 16px 18px; }
.vc-especies--compacto .vc-especie__txt strong { font-size: 1rem; }

/* ---------- Ficha de especie ---------- */
.vce { max-width: 1120px; }
.vce-volver { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: #bbc7c6; text-decoration: none; transition: color 0.2s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.vce-volver:hover { color: #fff; transform: translateX(-3px); }
.vce-head { margin-bottom: 36px; }
.vce-nombre { margin: 0 0 8px; font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 500; line-height: 1.05; letter-spacing: -0.035em; color: #fff; text-wrap: balance; }
.vce-cientifico { margin: 0 0 24px; font-size: 1.25rem; font-style: italic; color: #9fe9e3; }
.vce-langs { margin-bottom: 0; }

.vce-cuerpo { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 48px; align-items: start; }
.vce-cuerpo--solo-texto { grid-template-columns: minmax(0, 760px); }
.vce-media { display: flex; flex-direction: column; gap: 28px; position: sticky; top: 100px; }
.vce-figura { margin: 0; }
.vce-figura__img { display: block; overflow: hidden; border-radius: 16px; background: #011d1c; cursor: zoom-in; }
.vce-figura__img img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; }
.vce-figura__img--mapa { background: #fff; }
.vce-figura__img--mapa img { object-fit: contain; }
.vce-figura figcaption[hidden] { display: none; }
.vce-audio { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; background: #003734; }
.vce-audio i { flex: none; font-size: 20px; color: #4ee0d4; }
.vce-audio audio { flex: 1; min-width: 0; height: 40px; }

.vce-textos { min-width: 0; }
.vce-seccion { margin-bottom: 36px; }
.vce-seccion h2 { margin: 0 0 12px; font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; color: #fff; }
.vce-seccion .voces-text { white-space: normal; }
.vce-otras { margin-top: 72px; }
.vce-otras h2 { margin: 0 0 20px; font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; color: #fff; }

@media (max-width: 900px) {
    .vce-cuerpo { grid-template-columns: 1fr; gap: 32px; }
    .vce-media { position: static; }
}
@media (max-width: 700px) {
}

@media (prefers-reduced-motion: reduce) {
    .vc-btn, .vc-foto img, .vc-especie, .vc-especie__img img, .vc-especie__go i, .vce-volver { transition: none; }
}

/* ==========================================================================
   Especies: círculos flotantes + panel que se despliega
   ========================================================================== */
.vc-especies-sec__guia { margin: -8px 0 36px; font-size: 1rem; color: #9fb0ae; }

.vc-circulos { display: flex; flex-wrap: wrap; justify-content: center; gap: 56px 44px; padding: 10px 0 8px; }
.vc-circulo {
    --tam: 190px;
    width: calc(var(--tam) + 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
    /* flota con un ritmo propio por especie */
    animation: vc-flota calc(6s + (var(--i, 0) % 5) * 0.7s) ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * -1.1s);
}
@keyframes vc-flota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.vc-circulo__foto {
    position: relative;
    width: var(--tam);
    height: var(--tam);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    background: #011d1c;
    color: #4ee0d4;
    font-size: 48px;
    border: 3px solid rgba(203, 255, 252, 0.55);
    /* luz bioluminiscente detrás + sombra de profundidad */
    box-shadow: 0 0 0 8px rgba(78, 224, 212, 0.08), 0 0 44px rgba(78, 224, 212, 0.28), 0 22px 36px rgba(0, 0, 0, 0.45);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}
.vc-circulo__foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.vc-circulo__nombre { font-size: 1.15rem; font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; color: #ffffff; text-wrap: balance; }
.vc-circulo__cientifico { font-size: 0.9rem; font-style: italic; color: #9fe9e3; }

@media (hover: hover) {
    .vc-circulo:hover .vc-circulo__foto { transform: scale(1.07); border-color: #cbfffc; box-shadow: 0 0 0 12px rgba(78, 224, 212, 0.14), 0 0 64px rgba(78, 224, 212, 0.45), 0 28px 44px rgba(0, 0, 0, 0.5); }
    .vc-circulo:hover .vc-circulo__foto img { transform: scale(1.08); }
}
.vc-circulo:active .vc-circulo__foto { transform: scale(0.96); }
.vc-circulo:focus-visible { outline: none; }
.vc-circulo:focus-visible .vc-circulo__foto { border-color: #ffffff; box-shadow: 0 0 0 5px rgba(203, 255, 252, 0.5), 0 0 44px rgba(78, 224, 212, 0.4); }
.vc-circulos--compacto { gap: 36px 28px; }
.vc-circulos--compacto .vc-circulo { --tam: 120px; width: 150px; animation: none; }
.vc-circulos--compacto .vc-circulo__foto { margin-bottom: 8px; font-size: 32px; }
.vc-circulos--compacto .vc-circulo__nombre { font-size: 1rem; }

/* ---------- Panel de la ficha ---------- */
.vc-ficha-panel {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(1, 18, 17, 0.88);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.vc-ficha-panel[hidden] { display: none; }
.vc-ficha-panel.is-open { opacity: 1; }
.vc-ficha-panel__caja {
    position: relative;
    width: 100%;
    max-width: 1120px;
    max-height: 100%;
    overflow-y: auto;
    padding: 44px 48px 32px;
    border-radius: 24px;
    background: #012624;
    border: 1px solid rgba(203, 255, 252, 0.18);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
    transform: translateY(26px) scale(0.97);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}
.vc-ficha-panel.is-open .vc-ficha-panel__caja { transform: none; }
.vc-ficha-panel__cerrar { position: sticky; top: 0; float: right; z-index: 5; width: 44px; height: 44px; margin: -24px -28px 0 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; transition: background-color 0.2s ease, transform 0.3s ease; }
.vc-ficha-panel__cerrar:hover { background: rgba(255, 255, 255, 0.2); transform: scale(1.06); }
.vc-ficha-panel__cerrar:focus-visible { outline: 2px solid #cbfffc; outline-offset: 2px; }
.vc-ficha-panel__pie { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(203, 255, 252, 0.12); text-align: right; }
.vc-ficha-panel__enlace { font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: #9fe9e3; text-decoration: none; }
.vc-ficha-panel__enlace:hover { color: #fff; }

/* Dentro del panel la ficha usa un encabezado más compacto y los medios no se "pegan" */
.vc-ficha-panel .vce-nombre { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.vc-ficha-panel .vce-media { position: static; }

@media (max-width: 900px) {
    .vc-ficha-panel { padding: 0; align-items: stretch; }
    .vc-ficha-panel__caja { border-radius: 0; padding: 36px 20px 24px; border: 0; }
    .vc-ficha-panel__cerrar { margin: -12px -4px 0 0; }
    .vc-circulos { gap: 40px 24px; }
    .vc-circulo { --tam: 150px; width: 170px; }
}

@media (prefers-reduced-motion: reduce) {
    .vc-circulo { animation: none; }
    .vc-circulo__foto, .vc-circulo__foto img, .vc-ficha-panel, .vc-ficha-panel__caja { transition: none; }
}

/* ==========================================================================
   REDISEÑO EDITORIAL: menos cajas, más aire. Cada sección es un renglón con su
   título a la izquierda y el contenido a la derecha, separadas por una línea fina.
   ========================================================================== */
html { scroll-behavior: smooth; }
.voces-section { scroll-margin-top: 90px; }

/* Navegación por anclas en la portada */
.voces-ancla { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; margin-top: 44px; }
.voces-ancla a { padding: 6px 0; border-bottom: 1px solid transparent; font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: #9fb0ae; text-decoration: none; transition: color .2s, border-color .2s; }
.voces-ancla a:hover, .voces-ancla a:focus-visible { color: #fff; border-color: #4ee0d4; outline: none; }

/* Sección en dos columnas: título | contenido */
.voces .voces-section {
    display: grid;
    grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
    column-gap: 64px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 56px 0;
    border-top: 1px solid rgba(203, 255, 252, 0.12);
}
.voces .voces-section > * { grid-column: 2; min-width: 0; }
.voces .voces-section > .voces-section__title { grid-column: 1; grid-row: 1 / span 12; align-self: start; position: sticky; top: 100px; margin: 0; }

/* Descripción: texto más grande y legible, sin caja */
.voces #descripcion .voces-text { font-size: 1.1875rem; line-height: 1.75; color: #d1dedc; }

/* Estados vacíos: una línea con filete, no un recuadro */
.voces-empty { padding: 4px 0 4px 20px; border-radius: 0; border-left: 2px solid rgba(78, 224, 212, 0.45); background: none; color: #9fb0ae; }

/* Selector de lengua: más discreto */
.voces-langs { margin-bottom: 28px; }
.voces-select__campo { background-color: transparent; border-radius: 999px; padding-left: 20px; }
.voces-select__campo:hover { background-color: rgba(0, 55, 52, 0.6); }

/* Documental y podcast: el material manda; el texto va debajo sin tarjeta */
.vc-embed, .vc-video { border-radius: 10px; }
.vc-medio__info { padding-left: 18px; border-left: 2px solid rgba(78, 224, 212, 0.45); }
.vc-embed--audio { height: 180px; }

/* Galería: mosaico con fotos de distinto tamaño, sin marcos */
.vc-galeria { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 150px; grid-auto-flow: dense; gap: 8px; }
.vc-foto { position: relative; overflow: hidden; border-radius: 10px; grid-column: span 2; grid-row: span 1; background: #011d1c; }
.vc-foto:nth-child(5n+1) { grid-column: span 4; grid-row: span 2; }
.vc-foto:nth-child(5n+2), .vc-foto:nth-child(5n+3) { grid-column: span 2; }
.vc-foto:nth-child(5n+4) { grid-column: span 3; }
.vc-foto:nth-child(5n+5) { grid-column: span 3; }
.vc-foto:last-child:nth-child(5n+1) { grid-column: 1 / -1; }
.vc-foto:last-child:nth-child(5n+2) { grid-column: span 2; grid-row: span 2; }
.vc-foto__enlace { height: 100%; border-radius: 0; }
.vc-foto img { height: 100%; aspect-ratio: auto; }
.vc-foto figcaption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 28px 14px 12px; background: linear-gradient(to top, rgba(1, 20, 19, 0.85), transparent); font-size: 0.8125rem; color: #e6f2f0; pointer-events: none; }

/* Especies: ancho completo, título arriba (los círculos necesitan espacio) */
.voces .voces-section.vc-especies-sec { display: block; }
.voces .vc-especies-sec > .voces-section__title { position: static; margin-bottom: 28px; }
.vc-especies-sec__guia { margin: 0 0 36px; }

/* WhatsApp: un ícono flotante y discreto; el QR sale en una ventana */
.vc-wa { position: fixed; right: 22px; bottom: 22px; z-index: 900; }
.vc-wa__icono { display: flex; align-items: center; gap: 0; height: 54px; min-width: 54px; padding: 0; border: 0; border-radius: 999px; background: #25d366; color: #fff; font-size: 30px; text-decoration: none; cursor: pointer; justify-content: center; overflow: hidden; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); transition: transform .2s, box-shadow .2s, padding .25s, gap .25s; }
.vc-wa__etiqueta { max-width: 0; overflow: hidden; white-space: nowrap; font-family: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; transition: max-width .3s; }
@media (hover: hover) { .vc-wa__icono:hover { padding: 0 20px 0 14px; gap: 10px; box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45); } .vc-wa__icono:hover .vc-wa__etiqueta { max-width: 190px; } }
.vc-wa__icono:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.vc-wa-dialogo { width: min(92vw, 380px); padding: 30px 26px 24px; border: 0; border-radius: 20px; background: #fff; color: #003734; text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4); }
.vc-wa-dialogo::backdrop { background: rgba(0, 28, 27, 0.7); backdrop-filter: blur(3px); }
.vc-wa-dialogo__ico { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%; background: #25d366; color: #fff; font-size: 28px; }
.vc-wa-dialogo h3 { margin: 14px 0 16px; font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
.vc-wa-dialogo__qr { display: inline-block; padding: 10px; border: 1px solid #e3ece8; border-radius: 14px; }
.vc-wa-dialogo__qr img { display: block; width: 230px; max-width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.vc-wa-dialogo p { margin: 14px 0 0; font-size: .92rem; line-height: 1.5; color: #4b6360; }
.vc-wa-dialogo__enlace { display: inline-block; margin-top: 14px; font-size: .85rem; font-weight: 600; color: #128c7e; }
.vc-wa-dialogo__cerrar { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #eef3f1; color: #003734; font-size: 15px; cursor: pointer; }
.vc-wa-dialogo__cerrar:hover { background: #dde8e4; }

@media (max-width: 900px) {
    .voces .voces-section { grid-template-columns: 1fr; padding: 40px 0; }
    .voces .voces-section > *, .voces .voces-section > .voces-section__title { grid-column: 1; grid-row: auto; position: static; }
    .voces-section__title { margin-bottom: 22px !important; }
    .vc-galeria { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
    .vc-foto, .vc-foto:nth-child(n) { grid-column: span 1; grid-row: span 1; }
    .vc-foto:nth-child(3n+1) { grid-column: span 2; grid-row: span 2; }
    .vc-foto:last-child:nth-child(n) { grid-column: span 1; }
    .vc-wa { right: 14px; bottom: 14px; }
}
.voces-back { max-width: 1120px; }

/* Vistas: solo se ve la sección elegida arriba */
.voces .voces-section[hidden] { display: none; }
.voces-ancla a.is-activa { color: #fff; border-color: #4ee0d4; }
.voces-ancla { margin-bottom: 8px; }
