/*Map Css Style*/
.M03{
    overflow: hidden;
}

.M03 .superiorPart,
.M03 .changeState{
    z-index: 3;
    position: relative;
}

.M03 #zoom-bar,
.M03 #move-pad{
    z-index: 3;
}

.M03 .contGeneral{
    padding-top: 74px;
    padding-bottom: 48px;
    position: relative;
}

.M03 .map-container{
    min-height: 564px;
}

.M03 .downControls{
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

.M03 .downControls .changeState{
    margin: 0 auto;
}

.M03 .downControls #move-pad{
    margin: 0 auto;
}

.M03 .contDown .mapControls{
    display: flex;
    flex-direction:column;
    align-items: flex-end;
}

.M03 .contDown .changeState{
    display: flex;
    justify-content: center;
    width: 100%;
    position: absolute;
    top: -20px;
}

.M03 .superiorPart::after{
    background: radial-gradient(35.87% 50% at 50% 63.1%, rgba(237, 242, 254, 0.80) 31.78%, rgba(255, 255, 255, 0.00) 100%);
    content: '';
    position: absolute;
    top: -84%;
    left: 3%;
    width: 100%;
    height: 350%;
    z-index: -1;
    transform: rotate(180deg);
}

.M03 .contGeneral .title *,
.M03 .contGeneral .title{
    color: #03F;
    text-align: center;
    margin-bottom: 21px;
    font-family: "FS Emeric";
    font-size: 38px;
    font-style: normal;
    font-weight: 350;
    line-height: 100%; /* 38px */
    letter-spacing: -0.45px;
}

/* === TAB BUTTONS === */
.M03 .tab-buttons {
    display: flex;
    gap: 8px;
    margin: 20px 0;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 41px;
}

.M03 .tab-buttons button {
    padding: 6px 12px 4px 12px;
    border: 1px solid #3869FF;
    border-radius: 4px;
    background: transparent;
    color: #3869FF;
    font-family: "FS Emeric";
    font-size: 14px;
    font-style: normal;
    font-weight: 450;
    line-height: 100%;
    transition: all .3s linear;
}

.M03 .tab-buttons button:hover {
    background: #C3D1FC;
}

.M03 .tab-buttons button .closeIcon{
    content: '';
    width: 9px;
    height: 9px;
    position: absolute;
    right: 11px;
    top: 36%;
    opacity: 0;
    object-fit: cover;
}

.M03 .tab-buttons button.active .closeIcon{
    opacity: 1;
}

.M03 .tab-buttons button.active {
    padding-right: 27px;
    background: #698FFF;
    color: white;
    border-color: #698FFF;
}

/* Tooltip styles for tab buttons */
.M03 .tab-buttons button {
    position: relative;
}

/*Accesible States Btn*/
.M03 .tab-buttons button:focus,
.M03 .tab-buttons button:focus-visible {
    outline: 3px solid #0033FF;
    outline-offset: 3px;
    border-radius: 4px;
}

/* === MAP & CARDS TOGGLE === */
.M03 .changeState {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    justify-content: center;
}

.M03 .changeState button {
    padding: 8px 9.45px;
    border: unset;
    background: transparent;
    color: #0033FF;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    border-radius: 49px;
    z-index: 1;
    position: relative;
}

.M03 .changeState button svg{ transition: all .3s linear; }

.M03 .changeState button:not(.active):hover svg { fill: #6B8FFF; }
.M03 .changeState button svg path { stroke:#6B8FFF }
.M03 .changeState button.active svg path { stroke:#FFF; }

.M03 .changeState button.active svg { fill: #FFF; }

.M03 .changeState .contTabs{
    width: fit-content;
    border-radius: 41px;
    background: #FFF;
    box-shadow: 0 0 6.3px 0 rgba(0, 51, 255, 0.25);
    padding: 2px;
    position: relative;
}

.M03 .changeState .contTabs .dot{
    border-radius: 100px;
    background-color: #0033FF;
    content: '';
    position: absolute;
    left: 2px;
    top: 2px;
    width: 45%;
    height: 90%;
    transform: translateX(0%);
    transition: all .3s linear;
    z-index: 0;
}

.M03 .changeState .contTabs:has(.map-change.active) .dot {
  transform: translateX(0%);
}

.M03 .changeState .contTabs:has(.cards-change.active) .dot {
  transform: translateX(110%);
}

/*Zoom Bar*/
.M03 #zoom-bar {
    border-radius: 41px;
    background: #FFF;
    box-shadow: 0 0 6.3px 0 rgba(0, 51, 255, 0.25);
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    border-radius: 50px;
    width: fit-content;
    height: 324px;
    top: 50%;
    transform: translateY(-50%);
}

.M03 #zoom-bar button {
    border: none;
    color: white;
    width: 32px;
    min-height: 32px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: 0.2s;
    background: transparent;
    padding: 4px;
    transition: all .3s linear;
}

.M03 #zoom-bar button#zoom-in{ margin: 0 0 4px 0; }
.M03 #zoom-bar button#zoom-out{ margin: 4px 0 0 0; }

.M03 .move-btn:hover,
.M03 #zoom-bar button:hover {
    background: #698FFF;
    box-shadow: 0 0 6.3px 0 rgba(0, 51, 255, 0.25);
}

.M03 .move-btn:hover:active,
.M03 #zoom-bar button:active{ opacity: 0.6; }

.M03 .move-btn:hover svg path,
.M03 #zoom-bar button:hover svg path { stroke: white; }

.M03 .move-btn:focus,
.M03 .move-btn:focus-visible,
.M03 #zoom-bar button:focus,
.M03 #zoom-bar button:focus-visible {
    outline: 2px solid #3869FF;
    outline-offset: 3px;
    border-radius: 1000px;
}

/* === Zoom personalizado === */
.M03 #zoom-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 10;
}


.M03 .zoom-slider-wrapper {
  position: relative;
  width: 1px;
  height: 100%;
  background: #dce4ff;
  border-radius: 10px;
  overflow: visible;
  cursor: pointer;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.15);
}
.M03 .zoom-slider-wrapper .fill {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, #6b8fff 0%, #3b65ff 100%);
  border-radius: 10px;
}
.M03 .zoom-slider-wrapper .thumb {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: #0033ff;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.25);
}

input[type="range"] {
  display: none;
}
/**************/

/*Move control*/
.M03 #move-pad {
    height: 70px;
    min-width: 70px;
    width: 70px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    position: absolute;
    right: 0;
    bottom: 0;
}

.M03 #move-pad::after{
    position: absolute;
    width: 100%;
    height: 100%;
    /* padding: 2px; */
    content: '';
    background-color: white;
    border-radius: 17px;
    background: #FFF;
    box-shadow: 0 0 6.3px 0 rgba(0, 51, 255, 0.25);
    transform: rotate(45deg);
    z-index: -1;
    top: 1px;
    left: 0px;
}

.middle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 5.5px
}

.move-btn {
  background: white;
  border: 1px solid #6B8FFF;
  color: #3366ff;
  border-radius: 50%;
  min-width: 24px;
  min-height: 24px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 0 10px rgba(51,102,255,0.1);
  pointer-events: auto;
}

.center-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3366ff;
  opacity: 0.7;
}

/* === MAP CONTAINER === */
.M03 .map-container {
    margin: 20px 0;
    width: 100%;
}

.M03 #chartdiv {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* === CARDS STYLING === */
.M03 .cards-container {
    margin: 20px 0;
    max-width: 843px;
    width: 100%;
    margin: 0 auto;
}

.M03 .cards {
    overflow: auto;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 26px 0 0 0;
    max-height: 650px;
    height: 650px;
    align-items: start;
    align-content: flex-start;
}

/*Cards!!*/
.M03 .card {
    flex: 0 1 31.7%;
    background-size: auto;
    position: relative;
    display: block;
    padding: 20px;
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    filter: grayscale(1);
}

.M03 .cards::-webkit-scrollbar {
    width: 3px;              /* grosor vertical */
    height: 3px;             /* grosor horizontal */
    border-radius: 5px;
}

.M03 .cards::-webkit-scrollbar-track {
    background: transparent; /* fondo del track */
}

.M03 .cards::-webkit-scrollbar-thumb {
    background-color: #03F;  /* color del scroll */
    border-radius: 10px;     /* esquinas redondeadas */
}

.M03 .cards {
    scrollbar-width: thin;
    scrollbar-color: #03F transparent;
}


@media (max-width: 992px) {
    .M03 .card {
        flex: 0 1 48%;
    }
}

@media (max-width: 768px) {
    .M03 .card {
        flex: 0 1 100%;
    }
}

.M03 .card:hover {
    filter: unset;
}

.M03 .card .card-content {
    cursor: pointer;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction:column;
    justify-content: space-between;
}

.M03 .card .card-content .title{
    font-family: "FS Emeric";
    font-weight: 350;
    font-size: 12px;
    line-height: 120%;
    letter-spacing: 0.25px;
    color: #FFF;
    margin: 0 0 4px 0;
    text-align: unset;
    text-transform: unset;
}

.M03 .card .card-content .subtitle{
    color: #FFF;
    font-family: "FS Emeric";
    font-size: 20px;
    font-style: normal;
    font-weight: 450;
    line-height: 110%; /* 22px */
    letter-spacing: -0.25px;
    margin-bottom: 0;
}

.M03 .card::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 72%,
        rgba(0, 51, 255, 0.3) 77%,
        rgba(0, 51, 255, 0.6) 82%,
        rgba(0, 51, 255, 0.9) 90%,
        rgba(0, 51, 255, 1) 100%
    );
    cursor: pointer;
}

.M03 .card-content .arrow {
    width: 20px;
    height: 20px;
    display: block;
    position: relative;
    z-index: 2;
    overflow: hidden;
    margin-left: auto;
}

.arrow img{
    transition: all .3s;
}

.arrow img:first-of-type {
    right: 0;
}

.arrow img:last-of-type {
    right: -40px;
}

.arrow img:first-of-type,
.arrow img:last-of-type {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    transition: all 0.2s ease-in;
    object-fit: contain;
}

@media screen and (min-width: 992px) {
    .card:hover img:first-of-type {
        right: 30px;
    }

    .card:hover img:last-of-type {
        right: 0;
    }
}


.M03 .card-content {
    position: relative;
    z-index: 2;
    color: white;
}

.M03 .tab-buttons .contBtn {
    position: relative;
    overflow: visible;
}

.M03 .tab-buttons .hideHoverData {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(75, 79, 84, 0.85);
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: "FS Emeric";
    font-weight: 350;
    font-size: 14px;
    line-height: 1.3;
    box-sizing: border-box;
    opacity: 0;
    z-index: 1000;
    
    width: max-content;     /* se ajusta al texto */
    max-width: 225px;       /* no supera 225px */
    min-width: fit-content; /* no se aplasta más que su texto */
    
    white-space: normal;       
    overflow-wrap: anywhere;  
    word-break: break-word;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: opacity 0.15s ease-in-out, transform 0.15s ease-in-out;
}

.M03 .tab-buttons .hideHoverData * {
    color: #fff;
    border-radius: 4px;
    font-family: "FS Emeric";
    font-weight: 350;
    font-size: 14px;
    line-height: 1.3;
    margin: 0;
}

.M03 .tab-buttons .contBtn:hover .hideHoverData {
    opacity: 1;
    transform: translateX(-50%) translateY(4px);
}

.M03 .helpButton{
    display: none;
}

.M03 .infoData{
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}


/* === RESPONSIVE === */
@media (max-width: 992px) {
    .M03 .cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .M03 .card {
        height: 240px;
    }
    
    .M03 .card-content h3 {
        font-size: 18px;
    }
    
    .M03 .changeState {
        flex-direction: column;
        align-items: center;
    }
    
    .M03 .changeState button {
        width: fit-content;
    }
    
    .M03 .tab-buttons {
        flex-direction: row;
        gap: 8px;
        justify-content: flex-start;
    }
    
    .M03 .tab-buttons button {
        width: fit-content;
    }

    .M03 .zoom-slider-wrapper{
        display: none;
    }

    .M03 #zoom-bar{
        height: fit-content;
        gap: 0;
    }

    .M03 #zoom-bar button#zoom-out,
    .M03 #zoom-bar button#zoom-in{
        margin: 0;
    }

    .M03 .map-container{
        min-height: 400px;
        max-height: 400px;
        position: relative;
    }

    .M03 .downControls #move-pad{
        margin-right: 10px!important;
    }

    .M03 .tab-buttons .hideHoverData{
        display: none!important;
    }

    .M03 .tab-buttons{
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 767px){
    .M03 .contGeneral{
        padding-bottom: 70px;
    }

    .M03 .map-container{
        margin: 20px 0 60px 0;
    }

    .M03 .tab-buttons{
        max-width: 500px;
        width: 100%;
    }

    .M03 .iconModal{
        display: flex;
        width: 20px;
        height: 20px;
        padding: 6px;
        justify-content: center;
        align-items: center;
        gap: 4px;
        border-radius: 54px;
        border: 1px solid #698FFF;
        position: relative;
        background-color: white;
    }

    .M03 .modal{
        position: absolute;
        top: 45%;
        right: -20px;
        transform: translateX(-15%);
        background: rgba(75, 79, 84, 0.85);
        color: #fff;
        padding: 8px 12px;
        border-radius: 4px;
        font-family: "FS Emeric";
        font-weight: 350;
        font-size: 14px;
        line-height: 1.3;
        box-sizing: border-box;
        z-index: 1000;
        width: max-content;
        max-width: 225px;
        min-width: fit-content;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
        text-align: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        transition: opacity 0.15s
        ease-in-out, transform 0.15s
        ease-in-out;
    }

    .M03 .helpButton .modal .elems{
        margin-bottom: 20px;
    }

    .M03 .helpButton .modal .elems:last-of-type{
        margin-bottom: 0;
    }

    .M03 .helpButton .modal .elems .title{
        color: #FFF;
        font-family: "FS Emeric";
        font-size: 14px;
        font-style: normal;
        font-weight: 450;
        line-height: 100%;
        margin-bottom: 8px;
    }

    .M03 .helpButton .modal .elems p{
        color: #ECECEC;
        font-family: "FS Emeric";
        font-size: 14px;
        font-style: normal;
        font-weight: 350;
        line-height: 120%; /* 16.8px */
        margin: 0;
        text-align: left;
    }

    .M03 .contTabsHelp{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 48px;
    }

    .M03 .helpButton{
        display: block;
    }

    .M03 .tab-buttons{
        margin-top: 0;
    }

    .M03 .contGeneral .title *,
    .M03 .contGeneral .title{
        color: #03F;
        font-family: "FS Emeric";
        font-size: 28px;
        font-style: normal;
        font-weight: 350;
        line-height: 120%;
        letter-spacing: -0.25px;
        text-align: left;
        margin-bottom: 21px;
    }

    .M03 .tab-buttons .contBtn:hover .hideHoverData{
        display: none;
    }

    .M03 .superiorPart::after{ display: none; }

    .M03 .superiorPart{ padding: 0 10px; }
}
