
  :root {
    --rojo: #5f2720;
    --rojo-claro: #8b3a31;
    --crema: #f5f0e8;
    --gris-claro: #e8e3da;
    --gris-medio: #999;
    --texto: #2a1f1a;
    --sombra: rgba(95,39,32,0.15);
    --rojoIconos: rgb(194, 19, 48);
    --blanco: #fcfcfc;
    --negro: rgb(3, 3, 2);
    --gris: #757575;
    --grisOscuro: rgb(63, 63, 62);
    --rojoIconosClaro: rgb(219, 5, 40);
}
 
  * { margin: 0; padding: 0; box-sizing: border-box; }
 
  body {
    font-family: "Montserrat", sans-serif;
    background: var(--blanco);
    color: var(--texto);
    min-height: 100vh;
  }
 
 
  /* ══════════════════════════════════════
     SECCIÓN 1: GALERÍA SUPERIOR
  ══════════════════════════════════════ */
  #galeria-section {
    width: 100%;
    height: 260px;
    background: #1a1008;
    overflow: hidden;
    display: flex;
    transition: height 0.5s ease;
  }
 
  #galeria-section.vacia {
    height: 160px;
  }
 
  .galeria-placeholder {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 30px 60px;
  }
 
  .galeria-placeholder .ph-item {
    flex: 1;
    height: 100%;
    border-radius: 8px;
    background: linear-gradient(135deg, #2a1a14 0%, #3d2a20 50%, #2a1a14 100%);
    opacity: 0.4;
    min-width: 0;
  }
 
  .galeria-placeholder .ph-text {
    position: absolute;
    color: rgba(255,255,255,0.3);
    font-size: 22px;
    letter-spacing: 4px;
    text-transform: uppercase;
  }
 
  #galeria-imagenes {
    width: 100%;
    display: flex;
    gap: 3px;
    display: none;
  }
 
  .gal-item {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: flex 0.4s ease;
  }
 
  .gal-item:hover { flex: 1.6; }
 
  .gal-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
  }
 
  .gal-item:hover img { transform: scale(1.05); }
 
  .gal-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 12px 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    color: #fff;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.3s;
  }
 
  .gal-item:hover .gal-label { opacity: 1; }
 
  /* ── LIGHTBOX ── */
  #lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
  }
 
  #lightbox.activo { display: flex; }
 
  #lightbox img {
    max-width: 80vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  }
 
  .lb-caption {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
  }
 
  .lb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
  }
 
  #lb-prev { left: 30px; }
  #lb-next { right: 30px; }
 
  /* BUSCADOR E INFO */
  #panel-central {
    display: flex;
    gap: 0;
    width: 100%;
    background: var(--blanco);
    border-bottom: 3px solid var(--rojo);
    min-height: 180px;
  }
 
  /* — Columna izquierda: buscador — */
  #col-busqueda {
    width: 500px;
    flex-shrink: 0;
    padding: 28px 24px;
    border-right: 2px solid var(--blanco);
    position: relative;
    z-index: 100;
  }
 
  .catalog-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--grisOscuro);
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
  }
 
  .catalog-title strong {
    display: block;
    font-size: 18px;
    color: var(--texto);
    font-weight: 700;
  }
 
  /* BARRA DE BÚSQUEDA */
  #search-wrap {
    position: relative;
  }
 
  #search-bar {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 2px solid var(--gris-medio);
    border-radius: 30px;
    font-size: 14px;
    color: var(--texto);
    background: #dcdcdc;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
  }
 
  #search-bar:focus, #search-bar.abierto {
    border-color: var(--gris-medio);
    box-shadow: 0 0 0 3px rgba(95,39,32,0.1);
    background: var(--blanco);
  }
 
.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;       /* ajusta este valor a tu gusto */
    height: 20px;      /* mismo valor para mantener proporción */
    pointer-events: none;
}
 
  /* LISTA DESPLEGABLE */
  #tree-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--blanco);
    border: 2px solid var(--gris-medio);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    max-height: 320px;
    overflow-y: auto;
    z-index: 500;
    animation: slideDown 0.25s ease;
  }
 
  #tree-dropdown.activo { display: block;}
 
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }
 
  .drop-item {
    padding: 10px 18px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
  }
 
  .drop-item:hover { background: var(--gris-claro); }
  .drop-item.activo-item { background: rgba(95,39,32,0.07); }
 
  .drop-nombre {
    font-size: 15px;
    font-weight: 600;
    color: var(--texto);
  }
 
  .drop-cientifico {
    font-size: 12px;
    font-style: italic;
    color: var(--rojo);
  }
 
  /* scroll buscador */
  #tree-dropdown::-webkit-scrollbar { width: 6px; }
  #tree-dropdown::-webkit-scrollbar-track { background: transparent; }
  #tree-dropdown::-webkit-scrollbar-thumb { background: var(--rojo); border-radius: 10px; }
 
  /* overlay para cerrar dropdown */
  #map-dimmer {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 99;
  }
  #map-dimmer.activo { display: block; }
 
  /* — Columna derecha: info del árbol — */
  #col-info {
    flex: 1;
    padding: 28px 36px;
    min-height: 180px;
    display: flex;
    align-items: flex-start;
  }
 
  .info-placeholder {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 130px;
    color: var(--gris-medio);
    font-style: italic;
    font-size: 14px;
    letter-spacing: 1px;
  }
 
  #info-arbol {
    display: none;
    width: 100%;
    animation: fadeIn 0.4s ease;
  }
 
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
 
  .info-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 6px;
    flex-wrap: wrap;
  }
 
  .info-titulo {
    font-size: 34px;
    font-weight: 700;
    color: var(--rojo);
    line-height: 1;
  }
 
  .info-cientifico {
    font-style: italic;
    font-size: 15px;
    color: var(--rojo);
    white-space: nowrap;
  }
 
  .info-divider {
    height: 3px;
    background: var(--rojo);
    border-radius: 3px;
    margin-bottom: 16px;
  }
 
  .info-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 5px 16px;
  }
 
  .info-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--rojo);
    text-align: right;
    white-space: nowrap;
  }
 
  .info-valor {
    font-size: 13px;
    color: #444;
    line-height: 1.4;
  }
 
  /* MAPA */
  .map-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    margin-top: 40px;
    padding: 0 40px 60px;
  }
 
  .map-container img {
    width: 1500px;
    max-width: 100%;
    border-radius: 50px;
  }
 
  .contenedor {
    position: relative;
    width: 100%;
    max-width: 1500px;
    cursor: none;
  }
 
  .img-1 {
    width: 100%;
    display: block;
    border-radius: 50px;
  }
 
  .map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    border-radius: 50px;
  }
 
  .map-overlay.show {
    opacity: 1;
    transform: scale(1);
  }
 
  .lupa {
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 3px solid var(--rojo);
    box-shadow: 0 4px 20px rgba(0,0,0,0.35);
    pointer-events: none;
    display: none;
    background-repeat: no-repeat;
    z-index: 10;
    transform: translate(-50%, -50%);
  }

  
  :root {
    --radio: 18px;
  }
 
  * { margin: 0; padding: 0; box-sizing: border-box; }
 
 
  /* TARJETAS */
  .cards-section {
    padding: 70px 60px;
    max-width: 1400px;
    margin: 0 auto;
  }
 
  .cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
 
  /* ── TARJETA BASE ── */
  .card {
    background: #fff;
    border-radius: var(--radio);
    overflow: hidden;
    box-shadow: 0 6px 24px var(--sombra);
    border: 2.5px solid transparent;
    transition: border-color 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
  }
 
  .card:hover {
    border-color: var(--rojoIconos);
    transform: translateY(-5px);
    box-shadow: 0 14px 40px rgba(95,39,32,0.2);
  }
 
  /* ── IMAGEN DE LA TARJETA ── */
  .card-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    background: var(--gris-claro);
    /* placeholder visual mientras no hay imagen real */
  }
 
  .card-img-wrap {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--gris-claro);
    position: relative;
  }
 
  .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
  }
 
  .card:hover .card-img-wrap img {
    transform: scale(1.04);
  }
 
  /* Placeholder si no carga imagen */
  .card-img-wrap::after {
    content: attr(data-label);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #aaa;
  }
 
  /* ── CUERPO ── */
  .card-body {
    padding: 22px 24px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
 
  .card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--grisOscuro);
    line-height: 1.35;
  }
 
  .card-hint {
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--rojo);
    font-weight: 700;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 6px;
  }
 
  .card-hint::after {
    content: "→";
    font-size: 14px;
    transition: transform 0.2s;
  }
 
  .card:hover .card-hint::after {
    transform: translateX(4px);
  }
 
  /* DIMER */
  #dimmer {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 800;
    animation: fadeIn 0.3s ease;
  }
 
  #dimmer.activo { display: block; }
 
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
 
  /* PDF MODAL */
  #pdf-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 900;
    align-items: center;
    justify-content: center;
    padding: 30px;
  }
 
  #pdf-modal.activo {
    display: flex;
  }
 
  .pdf-modal-inner {
    background: #fff;
    border-radius: var(--radio);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    animation: scaleIn 0.3s ease;
  }
 
  .pdf-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 2px solid var(--gris-claro);
  }
 
  .pdf-modal-header h3 {
    font-size: 18px;
    color: var(--rojo);
  }
 
  .pdf-actions {
    display: flex;
    gap: 10px;
    align-items: center;
  }
 
  .btn-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--rojo);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
  }
 
  .btn-download:hover { background: var(--rojo-hover); }
 
  .btn-close-modal {
    background: none;
    border: none;
    font-size: 22px;
    color: #888;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
  }
 
  .btn-close-modal:hover { color: var(--rojo); background: var(--gris-claro); }
 
  .pdf-frame-wrap {
    flex: 1;
    min-height: 0;
  }
 
  .pdf-frame-wrap iframe {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border: none;
    display: block;
  }
 
  /* ══════════════════════════
     FICHA POP-UP
  ══════════════════════════ */
  #ficha-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 900;
    align-items: center;
    justify-content: center;
    padding: 30px;
  }
 
  #ficha-modal.activo {
    display: flex;
  }
 
  @keyframes scaleIn {
    from { opacity: 0; transform: scale(0.94); }
    to { opacity: 1; transform: scale(1); }
  }
 
  .ficha-inner {
    background: #fff;
    border-radius: var(--radio);
    width: 100%;
    max-width: 820px;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: row;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    animation: scaleIn 0.3s ease;
    position: relative;
  }
 
  /* IMAGEN IZQUIERDA */
  .ficha-img-col {
    width: 280px;
    flex-shrink: 0;
    background: var(--gris-claro);
    border-radius: var(--radio) 0 0 var(--radio);
    overflow: hidden;
    position: relative;
  }
 
  .ficha-img-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
 
  /* Placeholder visual */
  .ficha-img-col::after {
    content: "Foto";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #bbb;
    letter-spacing: 2px;
  }
 
  /* CONTENIDO DERECHO */
  .ficha-content {
    flex: 1;
    padding: 36px 36px 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
 
  .ficha-texto {
    font-size: 14px;
    line-height: 1.75;
    color: #444;
    text-align: justify;
  }
 
  .ficha-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 22px;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
  }
 
  .ficha-close:hover { color: var(--rojo); }
 
  /* ══════════════════════════
     RESPONSIVE
  ══════════════════════════ */
 
  /* TABLET (≤ 900px) */
  @media (max-width: 900px) {
    .cards-section {
      padding: 50px 32px;
    }
 
    .cards-grid {
      grid-template-columns: 1fr;
      max-width: 480px;
      margin: 0 auto;
      gap: 24px;
    }
 
    .ficha-inner {
      flex-direction: column;
      max-width: 560px;
    }
 
    .ficha-img-col {
      width: 100%;
      height: 220px;
      border-radius: var(--radio) var(--radio) 0 0;
    }
 
    .ficha-img-col::after {
      display: none;
    }
  }
 
  /* TABLET HORIZONTAL / pequeña (601–900px) */
  @media (min-width: 601px) and (max-width: 900px) {
    .cards-grid {
      grid-template-columns: repeat(2, 1fr);
      max-width: 100%;
    }
 
    /* La tercera tarjeta centrada sola */
    .card:nth-child(3) {
      grid-column: 1 / -1;
      max-width: 50%;
      margin: 0 auto;
      width: 100%;
    }
  }
 
  /* MÓVIL (≤ 600px) */
  @media (max-width: 600px) {
    .cards-section {
      padding: 36px 20px;
    }
 
    .cards-grid {
      grid-template-columns: 1fr;
      gap: 20px;
    }
 
    .card-title { font-size: 16px; }
 
    .pdf-modal-inner,
    .ficha-inner {
      border-radius: 12px;
    }
 
    .ficha-content {
      padding: 24px 22px;
    }
 
    .ficha-title { font-size: 18px; }
    .ficha-texto { font-size: 13px; }
 
    #pdf-modal, #ficha-modal {
      padding: 14px;
    }
 
    .pdf-frame-wrap iframe {
      min-height: 360px;
    }
  }

/* ══════════════════════════════════════
   RESPONSIVE — GALERÍA, BUSCADOR,
   INFO Y MAPA
══════════════════════════════════════ */

/* ── TABLET (601px – 1024px) ── */
@media (max-width: 1024px) {

  /* GALERÍA */
  #galeria-section {
    height: 200px;
  }
  #galeria-section.vacia {
    height: 120px;
  }
  .galeria-placeholder {
    padding: 20px 30px;
    gap: 12px;
  }
  .galeria-placeholder .ph-text {
    font-size: 16px;
    letter-spacing: 2px;
  }
  /* Las etiquetas de imagen siempre visibles en tablet
     porque el hover no existe en táctil */
  .gal-label {
    opacity: 1;
    padding: 16px 8px 8px;
    font-size: 10px;
  }

  /* BUSCADOR + INFO — apilados verticalmente */
  #panel-central {
    flex-direction: column;
    min-height: auto;
    border-bottom: none;
  }

  #col-busqueda {
    width: 100%;
    border-right: none;
    border-bottom: 2px solid var(--gris-claro);
    padding: 20px 24px;
  }

  #col-info {
    padding: 20px 24px;
    min-height: auto;
  }

  .info-titulo {
    font-size: 26px;
  }

  .info-cientifico {
    font-size: 13px;
    white-space: normal;
  }

  /* Línea separadora debajo del panel completo */
  #col-info {
    border-bottom: 3px solid var(--rojo);
  }

  /* MAPA */
  .map-section {
    margin-top: 24px;
    padding: 0 20px 40px;
  }

  .contenedor {
    cursor: auto; /* en tablet no hay lupa */
  }

  /* Ocultar la lupa en táctil */
  .lupa {
    display: none !important;
  }

  .img-1 {
    border-radius: 24px;
  }

  .map-overlay {
    border-radius: 24px;
  }
}

/* ── MÓVIL (≤ 600px) ── */
@media (max-width: 600px) {

  /* GALERÍA — carrusel de una imagen */
  #galeria-section {
    height: 220px;
  }

  #galeria-section.vacia {
    height: 80px;
  }

  .galeria-placeholder {
    padding: 14px 16px;
    gap: 6px;
  }

  .galeria-placeholder .ph-text {
    font-size: 11px;
    letter-spacing: 1px;
  }

  /* El contenedor del carrusel ocupa todo */
  #galeria-imagenes {
    overflow: hidden;
    flex-wrap: nowrap;
    width: 100%;
    position: relative;
  }

  /* Cada item ocupa el 100% en carrusel */
  .gal-item {
    width: 100%;
    flex: 0 0 100%;
    min-width: 0;
  }

  /* Eliminar hover en móvil para evitar la animación de la galería */
  .gal-item:hover {
    flex: 0 0 100%;
  }
  .gal-item:hover img {
    transform: none;
  }

  /* La etiqueta siempre visible en carrusel */
  .gal-label {
    opacity: 1;
    font-size: 10px;
    letter-spacing: 1.5px;
    padding: 18px 10px 8px;
  }

  /* LIGHTBOX — flechas más pequeñas */
  .lb-arrow {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
  #lb-prev { left: 8px; }
  #lb-next { right: 8px; }

  .lb-caption {
    font-size: 10px;
    bottom: 16px;
    letter-spacing: 2px;
  }

  /* BUSCADOR + INFO — columna única */
  #panel-central {
    flex-direction: column;
    border-bottom: none;
  }

  #col-busqueda {
    width: 100%;
    border-right: none;
    border-bottom: 2px solid var(--gris-claro);
    padding: 16px;
    z-index: 100;
  }

  .catalog-title {
    font-size: 14px;
    margin-bottom: 10px;
  }

  #search-bar {
    font-size: 12px;
    padding: 9px 10px 9px 32px;
    /* El texto con nombre científico puede ser largo;
       que se corte con puntos suspensivos */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .search-icon {
    width: 15px;
    height: 15px;
    left: 9px;
  }

  #tree-dropdown {
    max-height: 220px;
    border-radius: 10px;
    font-size: 13px;
  }

  .drop-nombre { font-size: 13px; }
  .drop-cientifico { font-size: 11px; }

  /* INFO del árbol */
  #col-info {
    padding: 16px;
    min-height: auto;
    border-bottom: 3px solid var(--rojo);
    align-items: flex-start;
  }

  .info-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-bottom: 4px;
  }

  .info-titulo {
    font-size: 20px;
    line-height: 1.1;
  }

  .info-cientifico {
    font-size: 11px;
    white-space: normal;
    color: var(--rojo);
  }

  .info-divider {
    margin-bottom: 10px;
  }

  /* La cuadrícula de etiqueta/valor ocupa todo el ancho */
  .info-grid {
    grid-template-columns: auto 1fr;
    gap: 4px 10px;
  }

  .info-label {
    font-size: 11px;
    white-space: nowrap;
  }

  .info-valor {
    font-size: 11px;
    line-height: 1.4;
  }

  /* MAPA */
  .map-section {
    margin-top: 14px;
    padding: 0 10px 24px;
  }

  .contenedor {
    cursor: auto;
    border-radius: 14px;
    overflow: hidden;
  }

  .img-1 {
    border-radius: 14px;
  }

  .map-overlay {
    border-radius: 14px;
  }

  .lupa {
    display: none !important;
  }

  /* MODALES */
  #pdf-modal,
  #ficha-modal {
    padding: 10px;
  }

  .pdf-modal-inner,
  .ficha-inner {
    border-radius: 12px;
  }

  .pdf-frame-wrap iframe {
    min-height: 340px;
  }

  .ficha-inner {
    flex-direction: column;
  }

  .ficha-img-col {
    width: 100%;
    height: 180px;
    border-radius: 12px 12px 0 0;
    flex-shrink: 0;
  }

  .ficha-content {
    padding: 20px 18px;
    gap: 10px;
  }

  .ficha-texto {
    font-size: 13px;
    line-height: 1.65;
  }
}