* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    padding: 30px;
}

.header {
    text-align: center;
    margin-bottom: 25px;
}

.header h1 {
    color: #333;
    font-size: 24px;
    margin-bottom: 8px;
}

.subtitulo {
    color: #666;
    font-size: 14px;
}

.info-tienda {
    background: #f0f9ff;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #4299e1;
}

.info-card {
    font-size: 14px;
    line-height: 1.6;
}

.info-card strong {
    color: #2b6cb0;
}

.card {
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.card-header {
    background: #edf2f7;
    padding: 12px 20px;
    font-weight: 600;
    color: #2d3748;
    font-size: 16px;
}

.card-body {
    padding: 20px;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 10px;
    color: #4a5568;
    font-size: 14px;
}

.input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

#ubicacion-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-family: monospace;
    transition: border-color 0.2s;
}

#ubicacion-input:focus {
    outline: none;
    border-color: #4299e1;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #4299e1;
    color: white;
}

.btn-primary:hover {
    background: #3182ce;
    transform: translateY(-1px);
}

.btn-copiar {
    background: #48bb78;
    color: white;
    width: 100%;
    margin-top: 15px;
}

.btn-copiar:hover {
    background: #38a169;
}

.ejemplos {
    margin-top: 12px;
    padding: 10px;
    background: #fef3c7;
    border-radius: 8px;
    font-size: 11px;
}

.ejemplos small {
    display: block;
    color: #92400e;
}

.distancia-info, .costo-info {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.label {
    font-weight: 600;
    color: #4a5568;
    font-size: 15px;
}

.valor {
    font-weight: bold;
    color: #2d3748;
    font-size: 18px;
}

.costo {
    font-size: 28px;
    color: #38a169;
}

.mensaje-predefinido {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px dashed #cbd5e0;
}

.mensaje-header {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 14px;
}

.mensaje-contenido {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    line-height: 1.5;
    color: #1a202c;
    border: 1px solid #e2e8f0;
    font-family: monospace;
}

.error-card {
    background: #fff5f5;
    border-color: #fc8181;
}

.error-mensaje {
    color: #e53e3e;
    font-size: 14px;
    text-align: center;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #718096;
}

.mapa-container {
    margin-top: 20px;
}

@media (max-width: 640px) {
    .container {
        padding: 20px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .costo {
        font-size: 22px;
    }
}
