:root {
    --color-red: #ff0000;
    --color-orange: #ff7f00;
    --color-yellow: #ffff00;
    --color-green: #00ff00;
    --color-blue: #0000ff;
    --color-indigo: #4b0082;
    --color-violet: #9400d3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Fira Code", monospace;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh !important;
    background: #181818;
    background-size: 1200% 1200%;
    background-attachment: fixed;
    background-repeat: no-repeat;
}


/* ----------------------------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------------------------------- */
/* ------------------------------------------ HEADER --------------------------------------------- */
/* ----------------------------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------------------------------- */

header {
    min-height: 80px;
    width: 100%;
    background: #1f1f1f;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

nav {
    width: 100%;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
}

nav ul li a {
    color: #aaa;
    text-decoration: none;
    font-size: 1.2em;
    padding: 5px 10px 15px;
    position: relative;
    transition: color 0.3s ease-in-out, font-weight 0.3s ease-in-out;
    align-items: center;
    justify-content: center;
}

nav ul li:not(:first-child) a:hover {
    color: #fff;
    font-weight: bold;
}

nav ul li:not(:first-child) a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(
        to right,
        var(--color-red),
        var(--color-orange),
        var(--color-yellow),
        var(--color-green),
        var(--color-blue),
        var(--color-indigo),
        var(--color-violet),
        var(--color-red)
    );
    background-size: 200% 100%;
    animation: rainbowBorder2 2s linear infinite;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

nav ul li:not(:first-child) a:hover::after {
    opacity: 1;
}

@keyframes rainbowBorder2 {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 0%;
    }
}

/* ----------------------------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------------------------------- */
/* ------------------------------------------ FOOTER --------------------------------------------- */
/* ----------------------------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------------------------------- */

.h1-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    align-items: center;
    justify-content: center;
}

footer {
    width: 100%;
    background: #1f1f1f;
    color: white;
    text-align: center;
    padding: 10px 0;
}

footer p {
    margin-top: 30px;
}

footer h3 {
    margin-bottom: 20px;
}

.nav-footer ul li a:hover {
    color: #fff;
    font-weight: bold;
}

.nav-footer ul li a:hover::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(
        to right,
        var(--color-red),
        var(--color-orange),
        var(--color-yellow),
        var(--color-green),
        var(--color-blue),
        var(--color-indigo),
        var(--color-violet),
        var(--color-red)
    );
    background-size: 200% 100%;
    animation: rainbowBorder2 2s linear infinite;
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
}

.nav-footer ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 3px;
    border-radius: 2px;
    background: transparent;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

/* ----------------------------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------------------------------- */
/* ------------------------------------------ DISEÑO --------------------------------------------- */
/* ----------------------------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------------------------------- */

main {
    display: flex;
    flex-direction: column !important;
    min-height: 70vh;
    gap: 20px;
    padding: 20px;
    flex: 1 0 auto !important;
}

.horizontal-container {
    display: flex;
    justify-content: center;
    align-items: stretch !important;
    gap: 40px;
    width: 100%;
    max-width: 1300px;
    min-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
    padding: 40px 20px; 
    height: 100%;
}

.card, .map-container {
    flex: 1 1 400px;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    height: 520px;
}

.row {
    display: flex;
    justify-content: space-between !important;
    align-items: center;
    margin-bottom: 8px;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
    position: relative;
}

#map {
    width: 100%;
    height: 100%;
    filter: saturate(1.5) brightness(1.1);
}

.leaflet-bottom.leaflet-right {
    display: none !important;
}














.card h2 {
    text-align: center;
    font-size: 1.6em;
    color: #ffffff;
    margin-bottom: 15px;
}

.card section h3 {
    font-size: 1.2em;
    color: #cccccc;
    margin-bottom: 10px;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

.card .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card .label {
    color: #a0a0a0;
    font-weight: 500;
}

.card .value {
    color: #ffffff;
    font-weight: 600;
    text-align: right;
    max-width: 60%;
    overflow-wrap: break-word;
}

.card input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #333;
    background: #2a2f3a;
    color: #fff;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    margin-top: -10px;
}

.card input:focus {
    border-color: #4cafef;
    box-shadow: 0 0 6px rgba(76, 175, 239, 0.5);
}



@media (max-width: 500px) {
    .card {
        max-width: 100%;
        padding: 20px;
    }

    .card .row {
        flex-direction: column;
        align-items: flex-start;
    }

    .card .value {
        text-align: left;
        max-width: 100%;
        margin-top: 4px;
    }
}

.card {
    background: #282828;
    padding: 30px 25px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card #download-btn {
    font-size: 14px;
    color: rgb(255, 255, 255);
    font-weight: 800;
    background: linear-gradient(90deg,
    rgb(84, 253, 0),
    rgb(0, 255, 166),
    rgb(0, 217, 255),
    rgb(55, 255, 0)
    );
    border-radius: 5px;
    border: none;
    padding: 8px 16px;
    box-shadow: 0px 35px 20px 0 rgba(0,0,0,0.05);
    outline: none;
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: transform 300ms ease, box-shadow 300ms ease, background 0.3s ease;
    margin-top: -12px;
}

.card #download-btn:hover,
.card #download-btn:focus {
    box-shadow: 0px 10px 20px 0 rgba(0,0,0,0.4);
    transform: scale(1.03);
    background-color: rgba(0,0,0,0.15);
}
