/* MAPA ESTILOS DE PRUEBA */
.hero {
    display: flex;
    /* flex-direction: column; */
    min-height: 100vh;
    padding: 0px 0px;
    justify-content: end;
    /* background: linear-gradient(to bottom, #f5f7fa, #ffffff); */
    align-items: center;
    position: relative;
}

.panelIzq {
    position: absolute;
    width: 70%;
    left: 0;
    margin-left: 0;
    display: flex;
}

.panelDer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    right: 5%;
    padding-top: 180px;
    text-align: center;
    min-width: max-content;
}

.title {
    margin-bottom: 30px;
    text-align: center;
}

.title span {
    display: block;
    color: #0e253a;
    font-family: Montserrat, sans-serif;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.subtitulo {
    font-size: 52px;
    font-weight: 600;
    color: var(--gold-maderas);
    margin: 0 0 8px 0;
    line-height: 1.1;
}

.leyenda {
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    color: var(--gold-maderas);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    text-align: right;
    max-width: 320px;
    width: fit-content;
    margin-left: anchor-size(230px);
}

.search-and-results {
    width: 100%;
    max-width: 600px;
    position: relative;
}

.buscador {
    display: flex;
    align-items: center;
    width: 5000px;
    max-width: 100%;
    margin: 0 auto 20px auto;
    border: 1px solid #707070;
    border-radius: 50px;
    padding: 8px 16px;
    background-color: #ffffff;
    box-sizing: border-box;
    box-shadow: 0px 3.60248px 5.31366px 0.900621px rgba(0, 0, 0, 0.25);

}

.search-input {
    border: none;
    outline: none;
    flex-grow: 1;
    font-size: 16px;
    font-family: Montserrat, sans-serif;
    color: #333;
    background-color: transparent;
    font-weight: bold;
}

.search-input::placeholder {
    color: #5a5a5a;
}

.search-button {
    background-color: #1a4277;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
    flex-shrink: 0;
}

.search-button:hover {
    background-color: #0b3a82;
}

.search-icon {
    width: 20px;
    height: 20px;
    stroke: white;
    stroke-width: 2.5;
    fill: none;
}

.suggestions {
    list-style: none;
    padding: 0;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    display: none;
    margin-top: 20px;
}

.suggestions li {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid #eee;
}

.suggestions li:last-child {
    border-bottom: none;
}

.suggestions li:hover {
    background: #f0f0f0;
}

.result-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    word-break: break-word;
    border: 1px solid #707070;
    transition: transform 0.2s, box-shadow 0.2s;
    ;
}

.result-header {
    font-size: 18px;
    font-weight: bold;
    color: #0e253a;
    margin-bottom: 8px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    font-family: Montserrat-ExtraBold, sans-serif;

}

.result-section {
    margin-bottom: 12px;
}

.result-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.result-text {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    white-space: normal;
    text-align: left;
}

.result-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: 400px;
    margin: 1px auto 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
    box-sizing: border-box;
    z-index: 5;
}

.cantidades {
    display: none;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    margin-top: 280px;
    text-align: left;
    justify-content: center;
}

.cantidades-mobile {
    display: flex !important;
}

.stat-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
}

.stat-item-mobile {
    display: flex;
    gap: 0.5rem;
}

.cant-down .big-number {
    font-size: 18px !important;
}

.cant-down .office-text,
.cant-down .highlight {
    font-size: 8px !important;
}

.big-number {
    font-family: Montserrat-Bold, sans-serif;
    font-size: 28px;
    line-height: 1;
    color: #0e253a;
    margin: 0;
    flex-shrink: 0;
    letter-spacing: -2px;
}

.text-group {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
    padding-top: 1px;
}

.office-text {
    font-family: Montserrat-Bold, sans-serif;
    white-space: nowrap;
    font-size: 11px;
    line-height: 1;
    color: var(--gold-maderas);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.clients {
    font-family: Montserrat, sans-serif;
    font-size: 11px;
    line-height: 1;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #0e253a;
}

.highlight {
    font-family: Montserrat, sans-serif;
    font-size: 11px;
    line-height: 1;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #0e253a;
}

.satisfied {
    font-family: Montserrat-Bold, sans-serif;
    white-space: nowrap;
    font-size: 11px;
    line-height: 1;
    color: var(--gold-maderas);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.globe-img {
    width: 100%;
    display: block;
}

.map-container {
    position: relative;
    width: 100%;
    display: block;
}

.map-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 34%;
    left: 15.7%;
    transform: scale(1.3);
    transform-origin: center;
}

.map-overlay path {
    fill: rgb(57 119 26 / 0);
    cursor: pointer;
    transition: fill 0.3s ease;
}

.map-overlay path:hover {
    fill: rgba(0, 102, 204, 0.35);
    stroke: #0066cc;
}

.map-desktop {
    display: block;
}

.map-movil {
    display: none;
}

.cloud.c-left-1,
.cloud.c-left-2,
.cloud.c-left-3,
.cloud.c-right-1,
.cloud.c-right-2,
.cloud.c-right-3,
.clouds-transition,
.clouds-transition-up {
    display: none;
}

/* FIN ESTILOS MAPA PRUEBA */

/* PANTALLAS DE PC PEQUEÑAS */
@media (max-width: 1300px) {
    .panelIzq {
        width: 50%;
        margin-left: 0;
        margin-top: 0;
        display: flex;
    }

    .cantidades {
        margin-top: 250px;
    }

    .buscador {
        display: flex;
        align-items: center;
        max-width: 100%;
        margin: 0 auto 20px auto;
        border: 1px solid #707070;
        border-radius: 50px;
        padding: 8px 16px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        background-color: #ffffff;
        box-sizing: border-box;
    }

    .title span {
        font-size: 13px;
    }

    .stat-item {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 15px;
    }

    .big-number {
        font-size: 20px;
    }

    .office-text {
        font-size: 8px;
    }

    .highlight {
        font-size: 8px;
    }

    .subtitulo {
        font-size: 29px;
    }

    .leyenda {
        font-family: Montserrat, sans-serif;
        font-size: 10px;
        color: var(--gold-maderas);
        letter-spacing: 2px;
        text-transform: uppercase;
        margin: 0;
        text-align: right;
        max-width: 320px;
        width: fit-content;
        margin-left: anchor-size(125px);
    }

    .map-container {
        position: relative;
        width: 100%;
        display: block;
    }

    .map-overlay {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 115%;
        left: 126%;
        transform: scale(2.9);
        transform-origin: center;
    }

    .map-overlay path {
        fill: rgb(57 119 26 / 0);
        cursor: pointer;
        transition: fill 0.3s ease;
    }

    .map-desktop {
        display: none;
    }

    .map-movil {
        display: block;
    }
}

/* TABLETS Y IPADS */
@media (min-width: 601px) and (max-width: 992px) {
    .hero {
        flex-direction: column;
        min-height: auto;
        padding: 40px 20px;
        text-align: center;
    }

    .panelDer {
        display: contents;
    }

    .title {
        order: 1;
        width: 100%;
    }

    .panelIzq {
        order: 2;
        width: 100%;
        max-width: none;
        position: relative;
        margin: 20px 0 40px 0;
        left: 35%;
        transform: translateX(-35%);
    }

    .search-and-results {
        order: 3;
        max-width: 100%;
        width: 100%;
    }

    .cantidades {
        order: 4;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }

    .title span {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .subtitulo {
        font-size: 32px;
        margin: 0 0 6px 0;
        line-height: 1.2;
    }

    .leyenda {
        font-size: 12px;
        text-align: center;
        margin: 0 auto;
        max-width: 280px;
    }

    .buscador {
        padding: 12px 16px;
        margin-bottom: 30px;
    }

    .search-input {
        font-size: 16px;
    }

    .search-button {
        width: 40px;
        height: 40px;
    }

    .result-container {
        max-height: 300px;
        margin: 10px auto 0;
    }

    .suggestions {
        margin-top: 10px;
    }

    .stat-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .big-number {
        font-size: 32px;
        letter-spacing: -1px;
    }

    .text-group {
        padding-top: 0;
        gap: 2px;
    }

    .office-text {
        font-size: 13px;
    }

    .highlight {
        font-size: 13px;
    }

    #mapasvg {
        margin-top: 20px;
    }

    .map-desktop {
        display: none;
    }

    .map-movil {
        display: block;
    }

    .cantidades-mobile {
        display: flex;
        flex-direction: column;
    }

    .cantidades {
        display: none;
    }

}

@media (max-width: 768px) {
    .buscador {
        padding: 4px 6px 4px 16px;
    }
    .search-button {
        width: 32px;
        height: 32px;
    }
}

/* PANTALLAS MOVILES */
@media (max-width: 600px) {

    .cantidades-mobile {
        display: flex;
        flex-direction: column;
    }

    .cantidades {
        display: none;
    }

    html,
    body {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        position: relative;
    }

    .hero {
        flex-direction: column;
        min-height: auto;
        text-align: center;
        margin-bottom: 15%;
        padding: 40px 20px;
    }

    .panelDer {
        display: contents;
    }

    .title {
        order: 1;
        width: 100%;
    }

    .panelIzq {
        order: 2;
        width: 110%;
        max-width: none;
        position: relative;
        align-content: center;
        left: 50%;
        transform: translateX(-50%);
    }

    .map-container {
        position: relative;
        width: 100%;
        height: 100vw;
        overflow: visible;
        background: transparent;
    }

    .map-overlay {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 115%;
        left: 119%;
        scale: 2.9;
        transform-origin: center;
        z-index: 5;
    }

    .map-desktop {
        display: none;
    }

    .map-movil {
        display: block;
    }

    .search-and-results {
        order: 3;
        max-width: 100%;
        width: 100%;
        z-index: 2;
    }

    .cantidades {
        order: 4;
        display: none;
        gap: 30px 20px;
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        flex-wrap: wrap;
        padding-top: 20px;
    }

    .cantidades>* {
        flex: 0 0 calc(50% - 20px);
    }

    .title span {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .subtitulo {
        font-size: 32px;
        margin: 0 0 6px 0;
        line-height: 1.2;
    }

    .leyenda {
        font-size: 12px;
        text-align: center;
        margin: 0 auto;
        max-width: 280px;
    }

    .buscador {
        padding: 4px 6px 4px 16px;
        margin-bottom: 10px;
    }
    .search-button {
        width: 32px;
        height: 32px;
    }

    .search-input {
        font-size: 16px;
    }

    .result-container {
        max-height: 300px;
        margin: 10px auto 0;
    }

    .result-card {
        margin-left: 1.5%;
    }

    .suggestions {
        margin-top: 10px;
    }

    .stat-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .big-number {
        font-size: 20px;
        letter-spacing: -1px;
    }

    .text-group {
        padding-top: 0;
        gap: 2px;
    }

    .office-text {
        font-size: 13px;
    }

    .highlight {
        font-size: 13px;
    }

    .globe-img.map-movil {
        position: absolute;
        inset: 0;
        width: 95%;
        height: 100%;
        object-fit: contain;
        margin-left: 7%;
    }

    .cloud {
        display: block !important;
        position: absolute !important;
        pointer-events: none !important;
        z-index: -1 !important;
        width: 35vw;
        max-width: 380px;
        min-width: 200px;
        image-rendering: auto;
        transform: translateZ(0);
    }

    .c-left-1 {
        left: -15%;
        top: 25%;
    }

    .c-left-2 {
        left: -8%;
        top: -15%;
    }

    .c-left-3 {
        left: -5%;
        top: 55%;
    }

    .c-right-1 {
        right: -15%;
        top: 60%;
    }

    .c-right-2 {
        right: -10%;
        top: -5%;
    }

    .c-right-3 {
        right: -20%;
        top: 5%;
    }

    .clouds-transition {
        position: absolute;
        bottom: 400px;
        width: 100%;
        min-height: 300px;
        z-index: 2;
        overflow: hidden;
    }

    .clouds-transition-up {
        position: absolute;
        top: -50px;
        width: 100%;
        min-height: 160px;
        z-index: 0;
    }

    .clouds-divider-full-up {
        position: absolute;
        width: 100%;
        left: 5%;
        object-fit: cover;
        object-position: center top;
        background: transparent;
    }

    .clouds-divider-full {
        position: absolute;
        top: -125px;
        left: 0;
        width: 100%;
        height: 420px;
        object-fit: cover;
        object-position: center top;
        opacity: 0.95;
    }

    #payment-facilities,
    .payment-mobile-box {
        margin-top: -50px;
        position: relative;
        z-index: 1;
    }

    .clouds-transition,
    .clouds-transition-up {
        display: block;
    }

    /* ESTILO DE ANIMACIONES */
    .animate-on-scroll {
        opacity: 0;
        will-change: opacity, transform;
    }

    .fade-only {
        transition: opacity 0.5s ease-in-out;
    }

    .fade-only.is-visible {
        opacity: 1;
    }

    .slide-left {
        transform: translateX(-60px) translateZ(0);
        transition: all 1.5s ease-out;
    }

    .slide-left.is-visible {
        opacity: 1;
        transform: translateX(0) translateZ(0);
    }

    .slide-right {
        transform: translateX(60px) translateZ(0);
        transition: all 1.5s ease-out;
    }

    .slide-right.is-visible {
        opacity: 1;
        transform: translateX(0) translateZ(0);
    }

    .fade-up {
        transform: translateY(30px);
        transition: all 0.8s ease-out;
    }

    .fade-up.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

    .title.animate-on-scroll {
        transition-delay: 0.2s;
    }

    .globe-img.animate-on-scroll,
    .map-overlay.animate-on-scroll {
        transition-delay: 0.9s;
    }

    .search-and-results.animate-on-scroll {
        transition-delay: 0.6s;
    }

    .cantidades.animate-on-scroll {
        transition-delay: 0.8s;
    }
}

@media (min-width: 1px) and (max-width: 399px) {
    .map-container {
        position: relative;
        width: 100%;
        height: 100vw;
        overflow: visible;
        background: transparent;
    }

    .map-overlay {
        position: absolute;
        width: 96%;
        height: 100%;
        top: 101%;
        left: 120%;
        scale: 2.7;
        transform-origin: center;
        z-index: 5;
    }
}

@media (min-width: 400px) and (max-width: 449px) {
    .map-container {
        position: relative;
        width: 100%;
        height: 100vw;
        overflow: visible;
        background: transparent;
    }

    .map-overlay {
        position: absolute;
        width: 96%;
        height: 100%;
        top: 102%;
        left: 120%;
        scale: 2.7;
        transform-origin: center;
        z-index: 5;
    }
}

@media (min-width: 449px) and (max-width: 600px) {
    .map-container {
        position: relative;
        width: 100%;
        height: 100vw;
        overflow: visible;
        background: transparent;
    }

    .map-overlay {
        position: absolute;
        width: 99%;
        height: 100%;
        top: 107%;
        left: 121.5%;
        scale: 2.7;
        transform-origin: center;
        z-index: 5;
    }
}

@media (max-width: 425px) {
    .cantidades {
        padding-top: 20px;
    }
}

@media (max-width: 375px) {
    .cantidades {
        padding-top: 10px;
    }
}

@media (max-width: 375px) {
    .buscador {
        width: 100%;
    }

    .stat-item-mobile .big-number {
        font-size: 20px;
    }

    .office-text {
        font-size: 10px;
    }

    .highlight {
        font-size: 11px;
    }

    .cant-down {
        margin-top: -15px;
    }

    .payment-type-box {
        width: 95% !important;
    }

    .clouds-transition-up {
        top: -50px;
    }
}

@media (max-width: 375px) {
    .payment-type-box {
        width: 100% !important;
        gap: 0rem !important;
    }

    .stat-item-mobile .big-number {
        font-size: 16px;
    }
}