:root {
    --main-color: cornflowerblue;
    --card-background: #ffffff;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    background-color: #f5f5f5;
}

.lista{
   padding: 20px;
   margin-bottom: 30px;
}

h1 {
    text-align: center;
    color: #333;
}

.resume {
    text-align: center;
    padding: 20px;
    background: #e0eff9;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.resume p{ margin: 0;}

.search-form {
    text-align: center;
    padding: 20px;
    margin: 10px;
}

.search-form label {
    margin-right: 10px;
    font-size: 1.2em;
}

.search-form select {
    margin-right: 10px;
    padding: 5px;
    font-size: 1em;
}

.search-button {
    padding: 20px 20px;
    font-size: 1.8em;
    background-color: var(--main-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 80%;
    margin-top: 20px;
}

.search-button:hover {
    background-color: var(--main-color);
}

.station {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.station h2 {
    margin: 0;
    font-size: 1.2em;
    display: flex;
    justify-content: space-between;
}

.icon {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.details {
    display: flex;
    align-items: center;
}


.details p {
    margin: 5px 0;
    color: #555;
}


.location-button {
    background-color: var(--main-color);
    padding: 5px;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    margin-bottom: 15px;

}

.order{
    display: flex;
    justify-content: space-between;
}

.location-button:hover {
    background-color:  var(--main-color);
}

.geo-icon {
    width: 30px;
    height: 30px;
}

.elcaro{background-color:red; color: white; font-weight: bold;}
.caro{color:red}
.medio{color:orange}
.barato{color:green}
.elbarato{background-color:green; color: white; font-weight: bold;}

.ico-text {
    min-width: 50px;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ccc;
    overflow: hidden; 
    text-align: center; 
    font-size: 8px; 
    line-height: 1.2;
    margin-right: 10px;
}

.head{
    margin: 20px 5px;
    display: flex;
    padding: 10px;
    border: white solid 1px;
    border-radius: 5px;
}

.head img{
    width: 60px;
    height: 60px;
    margin-top: 15px;
}

.head h1{
    font-size: 1.5em;
    width: 100%;
    color:  var(--main-color);
}


footer{
    height: 30px;
    width: 100%;
    margin: 0;
    position: fixed;
    bottom: 0;
    background-color:  var(--main-color);
    color: white;
    z-index: 2;

}

.cont-footer{
    font-weight: bold;
    max-width: 500px;
    margin: auto;
    text-align: center;
    padding: 5px;
    display: flex;
    justify-content: space-between;
    color: white;
}

.cont-footer a{
    color: white;
}

.main{
    padding: 30px;
}

.cargando{
    text-align: center;
    width: 300px;
    height: 80px;
    margin: auto;
    border-radius: 50px;
    background-color: white;
}
.cargando img{
    text-align: center;
    height: 80px;
    width: 240px;
}

/* Estilos para el modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10;
    overflow: auto;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--card-background);
    margin: auto;
    width: 90%;
    max-width: 400px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
    animation: modalAnimation 0.3s;
}

@keyframes modalAnimation {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.2em;
    color: var(--main-color);
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #777;
    padding: 0;
    line-height: 1;
}

.modal-body {
    padding: 20px;
}

.share-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: var(--border-radius);
    color: white;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
    width: 93%;
    font-size: 1em;
    transition: opacity 0.3s;
}

.share-button:hover {
    opacity: 0.9;
}

.whatsapp-button {
    background-color: #25D366;
}

.copy-link-container {
    display: flex;
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.link-input {
    flex-grow: 1;
    padding: 12px;
    border: none;
    font-size: 0.9em;
    color: #555;
    background-color: #f9f9f9;
}

.copy-button {
    background-color: var(--main-color);
    color: white;
    border: none;
    padding: 0 15px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 0.3s;
}

.copy-button:hover {
    background-color: var(--secondary-color);
}

.copied-message {
    display: none;
    color: var(--success-color);
    text-align: center;
    margin-top: 10px;
    font-weight: 500;
}

/* Asegurarse de que el modal esté por encima del footer */
footer {
    z-index: 5;
}

/* Universal Loader Styles */
.universal-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-content {
    background-color: white;
    padding: 40px 50px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    max-width: 300px;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--main-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-content p {
    font-size: 1.2em;
    color: #333;
    margin: 10px 0;
    font-weight: 600;
}

.loader-content small {
    font-size: 0.9em;
    color: #777;
    display: block;
    margin-top: 10px;
}