/* ==========================================================================
   ESTILOS PARA UTILIDADES NAÚTICAS
   ========================================================================== */

/* Grid de utilidades */
.utilidades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.utilidad-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.utilidad-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.utilidad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.utilidad-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.utilidad-icono {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
    color: white;
}

.utilidad-titulo {
    color: #2a5298;
    margin: 0;
    font-size: 1.2rem;
    flex: 1;
}

.utilidad-descripcion {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.utilidad-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.btn-acceder {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2a5298;
    font-weight: 600;
    transition: color 0.3s ease;
}

.utilidad-card:hover .btn-acceder {
    color: #1e3c72;
}

/* Estilos para formularios de utilidades */
.formulario-utilidad {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.form-grupo-utilidad {
    margin-bottom: 20px;
}

.form-label-utilidad {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2a5298;
}

.form-input-utilidad, 
.form-select-utilidad {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input-utilidad:focus, 
.form-select-utilidad:focus {
    border-color: #2a5298;
    outline: none;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

.btn-calcular {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.btn-calcular:hover {
    background: linear-gradient(135deg, #2a5298, #3a62a8);
    transform: translateY(-2px);
}

.resultado {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2a5298;
}

.resultado-titulo {
    font-weight: 600;
    color: #2a5298;
    margin-bottom: 10px;
}

.resultado-valor {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e3c72;
}

/* Tabla Beaufort */
.tabla-beaufort {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.tabla-beaufort th {
    background: #2a5298;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.tabla-beaufort td {
    padding: 10px 12px;
    border-bottom: 1px solid #e0e0e0;
}

.tabla-beaufort tr:nth-child(even) {
    background: #f8f9fa;
}

/* Colores para fuerzas Beaufort */
.beaufort-fuerza-0 { background-color: #e8f5e8; }
.beaufort-fuerza-1 { background-color: #d4edda; }
.beaufort-fuerza-2 { background-color: #c3e6cb; }
.beaufort-fuerza-3 { background-color: #b1dfbb; }
.beaufort-fuerza-4 { background-color: #ffeaa7; }
.beaufort-fuerza-5 { background-color: #ffdc7a; }
.beaufort-fuerza-6 { background-color: #ffc048; }
.beaufort-fuerza-7 { background-color: #ffa94d; }
.beaufort-fuerza-8 { background-color: #ff8787; }
.beaufort-fuerza-9 { background-color: #fa5252; }
.beaufort-fuerza-10 { background-color: #e03131; }
.beaufort-fuerza-11 { background-color: #c92a2a; }
.beaufort-fuerza-12 { background-color: #a61e4d; color: white; }

/* Mapa de ubicación */
#mapa-ubicacion {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    margin: 20px 0;
}

.coordenadas-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid #2a5298;
}

/* Estilos específicos para calculadora de hélice */
.slider-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #475569;
    font-weight: 600;
}

input[type="range"] {
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 25px;
    height: 25px;
    background: #2a5298;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Opciones de hélice */
.opciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.opcion-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.opcion-card.recomendada {
    border-color: #27ae60;
    background: linear-gradient(to bottom right, #f0fdf4, #dcfce7);
}

.opcion-badge {
    background: linear-gradient(to right, #27ae60, #2ecc71);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.especificaciones {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.especificaciones .principal {
    font-size: 2rem;
    font-weight: bold;
    color: #2a5298;
    margin-bottom: 5px;
}

.especificaciones .secundario {
    color: #666;
    font-size: 0.9rem;
}

/* Alertas */
.alerta {
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alerta.peligro {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.alerta.advertencia {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.alerta.info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

/* Footer de utilidades */
.utilidades-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    color: #666;
    font-size: 0.9rem;
}

/* Estilos específicos para conversor */
.conversor-container {
    max-width: 1200px;
    margin: 30px auto 40px;
    padding: 0 20px;
}

.titulo-conversor {
    text-align: center;
    margin-bottom: 30px;
    color: #2a5298;
}

.titulo-conversor h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.titulo-conversor p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Tarjeta de conversión principal */
.conversor-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

/* Grid de conversión */
.conversion-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .conversion-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .conversion-grid > div:not(.conversion-arrow) {
        width: 100%;
    }
}

/* Campo de entrada */
.conversion-input-group {
    position: relative;
}

.conversion-input {
    width: 100%;
    padding: 20px;
    font-size: 1.3rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s;
    text-align: center;
    font-weight: 600;
    color: #2a5298;
    background: #f8f9fa;
}

.conversion-input:focus {
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
    outline: none;
    background: white;
}

.conversion-unit {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1rem;
    font-weight: 600;
}

/* Selectores de unidad */
.unit-selector {
    position: relative;
    width: 100%;
}

.unit-selector select {
    width: 100%;
    padding: 20px;
    font-size: 1.1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    appearance: none;
    transition: all 0.3s;
    font-weight: 600;
    color: #2a5298;
}

.unit-selector select:focus {
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
    outline: none;
}

.unit-selector::after {
    content: '▼';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #2a5298;
    pointer-events: none;
    font-size: 0.8rem;
}

/* Flecha de conversión */
.conversion-arrow {
    text-align: center;
    padding: 0 20px;
}

.arrow-icon {
    font-size: 2.5rem;
    color: #2a5298;
    background: linear-gradient(135deg, #e8f4fd, #d4e7fb);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: transform 0.3s;
}

.conversion-arrow:hover .arrow-icon {
    transform: scale(1.1);
}

.arrow-text {
    margin-top: 10px;
    color: #666;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Botón convertir */
.btn-convertir {
    background: linear-gradient(135deg, #2a5298, #1a3a6e);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(42, 82, 152, 0.2);
}

.btn-convertir:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(42, 82, 152, 0.3);
    background: linear-gradient(135deg, #1a3a6e, #2a5298);
}

/* Resultado */
.resultado-conversion {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-top: 40px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.resultado-titulo {
    font-size: 1.1rem;
    margin-bottom: 15px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.resultado-valor {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.resultado-detalle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-top: 10px;
}

/* Comparación de unidades */
.comparacion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.unidad-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
}

.unidad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #2a5298;
}

.unidad-card.recomendada {
    border-color: #27ae60;
    background: linear-gradient(to bottom right, #f0fdf4, #dcfce7);
}

.unidad-icono {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8f4fd, #d4e7fb);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: #2a5298;
    font-size: 1.2rem;
}

.unidad-nombre {
    font-size: 1rem;
    font-weight: 600;
    color: #2a5298;
    margin-bottom: 5px;
}

.unidad-valor {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 5px;
}

.unidad-descripcion {
    font-size: 0.8rem;
    color: #666;
    margin-top: 10px;
}

/* Información de unidades */
.info-unidades {
    margin-top: 50px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.info-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #2a5298;
}

.info-item h4 {
    color: #2a5298;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-item p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Tabla de conversiones comunes */
.tabla-conversiones {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.tabla-conversiones th {
    background: #2a5298;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.tabla-conversiones td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.tabla-conversiones tr:nth-child(even) {
    background: #f8f9fa;
}

.tabla-conversiones tr:hover {
    background: #e8f4fd;
}

/* Historial rápido */
.historial-rapido {
    margin-top: 40px;
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.historial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.historial-btn {
    padding: 12px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    font-weight: 600;
    color: #2a5298;
}

.historial-btn:hover {
    background: #e8f4fd;
    border-color: #2a5298;
    transform: translateY(-2px);
}

/* ESTILOS CALCULADORA HÉLICE HORIZONTAL */
.calculadora-horizontal {
    display: flex;
    gap: 30px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

.panel-formulario {
    flex: 1;
    min-width: 400px;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.panel-resultados {
    flex: 2;
    min-width: 800px;
}

/* Formulario compacto */
.form-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-grid-2col .form-grupo {
    margin-bottom: 0;
}

/* Tarjetas de opciones en grid horizontal */
.opciones-horizontal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.opcion-card-horizontal {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    border-left: 5px solid #2a5298;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.opcion-card-horizontal:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.opcion-card-horizontal.recomendada {
    border-left-color: #f39c12;
    box-shadow: 0 5px 20px rgba(243, 156, 18, 0.2);
}

/* Header compacto */
.header-horizontal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.titulo-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.titulo-header i {
    font-size: 2rem;
    color: #2a5298;
}

/* Stats bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 25px 0;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.stat-item {
    text-align: center;
    padding: 10px;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2a5298;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
}

/* Slider moderno */
.slider-moderno {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    margin: 20px 0;
}

.slider-moderno input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.3);
    outline: none;
    -webkit-appearance: none;
}

.slider-moderno input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* Botones mejorados */
.btn-calculadora {
    background: linear-gradient(135deg, #2a5298 0%, #1a3a6e 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.btn-calculadora:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(42, 82, 152, 0.3);
    background: linear-gradient(135deg, #1a3a6e 0%, #2a5298 100%);
}

/* Especificaciones en línea */
.especificaciones-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.dimension-principal {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2a5298;
}

/* Indicadores de estado */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-success {
    background: #d4edda;
    color: #155724;
}

.status-warning {
    background: #fff3cd;
    color: #856404;
}

.status-danger {
    background: #f8d7da;
    color: #721c24;
}

/* Comparación horizontal */
.comparacion-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin: 25px 0;
}

.comparacion-item {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.comparacion-valor {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2a5298;
    margin-bottom: 5px;
}

/* Estilos específicos para escala Beaufort */
.beaufort-container {
    max-width: 1400px;
    margin: 30px auto 40px;
    padding: 0 20px;
}

.titulo-beaufort {
    text-align: center;
    margin-bottom: 30px;
    color: #2a5298;
}

.titulo-beaufort h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.titulo-beaufort p {
    color: #666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Calculadora principal */
.calculadora-beaufort {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.calculadora-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 992px) {
    .calculadora-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Panel izquierdo - Entrada */
.input-panel {
    padding-right: 20px;
    border-right: 2px solid #f0f0f0;
}

@media (max-width: 992px) {
    .input-panel {
        padding-right: 0;
        border-right: none;
        padding-bottom: 30px;
        border-bottom: 2px solid #f0f0f0;
    }
}

.slider-container {
    margin: 30px 0;
}

.velocidad-slider {
    width: 100%;
    height: 12px;
    -webkit-appearance: none;
    background: linear-gradient(to right, 
        #e8f5e8, #d4edda, #c3e6cb, #b1dfbb, 
        #ffeaa7, #ffdc7a, #ffc048, #ffa94d, 
        #ff8787, #fa5252, #e03131, #c92a2a, #a61e4d);
    border-radius: 6px;
    outline: none;
    margin: 20px 0;
}

.velocidad-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    background: #2a5298;
    border-radius: 50%;
    cursor: pointer;
    border: 4px solid white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: #666;
    font-size: 0.9rem;
}

.velocidad-input-group {
    position: relative;
    margin-bottom: 25px;
}

.velocidad-input {
    width: 100%;
    padding: 18px 20px;
    font-size: 1.3rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    color: #2a5298;
    transition: all 0.3s;
}

.velocidad-input:focus {
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
    outline: none;
}

.unidad-selector {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #f8f9fa;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    color: #2a5298;
    border: 2px solid #e0e0e0;
    cursor: pointer;
}

.btn-calcular-beaufort {
    background: linear-gradient(135deg, #2a5298, #1a3a6e);
    color: white;
    border: none;
    padding: 16px 35px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
}

.btn-calcular-beaufort:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(42, 82, 152, 0.3);
    background: linear-gradient(135deg, #1a3a6e, #2a5298);
}

/* Panel derecho - Resultado */
.resultado-panel {
    text-align: center;
}

.fuerza-indicador {
    font-size: 5rem;
    font-weight: 800;
    color: #2a5298;
    margin-bottom: 10px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.1);
}

.fuerza-nombre {
    font-size: 2rem;
    font-weight: 600;
    color: #1e3c72;
    margin-bottom: 20px;
}

.descripcion-estado {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2a5298;
}

.estadisticas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.estadistica-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    border: 2px solid #e0e0e0;
}

.estadistica-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
}

.estadistica-valor {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2a5298;
}

/* Gráfico de escala completa */
.escala-completa {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.escala-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.fuerza-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    border-left: 5px solid #e8f5e8;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.fuerza-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.fuerza-card.activa {
    border-left-width: 8px;
    background: linear-gradient(to right, #f8f9fa, white);
}

.fuerza-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.fuerza-numero {
    width: 50px;
    height: 50px;
    background: #2a5298;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.fuerza-titulo {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2a5298;
    flex: 1;
}

.fuerza-detalles {
    margin-top: 15px;
}

.detalle-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e0e0e0;
}

.detalle-label {
    color: #666;
    font-size: 0.9rem;
}

.detalle-valor {
    font-weight: 600;
    color: #1e3c72;
}

/* Navegación recomendada */
.navegacion-info {
    background: linear-gradient(135deg, #e8f4fd, #d4e7fb);
    border-left: 4px solid #2a5298;
    padding: 25px;
    border-radius: 10px;
    margin-top: 20px;
}

.navegacion-info h4 {
    color: #2a5298;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Gráfico Chart.js */
.grafico-container {
    height: 300px;
    margin-top: 30px;
    position: relative;
}

/* Mapa de vientos */
.mapa-vientos {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

#mapa-beaufort {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    margin-top: 20px;
}

.leyenda-vientos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.leyenda-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 0.85rem;
}

.leyenda-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

/* Historia */
.historia-beaufort {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.historia-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .historia-content {
        grid-template-columns: 1fr;
    }
}

/* Códigos de color para fuerzas */
.color-fuerza-0 { background-color: #e8f5e8; border-left-color: #e8f5e8; }
.color-fuerza-1 { background-color: #d4edda; border-left-color: #d4edda; }
.color-fuerza-2 { background-color: #c3e6cb; border-left-color: #c3e6cb; }
.color-fuerza-3 { background-color: #b1dfbb; border-left-color: #b1dfbb; }
.color-fuerza-4 { background-color: #ffeaa7; border-left-color: #ffeaa7; }
.color-fuerza-5 { background-color: #ffdc7a; border-left-color: #ffdc7a; }
.color-fuerza-6 { background-color: #ffc048; border-left-color: #ffc048; }
.color-fuerza-7 { background-color: #ffa94d; border-left-color: #ffa94d; }
.color-fuerza-8 { background-color: #ff8787; border-left-color: #ff8787; }
.color-fuerza-9 { background-color: #fa5252; border-left-color: #fa5252; }
.color-fuerza-10 { background-color: #e03131; border-left-color: #e03131; }
.color-fuerza-11 { background-color: #c92a2a; border-left-color: #c92a2a; }
.color-fuerza-12 { background-color: #a61e4d; border-left-color: #a61e4d; }

.texto-fuerza-0 { color: #e8f5e8; }
.texto-fuerza-1 { color: #d4edda; }
.texto-fuerza-2 { color: #c3e6cb; }
.texto-fuerza-3 { color: #b1dfbb; }
.texto-fuerza-4 { color: #ffeaa7; }
.texto-fuerza-5 { color: #ffdc7a; }
.texto-fuerza-6 { color: #ffc048; }
.texto-fuerza-7 { color: #ffa94d; }
.texto-fuerza-8 { color: #ff8787; }
.texto-fuerza-9 { color: #fa5252; }
.texto-fuerza-10 { color: #e03131; }
.texto-fuerza-11 { color: #c92a2a; }
.texto-fuerza-12 { color: #a61e4d; }

/* ESTILOS PARA CALCULADORA DE EQUIPAMIENTO */

/* SEO Elements */
.breadcrumb-seo {
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
    flex-wrap: wrap;
}

.breadcrumb-item {
    font-size: 0.9rem;
    color: #64748b;
}

.breadcrumb-item a {
    color: #2a5298;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-item a:hover {
    color: #1e3c72;
    text-decoration: underline;
}

.breadcrumb-item[aria-current="page"] {
    color: #475569;
    font-weight: 600;
}

.breadcrumb-item:not(:last-child)::after {
    content: "›";
    margin-left: 10px;
    color: #94a3b8;
}

/* Header SEO */
.header-utilidad {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}



.h1-titulo-principal i {
    color: #ef4444;
}

.meta-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #64748b;
    font-size: 0.9rem;
}

.meta-item i {
    color: #2a5298;
}

/* Secciones */
.h2-seccion {
    color: #2a5298;
    margin: 0 0 20px 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.h3-categoria {
    color: #1e3c72;
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Formulario */
.formulario-equipamiento {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.form-grupo {
    margin-bottom: 0;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2a5298;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    color: #374151;
    transition: all 0.3s;
    cursor: pointer;
}

.form-select:focus {
    border-color: #2a5298;
    outline: none;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

.rango-container {
    margin: 10px 0;
}

.rango-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
}

.rango-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: #2a5298;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.rango-valores {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.rango-actual {
    color: #2a5298;
    font-weight: 600;
    font-size: 1rem;
}

.form-ayuda {
    margin-top: 5px;
    color: #64748b;
    font-size: 0.85rem;
    font-style: italic;
}

/* Botones */
.btn-principal {
    background: linear-gradient(135deg, #2a5298, #1a3a6e);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.btn-principal:hover {
    background: linear-gradient(135deg, #1a3a6e, #2a5298);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(42, 82, 152, 0.3);
}

/* Resultados */
.resultados-equipamiento {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.resumen-navegacion {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.resumen-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.resumen-label {
    color: #64748b;
    font-size: 0.9rem;
}

.resumen-valor {
    color: #2a5298;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Categorías de equipamiento */
.categorias-equipamiento {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.categoria-equipo {
    background: #f8fafc;
    border-radius: 10px;
    padding: 25px;
    border-left: 4px solid;
    transition: transform 0.3s;
}

.categoria-equipo:hover {
    transform: translateY(-2px);
}

#categoria-salvamento { border-left-color: #ef4444; }
#categoria-incendios { border-left-color: #f59e0b; }
#categoria-navegacion { border-left-color: #3b82f6; }
#categoria-comunicaciones { border-left-color: #8b5cf6; }
#categoria-documentacion { border-left-color: #10b981; }
#categoria-opcional { border-left-color: #6b7280; }

.lista-equipos {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sin-equipo {
    color: #64748b;
    font-style: italic;
    padding: 15px;
    text-align: center;
    background: rgba(255,255,255,0.5);
    border-radius: 8px;
}

/* Items de equipo */
.item-equipo {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
}

.item-equipo:hover {
    border-color: #2a5298;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.equipo-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
}

.equipo-nombre {
    flex: 1;
    color: #1e3c72;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.equipo-cantidad {
    background: #e8f4fd;
    color: #2a5298;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.nivel-requerimiento {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.obligatorio { background: #ef4444; color: white; }
.recomendado { background: #f59e0b; color: white; }
.opcional { background: #6b7280; color: white; }

.equipo-detalles {
    color: #475569;
    line-height: 1.6;
}

.equipo-descripcion {
    margin: 0 0 10px 0;
    font-size: 0.95rem;
}

.equipo-normativa {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
    font-style: italic;
}

/* Acciones */
.acciones-resultado {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 30px 0;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.btn-secundario {
    background: white;
    color: #2a5298;
    border: 2px solid #2a5298;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.btn-secundario:hover {
    background: #2a5298;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 82, 152, 0.2);
}

/* Información legal */
.info-legal {
    background: #fef3c7;
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #d97706;
    margin-top: 30px;
}

.info-legal h4 {
    color: #92400e;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-legal p {
    margin: 0 0 10px 0;
    color: #92400e;
    line-height: 1.6;
}

.info-legal p:last-child {
    margin-bottom: 0;
}

/* FAQ */
.faq-equipamiento {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: #f8fafc;
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #2a5298;
}

.faq-pregunta {
    color: #2a5298;
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-pregunta::after {
    content: "+";
    font-size: 1.5rem;
    color: #2a5298;
    transition: transform 0.3s;
}

.faq-item.active .faq-pregunta::after {
    transform: rotate(45deg);
}

.faq-respuesta {
    color: #475569;
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-respuesta {
    display: block;
}

.faq-respuesta ul {
    margin: 10px 0;
    padding-left: 20px;
}

.faq-respuesta li {
    margin-bottom: 5px;
}

/* Enlaces relacionados */
.enlaces-relacionados {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.recursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.recurso-item {
    background: #f8f9fa;
    color: #2a5298;
    text-decoration: none;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
}

.recurso-item:hover {
    background: #e8f4fd;
    transform: translateY(-2px);
    border-color: #2a5298;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.recurso-item i {
    font-size: 1.5rem;
    color: #2a5298;
}

.recurso-item span {
    flex: 1;
    font-weight: 600;
}

/* Estilos para par de apriete (tamaños reducidos) */
.resultados-horizontal {
    width: 100%;
    overflow-x: auto;
    margin: 15px 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 8px;
    font-size: 0.80em;
}

.tabla-horizontal {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
}

.tabla-horizontal th {
    background: #2c3e50;
    color: white;
    padding: 8px 6px;
    text-align: left;
    font-weight: 600;
    border-right: 1px solid #34495e;
    font-size: 0.90em;
}

.tabla-horizontal th:last-child {
    border-right: none;
}

.tabla-horizontal td {
    padding: 8px 6px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
    font-size: 0.80em;
}

.tabla-horizontal tr:nth-child(even) {
    background: #f9f9f9;
}

.tabla-horizontal tr:hover {
    background: #f0f0f0;
}

.valor-principal {
    font-weight: bold;
    color: #2c3e50;
}

.valor-secundario {
    color: #666;
    margin-top: 2px;
    font-size: 0.75em;
}

.contador-simple {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 3px;
    margin: 10px 0;
    font-weight: bold;
    border-left: 3px solid #2c3e50;
    font-size: 0.85em;
}

.sin-resultados {
    text-align: center;
    padding: 30px 15px;
    background: #f8f9fa;
    border-radius: 3px;
    margin: 15px 0;
    font-size: 0.85em;
}

.sin-resultados i {
    font-size: 1.5em;
    color: #95a5a6;
    margin-bottom: 8px;
}

.sin-resultados h3 {
    font-size: 1em;
    margin: 10px 0;
}

.boton-simple {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 0.80em;
}

.boton-simple:hover {
    background: #34495e;
}

.form-simple {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 3px;
    margin: 15px 0;
}

.form-grid-simple {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.select-simple {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 0.80em;
}

.h2-seccion {
    font-size: 1em;
    margin: 10px 0;
    color: #2c3e50;
    font-weight: 600;
}

.h2-titulo-principal h1 {
    font-size: 1em;
    margin: 5px 0 10px 0;
    color: #2c3e50;
    font-weight: 600;
}

.h2-titulo-principal h1 i {
    margin-right: 8px;
    font-size: 0.9em;
}

.h2-seccion i {
    margin-right: 6px;
    font-size: 0.9em;
}

.contador-simple i {
    margin-right: 6px;
    font-size: 0.9em;
}

.boton-simple i {
    margin-right: 6px;
    font-size: 0.9em;
}

/* Responsive para par de apriete */
@media (max-width: 768px) {
    .form-grid-simple {
        grid-template-columns: 1fr;
    }
    
    .resultados-horizontal {
        padding: 6px;
    }
    
    .tabla-horizontal th,
    .tabla-horizontal td {
        padding: 6px 4px;
        font-size: 0.75em;
    }
    
    .tabla-horizontal th {
        font-size: 0.80em;
    }
    
    .h2-titulo-principal h1,
    .h2-seccion {
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .resultados-horizontal {
        font-size: 0.75em;
    }
    
    .tabla-horizontal th,
    .tabla-horizontal td {
        padding: 5px 3px;
        font-size: 0.70em;
    }
    
    .tabla-horizontal th {
        font-size: 0.75em;
    }
    
    .valor-secundario {
        font-size: 0.70em;
    }
}

/* Animaciones generales */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Responsive general */
@media (max-width: 768px) {
    .utilidades-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .utilidad-card {
        padding: 20px;
    }
    
    .formulario-utilidad {
        padding: 20px;
    }
    
    #mapa-ubicacion {
        height: 300px;
    }
    
    .calculadora-horizontal {
        flex-direction: column;
    }
    
    .panel-formulario,
    .panel-resultados {
        min-width: 100%;
    }
    
    .panel-formulario {
        position: static;
    }
    
    .form-grid-2col {
        grid-template-columns: 1fr;
    }
    
    .opciones-horizontal {
        grid-template-columns: 1fr;
    }
    
    .comparacion-grid {
        grid-template-columns: repeat(2, 1fr);
        overflow-x: auto;
    }
}

@media (max-width: 1400px) {
    .calculadora-horizontal {
        flex-direction: column;
    }
    
    .panel-formulario,
    .panel-resultados {
        min-width: 100%;
    }
    
    .panel-formulario {
        position: static;
    }
}

        /* Estilos específicos para par de apriete horizontal */
        .resultados-grid-horizontal {
            display: flex;
            flex-wrap: nowrap;
            overflow-x: auto;
            gap: 15px;
            padding: 15px 5px;
            margin: 20px 0;
            -webkit-overflow-scrolling: touch;
        }
        
        .resultado-item {
            flex: 0 0 auto;
            width: 280px;
            background: white;
            border: 1px solid #e0e0e0;
            border-radius: 6px;
            padding: 15px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            transition: all 0.3s ease;
        }
        
        .resultado-item:hover {
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            transform: translateY(-2px);
        }
        
        .marca-modelo {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
            padding-bottom: 8px;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .marca {
            font-weight: 600;
            color: #2c3e50;
            font-size: 0.95em;
        }
        
        .modelo {
            background: #3498db;
            color: white;
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 0.8em;
            font-weight: 500;
        }
        
        .tipo-componente {
            background: #e74c3c;
            color: white;
            padding: 3px 10px;
            border-radius: 12px;
            font-size: 0.8em;
            font-weight: 500;
            display: inline-block;
            margin-bottom: 15px;
        }
        
        .valores-par {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        
        .valor-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px;
            background: #f8f9fa;
            border-radius: 4px;
            border: 1px solid #e9ecef;
        }
        
        .valor-principal {
            background: #2c3e50;
            color: white;
            border-color: #2c3e50;
        }
        
        .unidad {
            font-size: 0.85em;
            color: #666;
        }
        
        .valor-principal .unidad {
            color: #bdc3c7;
        }
        
        .numero {
            font-weight: 600;
            font-size: 1.1em;
            color: #2c3e50;
        }
        
        .valor-principal .numero {
            color: white;
        }
        
        .contador-resultados {
            background: #f8f9fa;
            padding: 10px 15px;
            border-radius: 4px;
            margin: 15px 0;
            font-weight: 600;
            font-size: 0.9em;
            color: #2c3e50;
            border-left: 4px solid #2c3e50;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .sin-resultados-container {
            text-align: center;
            padding: 40px 20px;
            background: #f8f9fa;
            border-radius: 6px;
            margin: 20px 0;
        }
        
        .sin-resultados-container i {
            font-size: 2em;
            color: #95a5a6;
            margin-bottom: 15px;
        }
        
        .sin-resultados-container h3 {
            font-size: 1.1em;
            color: #2c3e50;
            margin-bottom: 15px;
        }
        
        .btn-nueva-busqueda {
            background: #2c3e50;
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 4px;
            font-size: 0.9em;
            font-weight: 500;
            cursor: pointer;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: background 0.3s;
        }
        
        .btn-nueva-busqueda:hover {
            background: #34495e;
        }
        
        .formulario-busqueda {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 6px;
            margin: 20px 0;
        }
        
        .grid-filtros {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin-bottom: 15px;
        }
        
        .select-filtro {
            width: 100%;
            padding: 8px 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 0.9em;
            background: white;
        }
        
        .btn-buscar {
            background: #2c3e50;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 4px;
            font-size: 0.9em;
            font-weight: 500;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: 100%;
            max-width: 300px;
            margin: 0 auto;
        }
        
        .btn-buscar:hover {
            background: #34495e;
        }
        
        .titulo-pagina {
            font-size: 1em;
            color: #2c3e50;
            margin: 10px 0 20px 0;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        /* Scrollbar personalizado */
        .resultados-grid-horizontal::-webkit-scrollbar {
            height: 8px;
        }
        
        .resultados-grid-horizontal::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 4px;
        }
        
        .resultados-grid-horizontal::-webkit-scrollbar-thumb {
            background: #c1c1c1;
            border-radius: 4px;
        }
        
        .resultados-grid-horizontal::-webkit-scrollbar-thumb:hover {
            background: #a8a8a8;
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            .grid-filtros {
                grid-template-columns: 1fr;
            }
            
            .resultado-item {
                width: 250px;
            }
            
            .marca-modelo {
                flex-direction: column;
                align-items: flex-start;
                gap: 5px;
            }
            
            .modelo {
                align-self: flex-start;
            }
        }
        
        @media (max-width: 480px) {
            .resultado-item {
                width: 220px;
                padding: 12px;
            }
            
            .valor-item {
                padding: 6px;
            }
            
            .numero {
                font-size: 1em;
            }
            
            .unidad {
                font-size: 0.8em;
            }
        }

        /* Estilos para la tabla */
        .tabla-resultados {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
            background: white;
            border: 1px solid #ddd;
            font-size: 0.8em;
        }
        
        .tabla-resultados thead {
            background-color: #f5f5f5;
        }
        
        .tabla-resultados th {
            padding: 12px 15px;
            text-align: center;
            border: 1px solid #ddd;
            font-weight: bold;
            color: #333;
            text-transform: uppercase;
        }
        
        .tabla-resultados td {
            padding: 12px 15px;
            border: 1px solid #ddd;
            vertical-align: middle;
            text-align: center;
        }
        
        .tabla-resultados tbody tr:hover {
            background-color: #f9f9f9;
        }
        
        .tabla-resultados td {
            text-transform: uppercase;
        }
        
        .contador-resultados {
            background: #f5f5f5;
            padding: 10px 15px;
            border-radius: 4px;
            margin-bottom: 15px;
            font-weight: bold;
            border-left: 4px solid #3498db;
            text-align: center;
            text-transform: uppercase;
        }
        
        .btn-nueva-busqueda {
            display: inline-block;
            padding: 10px 20px;
            background: #3498db;
            color: white;
            text-decoration: none;
            border-radius: 4px;
            font-weight: bold;
            margin-top: 20px;
            text-transform: uppercase;
        }
        
        .btn-nueva-busqueda:hover {
            background: #2980b9;
        }
        
        .sin-resultados-container {
            text-align: center;
            padding: 40px;
            background: #f9f9f9;
            border-radius: 8px;
            margin: 20px 0;
        }
        
        .sin-resultados-container h3 {
            text-transform: uppercase;
        }
        
        /* Estilos para los últimos valores en tabla */
        .tabla-ultimos {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
            background: white;
            border: 1px solid #ddd;
        }
        
        .tabla-ultimos th {
            padding: 12px 15px;
            text-align: center;
            border: 1px solid #ddd;
            font-weight: bold;
            background-color: #f5f5f5;
            text-transform: uppercase;
        }
        
        .tabla-ultimos td {
            padding: 12px 15px;
            border: 1px solid #ddd;
            text-align: center;
            text-transform: uppercase;
        }
        
        /* Estilo para mantener los números sin mayúsculas */
        .tabla-resultados td .numero,
        .tabla-ultimos td .numero,
        .tabla-resultados td:last-child,
        .tabla-resultados td:nth-last-child(2),
        .tabla-resultados td:nth-last-child(3),
        .tabla-ultimos td:last-child,
        .tabla-ultimos td:nth-last-child(2),
        .tabla-ultimos td:nth-last-child(3) {
            text-transform: none;
        }
 .aviso-tecnico {
  background: #fff3cd;
  border: 1px solid #ffecb5;
  padding: 12px;
  margin-bottom: 15px;
  font-size: 14px;
  border-radius: 4px;
}

  