/* =========================================================
   Transformador de Coordenadas — Estilos
   ========================================================= */

/* Tipografía y colores base */
.tc-titulo {
    color: #000;
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 32px;
    letter-spacing: .02em;
    line-height: 1.3em;
    text-transform: none;
}

.tc-subtitulo {
    font-size: 16px;
    color: #777;
    margin-bottom: 30px;
}

/* Panel del formulario */
.tc-panel {
    background: #fff;
    border: 1px solid #dde2e8;
    border-radius: 6px;
    padding: 28px 30px 20px;
    margin-bottom: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
}

.tc-panel-titulo {
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #159bd7;
    border-bottom: 2px solid #e8f6fc;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

/* Labels */
.tc-label {
    font-size: 16px;
    font-weight: 400;
    color: #444;
    margin-bottom: 5px;
    display: block;
}

.texto-obligatorio {
    color: #c0392b;
    margin-left: 2px;
}

/* Inputs */
.tc-input {
    height: 38px;
    border-radius: 4px;
    border: 1px solid #ccd2d8;
    font-size: 14px;
    padding: 6px 12px;
    width: 100%;
    transition: border-color .2s;
}
.tc-input:focus {
    border-color: #159bd7;
    outline: none;
    box-shadow: 0 0 0 2px rgba(21,155,215,.18);
}

/* Select */
.tc-select {
    height: 38px;
    border-radius: 4px;
    border: 1px solid #ccd2d8;
    font-size: 14px;
    padding: 0 12px;
    width: 100%;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M0 0l6 7 6-7z' fill='%23999'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}
.tc-select:focus {
    border-color: #159bd7;
    outline: none;
    box-shadow: 0 0 0 2px rgba(21,155,215,.18);
}

/* Botón principal */
.tc-btn-transformar {
    background-color: #159bd7;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 32px;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    transition: background-color .2s;
    display: block;
    width: 100%;
}
.tc-btn-transformar:hover {
    background-color: #1180b4;
}
.tc-btn-transformar:disabled {
    background-color: #93c9e5;
    cursor: not-allowed;
}

/* Icono de flecha entre datums */
.tc-arrow {
    text-align: center;
    font-size: 26px;
    color: #159bd7;
    padding: 10px 0;
    line-height: 1;
}

/* Jumbotron de resultados */
.tc-resultados {
    background: linear-gradient(135deg, #e8f6fc 0%, #f0f9ff 100%);
    border: 1px solid #aadcf2;
    border-radius: 6px;
    padding: 28px 30px;
    margin-bottom: 30px;
}

.tc-resultados-titulo {
    font-size: 18px;
    font-weight: 400;
    color: #116f9f;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tc-resultados-titulo .glyphicon {
    font-size: 20px;
    color: #27ae60;
}

.tc-resultado-grupo {
    background: #fff;
    border-radius: 5px;
    border: 1px solid #cde8f5;
    padding: 16px 20px;
    margin-bottom: 14px;
}

.tc-resultado-grupo-titulo {
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #159bd7;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e0f0fa;
}

.tc-resultado-datum {
    font-size: 16px;
    color: #555;
    margin-bottom: 8px;
}
.tc-resultado-datum strong {
    color: #2c3e50;
}

.tc-resultado-coord {
    font-size: 15px;
    font-weight: 400;
    color: #2c3e50;
    margin-bottom: 4px;
}

.tc-resultado-coord-label {
    font-size: 12px;
    color: #888;
    font-weight: 400;
    margin-left: 4px;
}

.tc-badge-valido {
    display: inline-block;
    background: #27ae60;
    color: #fff;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 400;
    padding: 2px 8px;
    margin-left: 8px;
    vertical-align: middle;
}

/* Separador con texto */
.tc-sep {
    text-align: center;
    margin: 14px 0;
    position: relative;
}
.tc-sep::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #cde8f5;
}
.tc-sep span {
    position: relative;
    background: #e8f6fc;
    padding: 0 10px;
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Loader overlay */
#tc-loader {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
#tc-loader.activo {
    display: flex;
}
.tc-spinner {
    width: 48px;
    height: 48px;
    border: 5px solid #cde8f5;
    border-top-color: #159bd7;
    border-radius: 50%;
    animation: tc-spin .8s linear infinite;
}
@keyframes tc-spin {
    to { transform: rotate(360deg); }
}

/* Ayuda datum */
.tc-ayuda {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
    display: block;
}

/* Responsive ajustes */
@media (max-width: 767px) {
    .tc-panel {
        padding: 18px 14px;
    }
    .tc-resultados {
        padding: 18px 14px;
    }
    .tc-arrow {
        transform: rotate(90deg);
    }
}

.hide {
    display: none !important;
}

.tc-res-datum-destino, .tc-res-datum-origen {
    font-weight: 500;
}