/* ========================================================= */
/* INFOGRAFIA COMPONENTE                                    */
/* ========================================================= */

.infografia {
  width: 100%;
  position: relative;
}

.infografiaContainer {
  max-width: 1076px;
  margin: 0 auto;
  padding: 0px 0px 25px;
}

/* --------------------------------------------------------- */
/* TITULO SECCION */
/* --------------------------------------------------------- */

.infografiaSectionTitle {
  font-size: 32px;
  margin-bottom: 40px;
  text-align: center;
}

.linkInfografiaPrimary{
  display: block;
  margin: 0 auto;
  width: 100%;
  text-align: center;
  color: #008081;
  font-weight: 700;
  line-height: 28px;
  font-size: 16px;
}

/* --------------------------------------------------------- */
/* BLOQUE VISUAL */
/* --------------------------------------------------------- */

.infografiaVisual {
  position: relative;
  width: 100%;
}

.infografiaImageWrapper {
  position: relative;
  width: 856px;
  height: 479px;
  margin: -20px auto 0;
}

.infografiaImage {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* --------------------------------------------------------- */
/* HOTSPOTS */
/* --------------------------------------------------------- */

.infografiaHotspots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.infografiaHotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  cursor: pointer;
  pointer-events: auto;
  width: 40px;
  height: 40px;
}

/* Iconos */

.infografiaHotspotIcon,
.infografiaHotspotIconHover {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  inset: 0;
  transition: opacity 0.3s ease;
  margin-top: 3px;
}

.infografiaHotspotIconHover {
  opacity: 0;
}

@media (hover: hover) {
  .infografiaHotspot:hover .infografiaHotspotIcon {
    opacity: 0;
  }

  .infografiaHotspot:hover .infografiaHotspotIconHover {
    opacity: 1;
  }
}

/* Aura animada */

.infografiaHotspotAura {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(151, 195, 189, 1);
  animation: auraPulse 2s infinite;
  padding: 10px;
  width: 100%;
  height: 100%;
}

@keyframes auraPulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  70% {
    transform: scale(1.6);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* --------------------------------------------------------- */
/* CONTENIDO INFERIOR */
/* --------------------------------------------------------- */

.infografiaContent {
  margin-top: 40px;
  text-align: left;
  padding-bottom: 32px;
  padding-left: 40px;
  padding-right: 40px;
}

.infografiaDescription{
  color: #4D5A61;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
}

.infografiaTitle {
  margin-bottom: 16px;
  text-align: center;
  margin-top: 88px;
  font-family: Poppins;
  font-weight: 700;
  font-style: Bold;
  font-size: 40px;
  line-height: 48px;
  letter-spacing: -0.5px;
}

.infografiaDescription {
  font-size: 16px;
  line-height: 1.6;
}


/* ========================================================= */
/* TABS */
/* ========================================================= */

.infografiaTabsNav {
  position: relative;
  display: flex;
  border-bottom: 1px solid #E6E6E6;
  margin-bottom: 32px;
  margin-top: 48px;
}

.infografiaTabButton {
  flex: 1;
  background: none;
  border: none;
  padding: 16px 0;
  cursor: pointer;
  font-weight: 400;
  font-size: 20px;
  text-align: center;
  transition: color 0.3s ease;
  position: relative;
  color: #616367;
  border-radius
}

.infografiaTabButton:hover {
  color: #000;
  background-color: #F4F5F7;
}

.infografiaTabButton.isActive {
  color: #000;
  font-weight: 700;
}

.infografiaTabIndicator {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 50%;
  height: 2px;
  background: #1C1B1F;
  transform: translateX(0%);
  transition: transform 0.3s ease;
}

.infografiaTabPanel {
  display: none;
}

.infografiaTabPanel.isActive {
  display: block;
}

/* =========================
   BOTONES INFOGRAFIA
========================= */

.infografiaButtons{
    display:flex;
    gap:16px;
    padding-left: 125px;
}

.infografiaButton{
    width:56px;
    height:56px;
    border-radius:50%;
    border:none;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition:all .25s ease;
}

.infografiaButtonIcon{
    width:40px;
    height:40px;
}

.infografiaButton:hover{
    transform:scale(1.08);
}

/*modal*/

.infografiaModal{
    position: fixed;
    inset:0;
    z-index:999;
    display:flex;
    align-items:center;
    justify-content:center;
    opacity:0;
    pointer-events:none;
    transition:opacity .35s ease;
}

.infografiaModal.isActive{
    opacity:1;
    pointer-events:auto;
}

.infografiaModalOverlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.5);
    opacity:0;
    transition:opacity .35s ease;
}

.infografiaModal.isActive .infografiaModalOverlay{
    opacity:1;
}

.infografiaModalCard{
    position: relative;
    background: white;
    border-radius: 24px;
    padding: 0px;
    width: 756px;
    height: 330px;
    z-index: 2;
    transform: translateY(100vh);
    opacity: 0;
    transition: transform .6s cubic-bezier(.22, 1, .36, 1), opacity .35s ease;
}


.infografiaModal.isActive .infografiaModalCard{
    transform:translateY(0);
    opacity:1;
}

.infografiaModal.isClosing .infografiaModalCard{
    transform:translateY(100vh);
    opacity:0;
}

.infografiaModalContent{
    display: flex;
    gap: 27px;
    align-items: center;
    padding-top: 18px;
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 48px;
}

.infografiaModalImage img{
    width:280px !important;
    height: 294px !important;
    border-radius:4px;
    max-width: none;
}

#modalTitle{
  width: 356px;
  height: auto;
  font-size: 32px;
  line-height: 40px;
  letter-spacing: 0px;
  color: #1C1B1F;
  padding-top: 35px;
  margin-bottom: 0px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-style: normal;
}


.linkModalHall{
  padding-top: 16px !important;
  display: inline-block !important;
}

.infografiaModalDescription{
  padding-top: 24px;
  width: 356px;
  height: 120px;
  opacity: 1;
  gap: 16px;
  padding-right: 24px;
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0px;
  color: #4D5A61;
}

.infografiaModalText{
  width: 356px;
  height: 294px;
  opacity: 1;
  gap: 24px;
}

.infografiaModalClose{
    position:absolute;
    top:20px;
    right:20px;
    border:1px solid #000;
    border-radius:50%;
    width:36px;
    height:36px;
    background:white;
    cursor:pointer;
}


/* =========================================================
   HOTSPOT TOOLTIP
========================================================= */

.infografiaHotspotTooltip{
background:#F2C300;
color:#000;
font-size:14px;
font-weight:600;
padding:8px 30px;
border-radius:999px;
white-space:nowrap;
opacity:0;
pointer-events:none;
transform:translateY(-20%);
transition:all .25s ease;
}

.infografiaHotspot:hover .infografiaHotspotTooltip{
opacity:1;
transform:translateY(-20%) translateX(4px);

}

/* Ocultar tooltips cuando el modal está abierto */
body.infografia-modal-open .infografiaHotspotTooltip {
  opacity: 0 !important;
  pointer-events: none !important;
}


/* =========================================================
   CARDS TAB 2
========================================================= */

.infografiaCards{
    display:flex;
    gap:32px;
    margin-top:40px;
}

.infografiaCard{
    flex: 1;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .08);
    /*border: 1px solid #d3d4d3;*/
    width: 350px;
    height: auto;
}

.infografiaCardImage img{
    width:100%;
    height:200px;
    object-fit:cover;
    display:block;
}

.infografiaCardContent{
    padding:50px;
}

.infografiaCardTitle{
    font-size:22px;
    margin-bottom:12px;
    font-weight: 700;
    font-size: 27px;
}

.infografiaCardText{
    font-size:15px;
    line-height:1.6;
    font-size: 15px;
    color: #4D5A61;
}


/* =========================================================
   RESPONSIVE - MEDIA QUERIES
========================================================= */

/* Tablets y pantallas medianas */
@media (max-width: 768px) {
  
  .infografiaContainer {
    padding: 0 16px 25px;
  }

  .infografiaTitle {
    font-size: 32px;
    line-height: 40px;
    margin-top: 48px;
  }

  /* TABS */
  .infografiaTabsNav {
    margin-top: 32px;
  }

  .infografiaTabButton {
    font-size: 18px;
    padding: 12px 0;
  }

  /* CONTENIDO */
  .infografiaContent {
    padding: 24px 16px;
  }

  /* BOTONES - Centrar en lugar de padding-left fijo */
  .infografiaButtons {
    padding-left: 0;
    justify-content: center;
    margin-bottom: 24px;
  }

  /* IMAGEN PRINCIPAL - Responsive */
  .infografiaImageWrapper {
    width: calc(100vw - 40px);
    max-width: 856px;
    height: auto;
    aspect-ratio: 856 / 479;
    margin: 0 auto;
  }

  .infografiaImage {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* HOTSPOTS - Mantener proporción */
  .infografiaHotspot {
    width: 40px;
    height: 40px;
  }

  /* MODAL */
  .infografiaModal {
    align-items: flex-start;
    overflow-y: auto;
  }

  .infografiaModalCard {
    width: 90%;
    max-width: 700px;
    height: auto;
    max-height: 85vh;
    overflow-y: auto;
    margin-top: 120px;
    margin-bottom: 40px;
  }

  .infografiaModalContent {
    flex-direction: column;
    gap: 32px;
    padding: 64px 24px 32px;
  }

  .infografiaModalImage img {
    width: 100% !important;
    height: auto !important;
    max-width: 280px;
  }

  #modalTitle {
    width: 100%;
    font-size: 28px;
    line-height: 36px;
    padding-top: 0;
  }

  .infografiaModalDescription {
    width: 100%;
    height: auto;
  }

  .infografiaModalText {
    width: 100%;
    height: auto;
  }

  /* CARDS - Stack vertical en tablets */
  .infografiaCards {
    flex-direction: column;
    gap: 24px;
  }

  .infografiaCard {
    width: 100%;
  }

  .infografiaCardContent {
    padding: 32px;
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  
  .infografiaTitle {
    font-size: 24px;
    line-height: 32px;
    margin-top: 32px;
  }

  .infografiaTabButton {
    font-size: 16px;
    padding: 10px 0;
  }

  .infografiaContent {
    padding: 16px;
  }

  .infografiaDescription {
    font-size: 14px;
    line-height: 22px;
  }

  /* BOTONES - Más pequeños en mobile */
  .infografiaButtons {
    gap: 12px;
    flex-wrap: wrap;
  }

  .infografiaButton {
    width: 48px;
    height: 48px;
  }

  .infografiaButtonIcon {
    width: 32px;
    height: 32px;
  }

  /* HOTSPOTS - Más pequeños en mobile */
  .infografiaHotspot {
    width: 28px;
    height: 28px;
  }

  .infografiaHotspotTooltip {
    display: none !important;
  }

  /* MODAL - Pantalla completa en móviles */
  .infografiaModal {
    align-items: flex-start;
    overflow-y: auto;
  }

  .infografiaModalCard {
    width: 95%;
    max-height: 80vh;
    border-radius: 16px;
    margin-top: 100px;
    margin-bottom: 40px;
  }

  .infografiaModalContent {
    padding: 48px 16px 24px;
    gap: 24px;
  }

  .infografiaModalImage img {
    max-width: 240px;
  }

  #modalTitle {
    font-size: 24px;
    line-height: 32px;
  }

  .infografiaModalDescription {
    font-size: 14px;
    line-height: 22px;
    padding-top: 16px;
  }

  .infografiaModalClose {
    width: 32px;
    height: 32px;
    top: 12px;
    right: 12px;
  }

  /* CARDS */
  .infografiaCardContent {
    padding: 24px;
  }

  .infografiaCardTitle {
    font-size: 22px;
  }

  .infografiaCardText {
    font-size: 14px;
  }

  .linkInfografiaPrimary {
    font-size: 14px;
    line-height: 24px;
  }
}